CVE-2026-102273
published high CVSS 3.1 · 7.4PyJWT accepts public JWK containers as HMAC secrets
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| jpadilla | — | pyjwt>= 2.13.0, < 2.14.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3298 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | bionic | pyjwt | Advisory build | 1.5.3+ds1-1ubuntu0.1+esm3 | USN-8916-1 |
| Amazon Linux | AL2023 | python-jwtnoarch | Listed in advisory | Not stated | ALAS2023-2026-3298 |
| Ubuntu | focal | pyjwt | Advisory build | 1.7.1-2ubuntu2.1+esm3 | USN-8916-1 |
| Ubuntu | jammy | pyjwt | Advisory build | 2.3.0-1ubuntu0.5 | USN-8916-1 |
| Ubuntu | noble | pyjwt | Advisory build | 2.7.0-1ubuntu0.3 | USN-8916-1 |
| Ubuntu | resolute | pyjwt | Advisory build | 2.10.1-4ubuntu1.2 | USN-8916-1 |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | stonking | pyjwt | Advisory build | 2.13.0-1ubuntu1 | USN-8916-2 |
| Ubuntu | xenial | pyjwt | Advisory build | 1.3.0-1ubuntu0.1+esm3 | USN-8916-1 |
| Ubuntu | bionic | python-jwt | Advisory build | 1.5.3+ds1-1ubuntu0.1+esm3 | USN-8916-1 |
| Ubuntu | bionic | python3-jwt | Advisory build | 1.5.3+ds1-1ubuntu0.1+esm3 | USN-8916-1 |
| Ubuntu | focal | python3-jwt | Advisory build | 1.7.1-2ubuntu2.1+esm3 | USN-8916-1 |
| Ubuntu | jammy | python3-jwt | Advisory build | 2.3.0-1ubuntu0.5 | USN-8916-1 |
| Ubuntu | noble | python3-jwt | Advisory build | 2.7.0-1ubuntu0.3 | USN-8916-1 |
| Ubuntu | resolute | python3-jwt | Advisory build | 2.10.1-4ubuntu1.2 | USN-8916-1 |
| Ubuntu | stonking | python3-jwt | Advisory build | 2.13.0-1ubuntu1 | USN-8916-2 |
| Ubuntu | xenial | python-jwt | Advisory build | 1.3.0-1ubuntu0.1+esm3 | USN-8916-1 |
| Ubuntu | xenial | python3-jwt | Advisory build | 1.3.0-1ubuntu0.1+esm3 | USN-8916-1 |
| Amazon Linux | AL2023 | python-jwtsrc | Listed in advisory | Not stated | ALAS2023-2026-3298 |
Description
PyJWT is a Python implementation of JSON Web Token standards. From 2.13.0 until 2.14.0, PyJWT HMACAlgorithm.prepare_key is affected because HMAC key guard only recognizes top-level public JWK forms and misses container representations. This occurs when an application allows HMAC and asymmetric algorithms and passes a public JWK container as the raw key. As a result, public asymmetric key material is accepted as the HMAC secret. Consequently, an attacker who knows the public key can forge a token with arbitrary authenticated claims. This issue is fixed in version 2.14.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| jpadilla | pyjwt | >= 2.13.0, < 2.14.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-347 CWE-347: Improper Verification of Cryptographic Signature
References
3Provider assertions
2GitHub_M · cna
PyJWT accepts public JWK containers as HMAC secrets
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d88df19f098ee9675495bf657ad391dd35b3b968298733b7874a48c2932b1567
- Ingested
- 30 Sep 2026, 15:18:33 UTC
- Source record
- Official CVE record