Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. fastapi-sso
  4. ›
  5. CVE-2025-14546

CVE-2025-14546: FastAPI SSP is vulnerable to Cross-site Request Forgery (CSRF) through improper OAuth parameter validation

December 19, 2025

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.

References

  • github.com/advisories/GHSA-hp6r-r9vc-q8wx
  • github.com/tomasvotava/fastapi-sso
  • github.com/tomasvotava/fastapi-sso/commit/6117d1a5ad498ba57d671e8a059ebe20db5abe02
  • github.com/tomasvotava/fastapi-sso/issues/266
  • nvd.nist.gov/vuln/detail/CVE-2025-14546
  • security.snyk.io/vuln/SNYK-PYTHON-FASTAPISSO-14386403

Code Behaviors & Features

Detect and mitigate CVE-2025-14546 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.19.0

Fixed versions

  • 0.19.0

Solution

Upgrade to version 0.19.0 or above.

Impact 6.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization

Source file

pypi/fastapi-sso/CVE-2025-14546.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:22 +0000.