CVE-2025-68158
Last modified
CVE-2025-68158 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. Authlib is a Python library which builds OAuth and OpenID Connect servers. In versions 1.0.0 through 1.6.5, cache-backed state/request-token storage is not tied to the initiating user session, so CSRF is possible for any attacker that has a valid state (easily obtainable via an attacker-initiated authentication flow). EPSS estimates a 0.24% chance of exploitation in the next 30 days.
Description
Authlib is a Python library which builds OAuth and OpenID Connect servers. In versions 1.0.0 through 1.6.5, cache-backed state/request-token storage is not tied to the initiating user session, so CSRF is possible for any attacker that has a valid state (easily obtainable via an attacker-initiated authentication flow). When a cache is supplied to the OAuth client registry, FrameworkIntegration.set_state_data writes the entire state blob under _state_{app}_{state}, and get_state_data ignores the caller’s session altogether. This issue has been patched in version 1.6.6.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Authlib | Authlib | < 1.6.6 |
References
- https://github.com/authlib/authlib/security/advisories/GHSA-fg6f-75jq-6523Exploit, Vendor Advisory
- https://github.com/authlib/authlib/security/advisories/GHSA-fg6f-75jq-6523Exploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-68158?
How severe is CVE-2025-68158?
How do I fix CVE-2025-68158?
Are you affected by CVE-2025-68158?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
