Skip to main content
← All vulnerabilities
CVE-2024-53861GHSA-75C5-XW7C-P5PMPYSEC-2026-1814

Issuer field partial matches allowed in pyjwt

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.10.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • jpadilla pyjwt

    2.10.0

  • pyjwtPyPI

    From 2.10.0 · fixed in 2.10.1

References 3

GitHub · jpadilla/pyjwt