Home

Description

PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, when the verifier is decoding JSON Web Tokens, while supporting both asymmetric and HMAC algorithms, the library does not validate use of JSON Web Keys in HMAC algorithm, allowing attacker to use the issuer public key as the secret key for HMAC algorithm. This vulnerability is fixed in 2.13.0.

PUBLISHED Reserved 2026-05-21 | Published 2026-05-28 | Updated 2026-05-29 | Assigner GitHub_M




HIGH: 7.4CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Problem types

CWE-287: Improper Authentication

CWE-347: Improper Verification of Cryptographic Signature

Product status

< 2.13.0
affected

References

github.com/.../pyjwt/security/advisories/GHSA-xgmm-8j9v-c9wx

cve.org (CVE-2026-48526)

nvd.nist.gov (CVE-2026-48526)

Download JSON