PyJWT accepts public JWK containers as HMAC secrets
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-w2cx-738m-mc7w | PyJWT accepts public JWK containers as HMAC secrets |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.175% 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, 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. | |
| Title | PyJWT accepts public JWK containers as HMAC secrets | |
| Weaknesses | CWE-347 | |
| References |
| |
| Metrics |
cvssV3_1
|