CVE Catalog

CVE-2025-14546

MediumCVSS 6.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.36%

27th percentile - higher than 27% of all known CVEs

Summary

Versions of the fastapi-sso package before 0.19.0 are vulnerable to Cross-site Request Forgery (CSRF) due to improper validation of the OAuth state parameter during the authentication callback. The get_login_url method allows state generation but does not persist or bind it to the user's session. Consequently, the verify_and_process method accepts the state received in query parameters without verifying it against a trusted local value. This allows a remote attacker to trick a victim into visiting a malicious callback URL, which can result in the attacker's account being linked to the victim's internal account.

Risk Assessment

The risk includes the possibility of account takeover or linking the attacker's account to the victim's account, potentially leading to unauthorized access to data and functions.

Recommendation

Upgrade to version 0.19.0 or later, which includes the fix, and implement OAuth state verification mechanisms tied to the user's session.

Related vulnerabilities

Original NVD description (English source)

Versions of the package fastapi-sso before 0.19.0 are vulnerable to Cross-site Request Forgery (CSRF) due to the improper validation of the OAuth state parameter during the authentication callback. While the get_login_url method allows for state generation, it does not persist the state or bind it to the user's session. Consequently, the verify_and_process method accepts the state received in the query parameters without verifying it against a trusted local value. This allows a remote attacker to trick a victim into visiting a malicious callback URL, which can result in the attacker's account being linked to the victim's internal account.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS