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

- Severity: Medium 6.9 (CVSS:4.0, scored by snyk) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2025-12-19T05:00:02.151Z
- Modified: 2026-10-13T11:10:00.203Z
- Also known as: GHSA-hp6r-r9vc-q8wx, PYSEC-2026-1362
- Weaknesses: CWE-285
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- fastapi-sso: before 0.19.0
- fastapi-sso (PyPI): before 0.19.0

## Every score

- snyk: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P`
- snyk: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N/E:P`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P`
- PyPA Advisory Database: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P`

## References

- <https://security.snyk.io/vuln/SNYK-PYTHON-FASTAPISSO-14386403> (web)
- <https://github.com/tomasvotava/fastapi-sso/commit/6117d1a5ad498ba57d671e8a059ebe20db5abe02> (web)
- <https://github.com/tomasvotava/fastapi-sso/issues/266> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-14546> (advisory)
- <https://github.com/tomasvotava/fastapi-sso> (package)
- <https://pypi.org/project/fastapi-sso> (package)
- <https://github.com/advisories/GHSA-hp6r-r9vc-q8wx> (advisory)

## Sources

- CVE List: [CVE-2025-14546](https://www.cve.org/CVERecord?id=CVE-2025-14546), CVE Terms of Use, modified 2025-12-19
- GitHub Advisory Database: [GHSA-hp6r-r9vc-q8wx](https://github.com/advisories/GHSA-hp6r-r9vc-q8wx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-14546](https://nvd.nist.gov/vuln/detail/CVE-2025-14546), Public domain, modified 2026-10-13
- PyPA Advisory Database: [PYSEC-2026-1362](https://osv.dev/vulnerability/PYSEC-2026-1362), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-14546 · Whole record: https://cve.day/CVE-2025-14546.json · Rebuilt by cve.day 2026-11-25T22:59:09.731Z
