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.

Severity (CVSS 3.1)5.7Medium
Exploit odds (30 days)0.3%top 80.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12python-authlib1.2.0-1+deb12u1DEBIAN-CVE-2025-68158
Debian:13python-authlib1.6.0-1+deb13u1DEBIAN-CVE-2025-68158
Debian:14python-authlib1.6.6-1DEBIAN-CVE-2025-68158
PyPIauthlib1.6.6GHSA-fg6f-75jq-6523
PyPIauthlib1.6.6PYSEC-2026-1201
Ubuntu:25.10python-authlibno fix listedUBUNTU-CVE-2025-68158

Affected products (as reported)

VendorProductVersions
authlib authlib >= 1.0.0, < 1.6.6

Weakness: CWE-352 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N

References