> CVE-2025-68481 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2025-12-19 21:15
MODIFIED
2025-12-19 21:15
CVSS_SCORE V3
5.9
EPSS (Prob. Exploit)
0.26%
Top 82.4%
DATA SOURCES:
NVD đź”— 2025-12-19 CVE PROJECT đź”— 2026-01-19 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-11-08 GITHUB đź”— 2026-11-04 OSV đź”— 2026-11-08

> DESCRIPTION

FastAPI Users allows users to quickly add a registration and authentication system to their FastAPI project. Prior to version 15.0.2, the OAuth login state tokens are completely stateless and carry no per-request entropy or any data that could link them to the session that initiated the OAuth flow. `generate_state_token()` is always called with an empty `state_data` dict, so the resulting JWT only contains the fixed audience claim plus an expiration timestamp. On callback, the library merely checks that the JWT verifies under `state_secret` and is unexpired; there is no attempt to match the state value to the browser that initiated the OAuth request, no correlation cookie, and no server-side cache. Any attacker can hit `/authorize`, capture the server-generated state, finish the upstream OAuth flow with their own provider account, and then trick a victim into loading `.../callback?code=<attacker_code>&state=<attacker_state>`. Because the state JWT is valid for any client for \~1 hour, the victim’s browser will complete the flow. This leads to login CSRF. Depending on the app’s logic, the login CSRF can lead to an account takeover of the victim account or to the victim user getting logged in to the attacker's account. Version 15.0.2 contains a patch for the issue.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
EXPLOITABILITY
1.6
IMPACT
4.2

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-285 CWE-352

> CWE DETAILED DESCRIPTIONS

CWE-285: Improper Authorization - The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. | CWE-352: Cross-Site Request Forgery - The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.

> GITHUB SECURITY ADVISORY

GHSA-5j53-63w8-8625 MODERATE

FastAPI Users Vulnerable to 1-click Account Takeover in Apps Using FastAPI SSO

AFFECTED PACKAGES:
PIP / fastapi-users
< 15.0.2
Fixed in: 15.0.2

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

FastAPI Users Vulnerable to 1-click Account Takeover in Apps Using FastAPI SSO

AFFECTED PACKAGES:
Unknown / Unknown
103 versions affected
ALIASES:
GHSA-5j53-63w8-8625, PYSEC-2026-1363

> HISTORIQUE DES MODIFICATIONS

Première apparition
19/12/2025 21:15
Source: NVD
📊 ENRICHISSEMENT 01/11/2026 06:58
CWE
Champ modifié: Description CWE
Ancienne valeur:
CWE-285: Improper Authorization - The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. | CWE-352: Cross-Site Re...
Nouvelle valeur:
CWE-285: Improper Authorization - The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. | CWE-352: Cross-Site Re...
📊 ENRICHISSEMENT 19/01/2026 17:38
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
📊 ENRICHISSEMENT 01/01/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-285: Improper Authorization - The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. | CWE-352: Cross-Site Re...
Total des modifications: 3 Dernière mise à jour: 1 week ago

> REFERENCES

https://github.com/fastapi-users/fastapi-users/blob/bcee8c9b884de31decb5d799aead...
https://github.com/fastapi-users/fastapi-users/blob/bcee8c9b884de31decb5d799aead...
https://github.com/fastapi-users/fastapi-users/commit/7cf413cd766b9cb0ab323ce424...
https://github.com/fastapi-users/fastapi-users/security/advisories/GHSA-5j53-63w...
« BACK_TO_HOME