Home / github.com/gorilla/csrf / github.com/gorilla/csrf / CVE-2025-47909
CVE-2025-47909: is it exploited, and which versions of github.com/gorilla/csrf are affected and fixed?
CVE-2025-47909 is an origin not validated vulnerability in github.com/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, 14:38 UTC). Affected: github.com/gorilla/csrf through 1.7.3 (GitHub advisory GHSA-82ff-hg59-8x73). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (7.3, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 28, 2026, 17:35 UTC and NVD November 19, 2026, 07:17 UTC.
What is CVE-2025-47909?
Improper validation of TrustedOrigins allows CSRF attacks in github.com/gorilla/csrf
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.
From the CVE record by Go, last updated August 29, 2025, 18:23 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| github.com/gorilla/csrf | github.com/gorilla/csrf | all versions (default) |
As the CVE record by Go states it, last updated August 29, 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 | none listed | GHSA-82ff-hg59-8x73 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 29, 2025. Summary: github.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks.
How severe is CVE-2025-47909?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L | CISA-ADP |
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-47909 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, August 29, 2025)
- EPSS
- 0.19% probability of exploitation activity in the next 30 days, percentile 8.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-346 Origin Validation Error
- CWE-352 Cross-Site Request Forgery
- CWE-807 Reliance on Untrusted Inputs in a Security Decision
Where are the vendor advisories and references?
Who found and reported it?
- Filippo Valsorda (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- May 13, 2025
- Published
- August 29, 2025, 15:55 UTC
- CVE record updated
- August 29, 2025, 18:23 UTC by Go
- NVD
- Deferred, last modified October 19, 2026, 17:10 UTC
- Last checked
- CVE list November 28, 2026, 17:35 UTC; NVD November 19, 2026, 07:17 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2025-47909
Is CVE-2025-47909 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 0.19% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of github.com/gorilla/csrf are affected by CVE-2025-47909?
github.com/gorilla/csrf through 1.7.3, per the GitHub advisory GHSA-82ff-hg59-8x73. The tables above give every range the sources list.
Which version fixes CVE-2025-47909?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2025-47909?
High (7.3, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2025-47909?
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.