Home / gorilla / csrf / CVE-2025-24358
CVE-2025-24358: is it exploited, and which versions of gorilla csrf are affected and fixed?
CVE-2025-24358 is a cross-site request forgery (CSRF) vulnerability in gorilla csrf. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: github.com/gorilla/csrf before 1.7.3 (GitHub advisory GHSA-rq77-p4h8-4crw). Fixed in 1.7.3 (GitHub advisory GHSA-rq77-p4h8-4crw). Severity: Medium (5.4, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:21 UTC.
What is CVE-2025-24358?
gorilla/csrf CSRF vulnerability due to broken Referer validation
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.
From the CVE record by GitHub_M, last updated May 1, 2025, 11:02 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| gorilla | csrf | < 1.7.3 |
As the CVE record by GitHub_M states it, last updated May 1, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/gorilla/csrf | < 1.7.3 | 1.7.3 | GHSA-rq77-p4h8-4crw |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 1, 2025. Summary: gorilla/csrf CSRF vulnerability due to broken Referer validation.
How severe is CVE-2025-24358?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.4 | CVSS 4.0 | 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 | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-24358 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, April 15, 2025)
- EPSS
- 0.38% probability of exploitation activity in the next 30 days, percentile 33.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-352 Cross-Site Request Forgery
Where are the vendor advisories and references?
- https://github.com/gorilla/csrf/security/advisories/GHSA-rq77-p4h8-4crw x_refsource_CONFIRM
- https://github.com/gorilla/csrf/commit/9dd6af1f6d30fc79fb0d972394deebdabad6b5eb x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/05/msg00002.html
When was it published, and where is the official record?
- Reserved
- January 20, 2025
- Published
- April 15, 2025, 18:57 UTC
- CVE record updated
- May 1, 2025, 11:02 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 08:58 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:21 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2025-24358
Is CVE-2025-24358 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.38% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of gorilla csrf are affected by CVE-2025-24358?
github.com/gorilla/csrf before 1.7.3, per the GitHub advisory GHSA-rq77-p4h8-4crw. The tables above give every range the sources list.
Which version fixes CVE-2025-24358?
1.7.3, per the GitHub advisory GHSA-rq77-p4h8-4crw. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-24358?
Medium (5.4, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-24358?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.