CVE 7.4 HIGH

PyJWT: Public-key JWK accepted as HMAC secret enables forged HS256 tokens when mixed families are allowed_CVE-2026-48526

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

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.

Basic Information

ID CVE-2026-48526
Source GitHub_M
Published May 28, 2026 at 15:09

Affected Product

Vendor jpadilla
Product pyjwt
Version < 2.13.0
Affected Versions jpadilla pyjwt < 2.13.0

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.