{"cve":"CVE-2025-24358","nvd":{"published":"2025-04-15T19:16:07.193","modified":"2026-06-17T08:58:41.263","status":"Deferred","description":"gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services. Prior to 1.7.2, gorilla/csrf does not validate the Origin header against an allowlist. Its executes its validation of the Referer header for cross-origin requests only when it believes the request is being served over TLS. It determines this by inspecting the r.URL.Scheme value. However, this value is never populated for \"server\" requests per the Go spec, and so this check does not run in practice. This vulnerability allows an attacker who has gained XSS on a subdomain or top level domain to perform authenticated form submissions against gorilla/csrf protected targets that share the same top level domain. This vulnerability is fixed in 1.7.2.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","score":5.4},"cvss_v3":null,"cwes":["CWE-352"],"references":["https://github.com/gorilla/csrf/commit/9dd6af1f6d30fc79fb0d972394deebdabad6b5eb","https://github.com/gorilla/csrf/security/advisories/GHSA-rq77-p4h8-4crw","https://lists.debian.org/debian-lts-announce/2025/05/msg00002.html"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:00:57.946988208+00:00"},"epss":{"cve":"CVE-2025-24358","score":0.00374,"percentile":0.31394,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rq77-p4h8-4crw","url":"https://osv.dev/vulnerability/GHSA-rq77-p4h8-4crw","summary":"gorilla/csrf CSRF vulnerability due to broken Referer validation","modified":"2026-09-10T03:50:24.038698025Z","packages":[{"ecosystem":"Go","name":"github.com/gorilla/csrf","purl":"pkg:golang/github.com/gorilla/csrf","ranges":["<1.7.3"],"fixed":["1.7.3"]}]},{"id":"GO-2025-3607","url":"https://osv.dev/vulnerability/GO-2025-3607","summary":"gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf","modified":"2026-02-04T03:44:16.738422Z","packages":[{"ecosystem":"Go","name":"github.com/gorilla/csrf","purl":"pkg:golang/github.com/gorilla/csrf","ranges":["<1.7.3"],"fixed":["1.7.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}