{"cve":"CVE-2025-47909","nvd":{"published":"2025-08-29T16:15:35.990","modified":"2026-10-19T17:10:00.173","status":"Deferred","description":"Hosts listed in TrustedOrigins implicitly allow requests from the corresponding HTTP origins, allowing network MitMs to perform CSRF attacks. After the CVE-2025-24358 fix, a network attacker that places a form at http://example.com can't get it to submit to https://example.com because the Origin header is checked with sameOrigin against a synthetic URL. However, if a host is added to TrustedOrigins, both its HTTP and HTTPS origins will be allowed, because the schema of the synthetic URL is ignored and only the host is checked. For example, if an application is hosted on https://example.com and adds example.net to TrustedOrigins, a network attacker can serve a form at http://example.net to perform the attack. Applications should migrate to net/http.CrossOriginProtection, introduced in Go 1.25. If that is not an option, a backport is available as a module at filippo.io/csrf, and a drop-in replacement for the github.com/gorilla/csrf API is available at filippo.io/csrf/gorilla.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3},"cwes":["CWE-346"],"references":["https://github.com/golang/vulndb/issues/3884","https://pkg.go.dev/vuln/GO-2025-3884"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:07:46.309729541+00:00"},"epss":{"cve":"CVE-2025-47909","score":0.0017,"percentile":0.06381,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-82ff-hg59-8x73","url":"https://osv.dev/vulnerability/GHSA-82ff-hg59-8x73","summary":"github.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks","modified":"2026-09-10T03:50:58.061253458Z","packages":[{"ecosystem":"Go","name":"github.com/gorilla/csrf","purl":"pkg:golang/github.com/gorilla/csrf","ranges":["<=1.7.3"],"fixed":[]}]},{"id":"GO-2025-3884","url":"https://osv.dev/vulnerability/GO-2025-3884","summary":"Improper validation of TrustedOrigins allows CSRF attacks in github.com/gorilla/csrf","modified":"2026-02-04T03:41:13.079076Z","packages":[{"ecosystem":"Go","name":"github.com/gorilla/csrf","purl":"pkg:golang/github.com/gorilla/csrf","ranges":[">=1.7.3"],"fixed":[]}]}],"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."]}