7.5

CVE-2024-53861: Issuer field partial matches allowed in pyjwt

Analyzed
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 58.8% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 2.2, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
0.83%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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

59%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.83% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Pyjwt

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.

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