PT-2025-54492 · Pypi+3 · Oauthlib+3

CVE-2025-68158

·

Published

2025-01-01

·

Updated

2026-07-07

CVSS v3.1

8.8

High

VectorAV: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

CVE-2025-68158
ECHO-9727-A15C-FEDD
GHSA-FG6F-75JQ-6523
OPENSUSE-SU-2026:10034-1
OPENSUSE-SU-2026:20257-1
PYSEC-2026-1201
SUSE-SU-2026:0828-1
USN-8065-1

Affected Products

Oauthlib
Debian
Linuxmint
Ubuntu