PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| jpadilla | pyjwt | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Jpadilla | Pyjwt |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-9j54-fg26-wv3r | PyJWT: PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.225% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Pyjwt Project
Pyjwt Project pyjwt |
|
| CPEs | cpe:2.3:a:pyjwt_project:pyjwt:2.13.0:*:*:*:*:*:*:* | |
| Vendors & Products |
Pyjwt Project
Pyjwt Project pyjwt |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Jpadilla
Jpadilla pyjwt |
|
| Vendors & Products |
Jpadilla
Jpadilla pyjwt |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | PyJWT is a Python implementation of JSON Web Token standards. From 2.13.0 until 2.14.0, HMACAlgorithm.from_jwk is affected because PyJWK verification path used the decoded key without applying prepare_key validation. This occurs when a trusted JWK Set contains an oct entry with an empty k value. As a result, an attacker signs an HMAC token with the same zero-length key accepted by PyJWT. Consequently, forged token can carry arbitrary authenticated claims. This issue is fixed in version 2.14.0. | |
| Title | PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation | |
| Weaknesses | CWE-347 | |
| References |
| |
| Metrics |
cvssV3_1
|