CVE-2025-68158

NameCVE-2025-68158
DescriptionAuthlib is a Python library which builds OAuth and OpenID Connect servers. In version 1.6.5 and prior, 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-authlib (PTS)bullseye0.15.4-1vulnerable
bullseye (security)0.15.4-1+deb11u1vulnerable
bookworm1.2.0-1vulnerable
trixie1.6.0-1vulnerable
forky, sid1.6.6-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-authlibsource(unstable)1.6.6-1

Notes

https://github.com/authlib/authlib/security/advisories/GHSA-fg6f-75jq-6523
Fixed by: https://github.com/authlib/authlib/commit/2808378611dd6fb2532b189a9087877d8f0c0489 (v1.6.6)

Search for package or bug name: Reporting problems