{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-14546","id":"CVE-2025-14546","title":"FastAPI SSP is vulnerable to Cross-site Request Forgery (CSRF) through improper OAuth parameter validation","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 ","descriptionLong":"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.","published":"2025-12-19T05:00:02.151Z","updated":"2026-10-28T02:30:42.065532835Z","reserved":"2025-12-11T17:14:20.112Z","status":"Deferred","rejected":false,"assigner":"snyk","metric":{"version":"4.0","score":6.9,"vector":"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","rating":"medium","source":"snyk"},"metrics":[{"version":"4.0","score":6.9,"vector":"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","rating":"medium","source":"snyk"},{"version":"4.0","score":5.4,"vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"snyk.io"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N/E:P","rating":"medium","source":"snyk"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N","rating":"medium","source":"snyk.io"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N","rating":"medium","source":"OSV"}],"rating":"medium","products":["fastapi-sso"],"affectedProducts":[{"vendor":"n/a","product":"fastapi-sso","defaultStatus":null,"versions":[{"version":"0","lessThan":"0.19.0","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"fastapi-sso","purl":"pkg:pypi/fastapi-sso","ranges":["<0.19.0"],"fixed":["0.19.0"],"advisory":"GHSA-hp6r-r9vc-q8wx"}],"cwes":["CWE-285"],"aliases":["GHSA-hp6r-r9vc-q8wx","PYSEC-2026-1362"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-FASTAPISSO-14386403","tags":["web"]},{"url":"https://github.com/tomasvotava/fastapi-sso/commit/6117d1a5ad498ba57d671e8a059ebe20db5abe02","tags":["fix","web"]},{"url":"https://github.com/tomasvotava/fastapi-sso/issues/266","tags":["report","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/14xxx/CVE-2025-14546.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-14546","tags":["advisory"]},{"url":"https://github.com/tomasvotava/fastapi-sso","tags":["package"]},{"url":"https://pypi.org/project/fastapi-sso","tags":["package"]},{"url":"https://github.com/advisories/GHSA-hp6r-r9vc-q8wx","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00381,"epssPercentile":0.32857,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-14546","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-14546","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-14546","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-hp6r-r9vc-q8wx","ok":true,"note":"GHSA-hp6r-r9vc-q8wx"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-14546","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}