Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-53861

LOW 2.2EPSS 67%

Issuer field partial matches allowed in pyjwt

Also known as GHSA-75c5-xw7c-p5pm, PYSEC-2026-1814

Mitigation

  • Upgrade pyjwt to 2.10.1 or later.

Who should check

  • Projects that depend on PyPI package pyjwt (>= 2.10.0, < 2.10.1)
  • Anyone running jpadilla pyjwt = 2.10.0

Vulnerability facts

Affected
pyjwt >= 2.10.0, < 2.10.1
Fixed in
2.10.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
2.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: High
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: None
EPSS
1.15% chance of exploitation in 30 days (percentile 67, 2026-11-26)
CWE
CWE-697
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI pyjwt>= 2.10.0, < 2.10.12.10.1osv
jpadilla pyjwt= 2.10.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-53861. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53861.md
Affected: pyjwt >= 2.10.0, < 2.10.1
Fixed in: 2.10.1

Steps:
1. Search this machine and project for pyjwt (PyPI), jpadilla pyjwt: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-53861 being exploited?

There is no confirmed exploitation: CVE-2024-53861 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.15% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-53861?

Low: CVSS 2.2 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2024-53861?

pyjwt >= 2.10.0, < 2.10.1.

Is there a fix for CVE-2024-53861?

Yes. Fixed in 2.10.1. Upgrade pyjwt to 2.10.1 or later.

How do I check if I'm affected by CVE-2024-53861?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors