CVE-2026-102268
Security vulnerability in pyjwt
How to Fix This Vulnerability
Upgrade to a fixed version
Remediation Steps
- 1Upgrade the package to version 2.14.0 or later
- 2Review and audit affected systems for potential exploitation
- 3Implement additional security controls if immediate patching is not possible
- 4Monitor for suspicious activity related to this vulnerability
Mitigation Strategies
- Immediate PatchingCritical
Apply security patches to version 2.14.0 immediately
- Network SegmentationHigh
Isolate affected systems from untrusted networks until patching is complete
- Monitoring and DetectionMedium
Implement enhanced monitoring for exploitation attempts and unusual behavior
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.
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. This vulnerability involves weaknesses in
Impact Assessment
This critical vulnerability poses an immediate and severe threat to system security. Exploitation could lead to complete system compromise, data breach, or denial of service. Immediate action is required.
Attack Characteristics
- Attack Vector
- NETWORK
- Complexity
- LOW
- Privileges Required
- NONE
- User Interaction
- NONE
CVSS v3.1 Metrics Breakdown
- attack Vector
- NETWORK
- attack Complexity
- LOW
- privileges Required
- NONE
- user Interaction
- NONE
- scope
- Unchanged
- confidentiality Impact
- High
- integrity Impact
- High
- availability Impact
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NVulnerability Timeline
- 2026-09-28T21:17:14.600Vulnerability publishedpublished
- 2026-09-28T21:17:14.600Patches released: 2.14.0patched