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

- Severity: Medium 5.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-08T17:58:17.724Z
- Modified: 2026-10-14T17:10:00.210Z
- Also known as: GHSA-fg6f-75jq-6523, PYSEC-2026-1201
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- authlib authlib: >= 1.0.0, < 1.6.6; before 1.6.6
- authlib (PyPI): from 1.0.0 before 1.6.6

## Every score

- GitHub_M: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://github.com/authlib/authlib/security/advisories/GHSA-fg6f-75jq-6523> (exploit, vendor-advisory, web)
- <https://github.com/authlib/authlib/commit/2808378611dd6fb2532b189a9087877d8f0c0489> (patch, web)
- <https://github.com/authlib/authlib/commit/7974f45e4d7492ab5f527577677f2770ce423228> (patch, 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)

## Sources

- CVE List: [CVE-2025-68158](https://www.cve.org/CVERecord?id=CVE-2025-68158), CVE Terms of Use, modified 2026-03-30
- GitHub Advisory Database: [GHSA-fg6f-75jq-6523](https://github.com/advisories/GHSA-fg6f-75jq-6523), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-68158](https://nvd.nist.gov/vuln/detail/CVE-2025-68158), Public domain, modified 2026-10-14
- PyPA Advisory Database: [PYSEC-2026-1201](https://osv.dev/vulnerability/PYSEC-2026-1201), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-68158 · Whole record: https://cve.day/CVE-2025-68158.json · Rebuilt by cve.day 2026-11-25T22:59:10.450Z
