PyJWT
PyJWT: PyJWKClient follows redirects when fetching JWKS
PyJWT is a Python implementation of JSON Web Token standards. Prior to 2.14.0, PyJWT PyJWKClient is affected because redirect destinations are not revalidated against the JWKS trust boundary. This occurs when a configured trusted JWKS endpoint returns an attacker-influenced redirect. As a result, PyJWKClient follows the redirect and consumes the redirected response as key material. Consequently, forwarded credentials may be disclosed or verification keys may be substituted. This issue is fixed in version 2.14.0.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.1critical · scored by NVD · CWE-200
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
jpadilla pyjwt
- < 2.14.0
Fixed in 2.14.0
Mitigation
Upgrade pyjwt to 2.14.0 or later.
References
- Vendor advisory github.com/jpadilla/pyjwt/security/advisories/…
- Patch github.com/jpadilla/pyjwt/commit/0a795b8e1f6ef…
- Release notes github.com/jpadilla/pyjwt/releases/tag/2.14.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.