CVE-2025-68158 json
Authlib: 1-click Account Takeover
published 2026-01-08 10 mo ago modified 2026-10-14 25 d ago also EUVD-2025-206267 , GHSA-fg6f-75jq-6523 , PYSEC-2026-1201
- cvss
- 5.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 19%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi authlib 1.6.6
- authlib authlib 1.6.6
- python-authlib Debian 12 1.2.0-1+deb12u1
- python-authlib Debian 13 1.6.0-1+deb13u1
- python-authlib Debian 14 1.6.6-1
debian advisories DEBIAN-CVE-2025-68158
- python-authlib Ubuntu Pro 24.04 LTS 1.3.0-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2025-68158
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-Authlib SLE Module for Python 3 15 SP7, openSUSE Leap 15.6 1.3.1-150600.3.14.1
suse advisories SUSE-SU-2026:0828-1
- python-Authlib openSUSE Leap 16.0 1.5.2-bp160.2.1
- python-Authlib openSUSE Tumbleweed 1.6.6-1.1
opensuse advisories openSUSE-SU-2026:20257-1openSUSE-SU-2026:10034-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-68158 updated cvss 5.7
Authlib: Authlib: Cross-Site Request Forgery due to improper session management in state storage
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-25/lightspeed-chatbot-rhel8affected: workaround, no fix planned “Will not fix”
-
Red Hat Quay 3.15 quay 1775169219fixed: vendor fix RHSA-2026:6568
-
Red Hat Quay 3.16 quay 1775069491, quay 1775169226fixed: vendor fix RHSA-2026:6497
-
Red Hat Satellite 6.18 satellite/foreman-mcp-server-rhel9 1782228427fixed: vendor fix RHSA-2026:28405
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-26/lightspeed-chatbot-rhel9 Red Hat Quay 3.15 quay 1774979159, quay 1774979227, quay 1774980222, quay 1774980224, quay 1774984603, quay 1775183105, +3 more Red Hat Quay 3.16 quay 1773781267, quay 1773784956, quay 1773784969, quay 1773784980, quay 1773785008, quay 1773785412, +10 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 10 mo ago
Exploit prediction
0.27% chance of exploitation in the next 30 days, higher than 19% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/authlib/authlib/security/advisories/GHSA-fg6f-75jq-6523 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 5.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 5.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | authlib | >=1.0.0, <1.6.6 |
1.6.6 |
Affected products
- authlib authlib
Classification
- Weakness
-
- CWE-352 Cross-Site Request Forgery
References
-
github.com
/authlib/authlib/commit/2808378611dd6fb2532b189a9087877d8f0c0489
web, patch
-
github.com
/authlib/authlib/commit/7974f45e4d7492ab5f527577677f2770ce423228
web, patch
-
github.com
/authlib/authlib/security/advisories/GHSA-fg6f-75jq-6523
exploit, web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-68158
advisory
-
github.com
/authlib/authlib
package
-
pypi.org
/project/authlib
package
-
github.com
/advisories/GHSA-fg6f-75jq-6523
advisory
Sources
- CVE List CVE-2025-68158
- GitHub Advisory GHSA-fg6f-75jq-6523
- NVD CVE-2025-68158
- OSV PYSEC-2026-1201
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.