CVE-2026-102268
Description
PyJWT is a Python implementation of JSON Web Token standards. Prior to 2.14.0, is_pem_format in jwt/utils.py is affected because is_pem_format does not recognize every PEM representation accepted by the cryptography loader. This occurs when an application mixes HMAC and asymmetric algorithms and supplies a mutated public-key PEM as raw key bytes. As a result, HMACAlgorithm.prepare_key treats the unrecognized asymmetric public key as an HMAC secret. Consequently, an attacker who knows the public key can forge authenticated HMAC tokens. This issue is fixed in version 2.14.0.
Weakness
- CWE-347: Improper Verification of Cryptographic Signature
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2026-09-29 |
Timeline
- 2026-09-28Published by the CNA20:26 UTC
- 2026-09-29GitHub advisory published (GHSA-ffc3-869f-jxw9)1 day after publication
- 2026-09-29CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-ffc3-869f-jxw9, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI pyjwt | before 2.14.0 | 2.14.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 | before 2.14.0fixed in 2.14.0 | 2.14.0 |
References
- https://github.com/jpadilla/pyjwt/commit/8b4e233a22206b34ec1186e912e75c0b2396ac07
- https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffc3-869f-jxw9
- https://github.com/jpadilla/pyjwt/releases/tag/2.14.0
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-102268'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-102268'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-102268'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-102268'
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).