What’s Vulnerable › Vulnerabilities

CVE-2026-102267: PyJWT: PyJWKClient follows redirects when fetching JWKS

Description

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.

Affected products

How to fix

Upgrade to a fixed version: jpadilla pyjwt 2.14.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-102267 or the next vulnerability affects your stack