Moderate severityOSV Advisory· Published Jan 8, 2026· Updated Mar 30, 2026
Authlib: 1-click Account Takeover
CVE-2025-68158
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
authlibPyPI | >= 1.0.0, < 1.6.6 | 1.6.6 |
Affected products
6- ghsa-coords5 versionspkg:pypi/authlibpkg:rpm/opensuse/python-Authlib&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/python-Authlib&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-Authlib&distro=openSUSE%20Tumbleweedpkg:rpm/suse/python-Authlib&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP7
>= 1.0.0, < 1.6.6+ 4 more
- (no CPE)range: >= 1.0.0, < 1.6.6
- (no CPE)range: < 1.3.1-150600.3.14.1
- (no CPE)range: < 1.5.2-bp160.2.1
- (no CPE)range: < 1.6.6-1.1
- (no CPE)range: < 1.3.1-150600.3.14.1
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-fg6f-75jq-6523ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-68158ghsaADVISORY
- github.com/authlib/authlib/commit/2808378611dd6fb2532b189a9087877d8f0c0489ghsax_refsource_MISCWEB
- github.com/authlib/authlib/commit/7974f45e4d7492ab5f527577677f2770ce423228ghsax_refsource_MISCWEB
- github.com/authlib/authlib/security/advisories/GHSA-fg6f-75jq-6523ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.