Skip to main content

Fastapi Users

1 CVEs product

Monthly

CVE-2025-68481 Dec 19, 21:15 PyPI HIGH POC PATCH This Week

OAuth login CSRF in the FastAPI Users Python library before 15.0.2 allows an unauthenticated attacker to have a victim's browser silently complete an OAuth callback using an attacker-controlled authorization code and a state token the attacker obtained from the same server. Because the state JWT carries no per-request entropy and is never correlated to the browser that started the flow, it is valid for any client for roughly one hour; the attacker needs only to lure the victim into loading a crafted /callback URL (user interaction required). Successful abuse logs the victim into the attacker's account, and depending on the host application's OAuth account-association logic it can escalate to a one-click takeover of the victim's account. Publicly available exploit code and a detailed GitHub security advisory (GHSA-5j53-63w8-8625) exist, and version 15.0.2 contains the vendor patch.

Authentication Bypass Python CSRF Fastapi Users
NVD GitHub
CVSS 3.1
8.8
EPSS
0.3%
EPSS 0% CVSS 8.8
HIGH POC PATCH This Week

OAuth login CSRF in the FastAPI Users Python library before 15.0.2 allows an unauthenticated attacker to have a victim's browser silently complete an OAuth callback using an attacker-controlled authorization code and a state token the attacker obtained from the same server. Because the state JWT carries no per-request entropy and is never correlated to the browser that started the flow, it is valid for any client for roughly one hour; the attacker needs only to lure the victim into loading a crafted /callback URL (user interaction required). Successful abuse logs the victim into the attacker's account, and depending on the host application's OAuth account-association logic it can escalate to a one-click takeover of the victim's account. Publicly available exploit code and a detailed GitHub security advisory (GHSA-5j53-63w8-8625) exist, and version 15.0.2 contains the vendor patch.

Authentication Bypass Python CSRF +1
NVD GitHub

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy