7.5

CVE-2024-53861: jpadilla pyjwt Incorrect Comparison

CVSS: 7.5v3.1HighAnalyzed
AliasesGHSA-75c5-xw7c-p5pmPYSEC-2026-1814CGA-759c-h76v-vcfh
Published 29-11-2024Last modified 02-12-2024

Vulnerability summary

CVE-2024-53861 is a high (CVSS 7.5) Incorrect Comparison vulnerability in jpadilla pyjwt. EPSS estimates a 0.83% chance of exploitation in the next 30 days, higher than 56.8% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
0.83%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 3

Timeline

  1. 29-11-2024
    PublishedVulnerability first disclosed.
  2. 02-12-2024
    Last modifiedVulnerability information updated.

Description

pyjwt is a JSON Web Token implementation in Python. An incorrect string comparison is run for `iss` checking, resulting in `"acb"` being accepted for `"_abc_"`. This is a bug introduced in version 2.10.0: checking the "iss" claim changed from `isinstance(issuer, list)` to `isinstance(issuer, Sequence)`. Since str is a Sequnce, but not a list, `in` is also used for string comparison. This results in `if "abc" not in "__abcd__":` being checked instead of `if "abc" != "__abc__":`. Signature checks are still present so real world impact is likely limited to denial of service scenarios. This issue has been patched in version 2.10.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

0.83%

Chance of exploitation in the next 30 days

Percentile

57%

Versus all other CVEs

30-day change

0.00 pp

From 0.83% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.83%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Pyjwt

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Chainguard5 products
  • az< 2.67.0-r1
  • az-iamguarded-compat< 2.67.0-r1
  • barman< 3.12.1-r0
  • barman-cloudnative-pg< 3.12.1-r0
  • py3-pyjwt< 2.10.1-r0
Wolfi3 products
  • az< 2.67.0-r1
  • az-iamguarded-compat< 2.67.0-r1
  • py3-pyjwt< 2.10.1-r0
Jpadilla1 product
Opensuse1 product
  • python-PyJWT&distro=openSUSE Tumbleweed< 2.10.1-1.1
Pyjwt_project1 product
PyPI1 product
  • pyjwt≥ 2.10.0, < 2.10.1

6 vendors · 12 products

References

9 links