CVE-2026-48523
Description
PyJWT is a JSON Web Token implementation in Python. From 2.9.0 to 2.12.1, there is a verifier-side algorithm allow-list bypass when jwt.decode() or jwt.decode_complete() are called with a PyJWK key. The token header alg is checked against the caller-supplied algorithms allow-list, but signature verification is performed with the algorithm bound to the PyJWK object instead of the header algorithm. An attacker who controls a registered JWK/JWKS private key can sign with a disallowed algorithm, advertise an allowed algorithm in the JWT header, and still be accepted. The issue affects the documented PyJWKClient.get_signing_key_from_jwt(...) flow. This vulnerability is fixed in 2.13.0.
Weakness
- CWE-347: Improper Verification of Cryptographic Signature
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-05-28 |
Timeline
- 2026-05-28Published by the CNA15:10 UTC
- 2026-05-28CISA SSVC decision recordedsame day
- 2026-06-15GitHub advisory published (GHSA-jq35-7prp-9v3f)18 days after publication
Exploit and advisory records
GitHub advisory GHSA-jq35-7prp-9v3f, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI pyjwt | from 2.9.0 before 2.13.0 | 2.13.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| pyjwt_project pyjwt | from 2.9.0 before 2.13.0fixed in 2.13.0 | 2.13.0 |
References
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-48523'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-48523'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-48523'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-48523'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).