CVE-2025-68158
HIGH 8.8CVSS 3.1Authlib has 1-click Account Takeover vulnerability
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.
- Published
- 8 Jan 2026
- Last modified
- 14 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-352
- Also known as
- GHSA-fg6f-75jq-6523PYSEC-2026-1201
- Sources
- NVDJSONOSV GHSA-fg6f-75jq-6523JSONOSV PYSEC-2026-1201JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | authlib | authlibcpe:2.3:a:authlib:authlib:*:*:*:*:*:*:*:* |
< 1.6.6 | 1.6.6 |
| OSV | PyPI | authlib | >= 1.0.0, < 1.6.6 | 1.6.6 |
References
- https://github.com/authlib/authlib/commit/2808378611dd6fb2532b189a9087877d8f0c0489 · Patch, WEB
- https://github.com/authlib/authlib/commit/7974f45e4d7492ab5f527577677f2770ce423228 · Patch, WEB
- https://github.com/authlib/authlib/security/advisories/GHSA-fg6f-75jq-6523 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-68158 · ADVISORY
- https://github.com/authlib/authlib · PACKAGE
- https://pypi.org/project/authlib · PACKAGE
- https://github.com/advisories/GHSA-fg6f-75jq-6523 · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 8 Jan 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Jan 2026)