CVE-2025-47909
CVE-2025-47909 · Improper validation of TrustedOrigins allows CSRF attacks in github.com/gorilla/csrf
CVSS 7.3 · High · EPSS 0.2%
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- github.com/gorilla/csrfNo fix published
- golang-github-gorilla-csrf Debian 12No fix published
- golang-github-gorilla-csrf Debian 13No fix published
- golang-github-gorilla-csrf Debian 14No fix published
- and 6 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-github-gorilla-csrf"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Stack: system
Affected products and versions
github.com/gorilla/csrf
- Versions
- ≥ 0, < 1.7.3: Not affected (semver)
No fix published
golang-github-gorilla-csrf Debian 12
- Versions
- 1.7.1-1
- 1.7.2+ds1-1
- 1.7.2+ds1-2
- 1.7.2+ds1-3
- 1.7.2-1
- 1.7.2-1~bpo12+1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-gorilla-csrf Debian 13
- Versions
- 1.7.2+ds1-2
- 1.7.2+ds1-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-gorilla-csrf Debian 14
- Versions
- 1.7.2+ds1-2
- 1.7.2+ds1-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-gorilla-csrf Ubuntu 20.04 LTS
- Versions
- 1.6.2-1
- 1.6.2-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-gorilla-csrf Ubuntu 22.04 LTS
- Versions
- 1.6.2-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-gorilla-csrf Ubuntu 24.04 LTS
- Versions
- 1.7.1-1
- 1.7.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-gorilla-csrf Ubuntu 25.10
- Versions
- 1.7.2+ds1-1
- 1.7.2+ds1-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-gorilla-csrf Ubuntu 26.10
- Versions
- 1.7.2+ds1-2
- 1.7.2+ds1-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-gorilla-csrf Ubuntu 26.04 LTS
- Versions
- 1.7.2+ds1-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published