CVEfocus › CVE database › CVE-2025-68158

CVE-2025-68158Authlib: 1-click Account Takeover

CVSS 5.7 MediumEPSS 0.3% (higher than 20% of CVEs)Published 2026-01-08Updated 2026-03-30Assigner: GitHub_M

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.

CWE-352

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Fix pending
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10python-authlibWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-68158
Ubuntu 24.04python-authlibFix pending1.3.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-68158
Debian 14python-authlibFixed1.6.6-1DEBIAN-CVE-2025-68158
Debian 13python-authlibFixed1.6.0-1+deb13u1DEBIAN-CVE-2025-68158
Debian 12python-authlibFixed1.2.0-1+deb12u1DEBIAN-CVE-2025-68158
PyPI libraryauthlibFixed1.6.6GHSA-fg6f-75jq-6523

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.