PT-2025-54492 · Pypi+3 · Oauthlib+3
Published
2025-01-01
·
Updated
2026-03-05
·
CVE-2025-68158
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Authlib versions 1.6.5 and prior
Description
Authlib is a Python library used for building OAuth and OpenID Connect servers. A flaw exists in cache-backed state/request-token storage where it is not linked to the user session. This allows for Cross-Site Request Forgery (CSRF) if an attacker obtains a valid state, which is easily achievable through an attacker-initiated authentication flow. Specifically, the
FrameworkIntegration.set state data function writes state data under the key state {app} {state}, while get state data disregards the caller’s session.Recommendations
Update Authlib to version 1.6.6 or later.
Exploit
Fix
CSRF
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Oauthlib
Debian
Linuxmint
Ubuntu