{"id":"CVE-2025-14546","aliases":["CVE-2025-14546","GHSA-hp6r-r9vc-q8wx","PYSEC-2026-1362"],"related":[],"kind":"vulnerability","state":"published","title":"FastAPI SSP is vulnerable to Cross-site Request Forgery (CSRF) through improper OAuth parameter validation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Las versiones del paquete fastapi-sso anteriores a la 0.19.0 son vulnerables a la falsificación de petición en sitios cruzados (CSRF) debido a la validación incorrecta del parámetro de estado de OAuth durante la devolución de llamada de autenticación. Si bien el método get_login_url permite la generación de estado, no persiste el estado ni lo vincula a la sesión del usuario. En consecuencia, el método verify_and_process acepta el estado recibido en los parámetros de consulta sin verificarlo contra un valor local de confianza. Esto permite a un atacante remoto engañar a una víctima para que visite una URL de devolución de llamada maliciosa, lo que puede resultar en que la cuenta del atacante se vincule a la cuenta interna de la víctima.","source":"nvd"}],"published":"2025-12-19T05:00:02.151Z","modified":"2026-10-13T11:10:00.203Z","severity":{"scorer":"snyk","scheme":"CVSS:4.0","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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:4.0","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","score":6.9,"rating":"MEDIUM"},{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N/E:P","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","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"}],"cwes":["CWE-285"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.19.0","status":"affected"}],"product":"fastapi-sso","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.19.0"}],"ecosystem":"PyPI","package":"fastapi-sso","purl":"pkg:pypi/fastapi-sso","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.19.0"}],"ecosystem":"PyPI","package":"fastapi-sso","purl":"pkg:pypi/fastapi-sso","source":"pysec"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-FASTAPISSO-14386403","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/tomasvotava/fastapi-sso/commit/6117d1a5ad498ba57d671e8a059ebe20db5abe02","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/tomasvotava/fastapi-sso/issues/266","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-14546","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/tomasvotava/fastapi-sso","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/fastapi-sso","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-hp6r-r9vc-q8wx","tags":["advisory"],"sources":["pysec"]}],"credits":["David Borș (Snyk Security Research)"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-12-19T15:39:06.032Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-14546","url":"https://www.cve.org/CVERecord?id=CVE-2025-14546","licence":"CVE Terms of Use","modified":"2025-12-19T15:39:15.674Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hp6r-r9vc-q8wx","url":"https://github.com/advisories/GHSA-hp6r-r9vc-q8wx","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:31.957Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-14546","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-14546","licence":"Public domain","modified":"2026-10-13T11:10:00.203Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1362","url":"https://osv.dev/vulnerability/PYSEC-2026-1362","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:35.987Z"}],"updatedAt":"2026-11-25T22:59:09.731Z","epss":{"score":0.00384,"percentile":0.34645,"date":"2026-12-01T12:00:22.000Z"}}