Skip to main content
VulnerabilityPublished Updated

CVE-2025-47909: Golang github gorilla csrf · Hosts listed in TrustedOrigins implicitly allow requests from the

Affects golang-github-gorilla-csrfSource GCVE Database

0
Compare

Mentioned vulnerabilities

Not known to be exploited · CVSS 7.3 High.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
7.3High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 7% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Aug 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  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), 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

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.

References

Community reviews

Loading reviews…