CVE-2025-68158: authlib Cross-Site Request Forgery (CSRF)
Vulnerability summary
CVE-2025-68158 is a high (CVSS 8.8) Cross-Site Request Forgery (CSRF) vulnerability in authlib. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 18.4% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 08-01-2026PublishedVulnerability first disclosed.
- 30-03-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA5.7MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:NDiffers
- OSV · PypiEcosystem advisory · calculated5.7MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.27%
Chance of exploitation in the next 30 days
Percentile
18%
Versus all other CVEs
30-day change
0.00 pp
From 0.28% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundAuthlib
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Opensuse3 products
- python-Authlib&distro=openSUSE Leap 15.6< 1.3.1-150600.3.14.1
- python-Authlib&distro=openSUSE Leap 16.0< 1.5.2-bp160.2.1
- python-Authlib&distro=openSUSE Tumbleweed< 1.6.6-1.1
Authlib1 product
- authlib≥ 1.0.0, < 1.6.6 | < 1.6.6
Debian1 product
- python-authlib< 1.2.0-1+deb12u1 | < 1.6.0-1+deb13u1 | < 1.6.6-1
PyPI1 product
- authlib≥ 1.0.0, < 1.6.6
Suse1 product
- python-Authlib&distro=SUSE Linux Enterprise Module for Python 3 15 SP7< 1.3.1-150600.3.14.1
Ubuntu1 product
- python-authlib< 1.3.0-1ubuntu0.1~esm1 | All versions (No fix recorded)
6 vendors · 8 products
References
14 links- github.com/authlib/authlib/security/advisories/GHSA-fg6f-75jq-6523X Refsource CONFIRMWEBREPORTExploitVendor Advisory
- github.com/authlib/authlib/commit/2808378611dd6fb2532b189a9087877d8f0c0489X Refsource MISCWEBREPORTPatch
- github.com/authlib/authlib/commit/7974f45e4d7492ab5f527577677f2770ce423228X Refsource MISCWEBREPORTPatch
- github.com/authlib/authlibPACKAGE
- pypi.org/project/authlibPACKAGE