Skip to main content
VulnerabilityPublished Updated

CVE-2025-24358: Golang github gorilla csrf · gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention

Affects golang-github-gorilla-csrfSource GCVE Database

0
Compare

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

CVSS 4.0 base score
6.0Medium
How severe the flaw is on the 0–10 CVSS scale.
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:P

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 15 Apr 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    CVSS exploit maturity: proof of concept public

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 26.10golang-github-gorilla-csrfpkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=stonkingOther threatsAffected
  • =1.7.2+ds1-2
  • =1.7.2+ds1-3
Fixed in–
Ubuntu 26.04 LTSgolang-github-gorilla-csrfpkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=resoluteOther threatsAffected
  • =1.7.2+ds1-2
Fixed in–
Ubuntu 25.10golang-github-gorilla-csrfpkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=questingOther threatsAffected
  • =1.7.2+ds1-1
  • =1.7.2+ds1-2
Fixed in–
Ubuntu 24.04 LTSgolang-github-gorilla-csrfpkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=nobleOther threatsAffected
  • =1.7.1-1
  • =1.7.2-1
Fixed in–
Ubuntu 22.04 LTSgolang-github-gorilla-csrfpkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=jammyOther threatsAffected
  • =1.6.2-2
Fixed in–
Ubuntu 20.04 LTSgolang-github-gorilla-csrfpkg:deb/ubuntu/golang-github-gorilla-csrf?arch=source&distro=focalOther threatsAffected
  • =1.6.2-1
  • =1.6.2-2
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.

References

Community reviews

Loading reviews…