PYSEC-2026-25: Authlib: Cross-site request forging when using cache

Published Apr 24, 2026
·
Updated

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

1 affected component
pypi/authlib<1.6.11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Authlib to a version that resolves this vulnerability.

    Fixed in 1.6.11

Event History

Apr 24, 2026
CVE Published
via OSV·07:14 PM
Data Sourced
via OSV·07:14 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

What is the remediation?

Upgrade Authlib to version 1.6.11, which fixes the missing CSRF protection on the affected cache feature.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203