Cross-site Request Forgery (CSRF) Affecting authlib package, versions [,1.6.6)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.25% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-AUTHLIB-14908840
  • published9 Jan 2026
  • disclosed8 Jan 2026
  • creditDavid Borș (Snyk Security Research)

Introduced: 8 Jan 2026

CVE-2025-68158  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade authlib to version 1.6.6 or higher.

Overview

authlib is a library in building OAuth and OpenID Connect servers.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) due to the improper validation of the request.scope in the validate_authorization_request() function which leads to cache-backed state/request-token storage not being tied to the initiating user session. An attacker can gain unauthorized access to sensitive account information by tricking a logged-in user into performing a crafted GET request containing an attacker-controlled state value and grant code, which results in the attacker's account being linked to the victim's account.

CVSS Base Scores

version 4.0
version 3.1