CVE-2026-41425 — Vulnerability in authlib — CVE Details
Authlib: Cross-site request forging when using cache
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.14%). Schedule for your next planned update.
Does your project use an affected authlib version?
Paste your requirements.txt to check it for CVE-2026-41425 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
There is no CSRF protection on the cache feature on most integrations clients.
Details
In authlib.integrations.starlette_client.OAuth, no CSRF protection is set up when using the cache parameter. When not using the cache parameter, the use of SessionMiddleware ties the client to the auth state, preventing CSRF attacks. With the cache, there is no such mechanism. Other integratons have the same issue, it's not just starlette.
The state parameter is taken from the callback URL and the state is fetched from the cache without checking that it is the same client calling the redirect endpoint as was the one that initiated the auth flow.
This issue is documented in RFC 6749 section 10.12: https://datatracker.ietf.org/doc/html/rfc6749#section-10.12
PoC
- Set up a Starlette integration with a cache
- The attacker starts the auth flow up until before the callback URL is followed.
- The attacked sends the redirect URL to the victim
- The victim now completes the authorisation
Impact
This impacts all users that use the cache to store auth state.
All users will be vulnerable to CSRF attacks and may have an attacker's account tied to their own.
Advisory Timeline
- First published April 16, 2026 (224 days ago).
- Last revised September 10, 2026 — 146 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "authlib>=1.6.11"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| authlib PyPI · Affected: 0.1, 0.10, 0.11, 0.12 (+54 more) | 1.6.11 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-352Cross-Site Request Forgery (CSRF)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.4 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
References
Frequently Asked Questions
- What is CVE-2026-41425?
- Authlib: Cross-site request forging when using cache. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.4/10).
- How do I check if my project is affected by CVE-2026-41425?
- CVE-2026-41425 affects authlib. It has a 0.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-41425 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 1.8% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-27962CRITICAL
Authlib JWS JWK Header Injection: Signature Verification Bypass
- CVE-2026-28802CRITICAL
- CVE-2026-96760CRITICAL
Authlib: empty signatures validation in JWS JSON deserialization
- CVE-2026-28498HIGH
- CVE-2026-44681MEDIUM
- CVE-2025-68158MEDIUM
Authlib has 1-click Account Takeover vulnerability
- CVE-2026-28490MEDIUM
- CVE-2026-41479MEDIUM