← All vulnerabilities
CVE-2026-114620EUVD-2026-108522

Authlib: Unvalidated request_uri fetch in JWT-secured authorization request (JAR) leading to SSRF

Published
Last modified
Status
published
Known exploitation
Not listed in CISA KEV
Public exploit
None on Exploit-DB

Summary

Authlib, a Python library for building OAuth and OpenID Connect servers, is affected, along with applications that use its RFC 9101 JWT-secured authorization request feature with a custom request-object fetch hook that performs unrestricted outbound requests. An unauthenticated remote attacker could make the authorization server fetch internal or otherwise unintended URLs and infer results from error messages and response timing, exposing internal network resources.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.0, Authlib's RFC 9101 JWTAuthenticationRequest passes the unauthenticated, client-controlled request_uri parameter to the abstract get_request_object() hook before applying a destination or registration policy; the hook itself performs no network request, while the documentation demonstrates an unrestricted HTTP fetch. In deployments whose integrator implements that hook as an unrestricted outbound fetch, a remote attacker who knows a valid public client identifier can make the authorization server request internal, link-local, or otherwise unintended URLs and can distinguish fetch outcomes through different error responses and timing. Deployments whose custom hook already applies a secure allowlist, destination controls, and retrieval limits are not affected. The JWTAuthenticationRequest implementation in authlib/oauth2/rfc9101/authorization_server.py forwards request_uri to get_request_object() before an application-approved retrieval policy accepts the destination. This issue is fixed in version 1.9.0.

Affected versions

  • authlib authlib

    fixed in 1.9.0

References 5

GitHub · authlib/authlib