CVE catalog

CVE-2024-53861

pyjwt: CVE-2024-53861

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.83% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpyjwtsid2.15.1-1not affected
Debianpyjwtforky2.15.1-1not affected
Debianpyjwttrixie2.10.1-2+deb13u1not affected
Debianpyjwttrixie-security2.10.1-2+deb13u1not affected
Debianpyjwtbookworm2.6.0-1+deb12u1not affected
Debianpyjwtbookworm-security2.6.0-1+deb12u1not affected
Susepython-PyJWTlinux micro 6.12.12.1-slfo.1.1_1.1fixed
Opensusepython-PyJWTtumbleweed2.10.1-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
DebianpyjwtsourcesidNot affectedunimportantNot reportedNot reported
DebianpyjwtsourceforkyNot affectedunimportantNot reportedNot reported
DebianpyjwtsourcetrixieNot affectedunimportantNot reportedNot reported
DebianpyjwtsourcebookwormNot affectedunimportantNot reportedNot reported
Susepython-PyJWTrpmlinux micro 6.12.12.1-slfo.1.1_1.1Not reportedSUSE-SU-2026:20879-1Not reported
Opensusepython-PyJWTrpmtumbleweed2.10.1-1.1Not reportedOPENSUSE-SU-2024:14540-1Not reported

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [python-PyJWT]

    Details (1)
    • 2.13.0-1.2 · noarch · tumbleweed

      Unknown · Fixed: 2.10.1-1.1

      Version impact unknown

      dsa · python-PyJWT · opensuse · tumbleweed

  • Source package: [python-PyJWT]

    Details (1)
    • 2.13.0-1.2 · noarch · tumbleweed

      Unknown · Fixed: 2.10.1-1.1

      Version impact unknown

      dsa · python-PyJWT · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • [python3-jwt]Not affected

    Source package: [pyjwt]

    Details (4)
    • 2.6.0-1+deb12u1 · all · bookworm

      Not affected

      dsa · pyjwt · debian · bookworm

    • 2.6.0-1+deb12u1 · all · bookworm

      Not affected

      dsa · pyjwt · debian · bookworm

    • 2.6.0-1+deb12u1 · all · bookworm-security

      Not affected

      dsa · pyjwt · debian · bookworm

    • 2.6.0-1+deb12u1 · all · bookworm-security

      Not affected

      dsa · pyjwt · debian · bookworm

Observed:

References