Vulnerability · Published Jan 8, 2026 · Assigned by GitHub_M
CVE-2025-68158Authlib: 1-click Account Takeover
Medium 5.7
In plain English
A medium-severity cross-site request forgery in authlib from authlib. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-authlib | 1.2.0-1+deb12u1 | DEBIAN-CVE-2025-68158 |
| Debian:13 | python-authlib | 1.6.0-1+deb13u1 | DEBIAN-CVE-2025-68158 |
| Debian:14 | python-authlib | 1.6.6-1 | DEBIAN-CVE-2025-68158 |
| PyPI | authlib | 1.6.6 | GHSA-fg6f-75jq-6523 |
| PyPI | authlib | 1.6.6 | PYSEC-2026-1201 |
| Ubuntu:25.10 | python-authlib | no fix listed | UBUNTU-CVE-2025-68158 |
Affected products (as reported)
Weakness: CWE-352 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N