PYSEC-2026-25: Authlib: Cross-site request forging when using cache
Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.6.11, there is no CSRF protection on the cache feature in authlib.integrations.starletteclient.OAuth. This vulnerability is fixed in 1.6.11.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Authlibto a version that resolves this vulnerability.Fixed in 1.6.11
Event History
Frequently Asked Questions
Which deployments are affected?
Deployments using Authlib versions before 1.6.11 with the cache feature in authlib.integrations.starlette_client.OAuth are affected. The issue concerns OAuth and OpenID Connect server functionality built with this integration.
What must an attacker do to exploit this issue?
Exploitation requires user interaction, as reflected by the UI:R vector. The attacker can perform cross-site request forgery against the affected cache feature without needing prior privileges.
Is a default installation affected?
The available information identifies the cache feature as the affected condition. It does not state whether that feature is enabled or used by default.
What is the remediation?
Upgrade Authlib to version 1.6.11, which fixes the missing CSRF protection on the affected cache feature.