Vulnerabilities

Vulnerability · CVE-2025-24358

gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services.

Published Apr 15, 2025 · catalog updated May 1, 2025 · gorilla/csrf provides Cross Site

Check this week

CVE-2025-24358 is not in CISA KEV. FIRST estimates a 37.00% chance of exploitation in the next 30 days. Check whether you run gorilla/csrf provides Cross Site.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (gorilla/csrf provides Cross Site).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
Medium5.4
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
37.00%
Remediation
Version ranges on file
Affected products
vendor gorilla csrf < 1.7.3

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

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • vendor gorilla csrf < 1.7.3< 1.7.3

How to fix CVE-2025-24358

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

CVE-2025-24358 is not in CISA KEV. FIRST estimates a 37.00% chance of exploitation in the next 30 days. Check whether you run gorilla/csrf provides Cross Site.

Which versions are affected?

Compare what you have installed with gorilla csrf < 1.7.3 < 1.7.3. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

No weakness class is stored. EPSS 37.00%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Apr 15, 2025 · EUVD

    Detected

    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. Howeve

  2. May 1, 2025 · EUVD

    Updated

    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. Howeve

Sources

  • CVE.orgVulnerability recordCVE-2025-24358

    Official CVE identifier

    cve.org
  • EUVDVulnerability recordEUVD-2025-10883

    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 onl

    euvd.enisa.europa.eu

References

Freshness

Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.