CVE-2025-24358: Golang github gorilla csrf · gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention
Affects golang-github-gorilla-csrfSource GCVE Database
Public exploit available · CVSS 6.0 Medium · fixed in 1.7.2 : patch golang-github-gorilla-csrf as a priority.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 32% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.7.2
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:PExploitation evidence
Disclosed: evidence found.
CVE published 15 Apr 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
CVSS exploit maturity: proof of concept public
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10golang-github-gorilla-csrfpkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-github-gorilla-csrfpkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10golang-github-gorilla-csrfpkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSgolang-github-gorilla-csrfpkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSgolang-github-gorilla-csrfpkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSgolang-github-gorilla-csrfpkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.