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?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-68152Juju is an open source application orchestration engine that…4.9
- CVE-2025-68153Juju is an open source application orchestration engine that…6.5
- CVE-2025-68154systeminformation is a System and OS information library for…8.1
- CVE-2025-68155@vitejs/plugin-rs provides React Server Components (RSC) sup…7.5
- CVE-2025-68156Expr is an expression language and expression evaluation for…7.5
- CVE-2025-68157Webpack is a module bundler. From version 5.49.0 to before 5…3.7
- CVE-2025-6816A vulnerability classified as problematic was found in HDF5 …3.3
- CVE-2025-68160Issue summary: Writing large, newline-free data into a BIO c…4.7
- CVE-2025-68161The Socket Appender in Apache Log4j Core versions 2.0-beta9 …4.8
- CVE-2025-68162In JetBrains TeamCity before 2025.11 maven embedder allowed …2.7
- CVE-2025-68163In JetBrains TeamCity before 2025.11 stored XSS was possible…4.8
- CVE-2025-68164In JetBrains TeamCity before 2025.11 port enumeration was po…2.7
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
