Server-Side Request Forgery (SSRF) in pyjwt - #VU150527
Published: September 17, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive request headers and cause forged JWT acceptance.
The vulnerability exists due to improper validation of redirect destinations in PyJWKClient when fetching JWKS from an attacker-influenced configured endpoint. A remote attacker can cause the endpoint to return a redirect to a different host to disclose sensitive request headers and cause forged JWT acceptance.
A token kid alone does not trigger the issue.