
CVE catalog
CVE-2025-47909
golang-github-gorilla-csrf: CVE-2025-47909
- Severity
- High · CVSS 7.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.17% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | golang-github-gorilla-csrf | sid | 1.7.2+ds1-3 | vulnerable |
| Debian | golang-github-gorilla-csrf | forky | 1.7.2+ds1-3 | vulnerable |
| Debian | golang-github-gorilla-csrf | trixie | 1.7.2+ds1-2 | vulnerable |
| Debian | golang-github-gorilla-csrf | bookworm | 1.7.1-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-github-gorilla-csrf | source | sid | (unfixed) | not yet assigned | Not reported | [1118966] |
| Debian | golang-github-gorilla-csrf | source | forky | (unfixed) | not yet assigned | Not reported | [1118966] |
| Debian | golang-github-gorilla-csrf | source | trixie | (unfixed) | not yet assigned | Not reported | [1118966] |
| Debian | golang-github-gorilla-csrf | source | bookworm | (unfixed) | not yet assigned | Not reported | [1118966] |
Notes
[trixie] golang-github-gorilla-csrf: Minor issue [bookworm] golang-github-gorilla-csrf: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [golang-github-gorilla-csrf-dev]Affected
Source package: [golang-github-gorilla-csrf]
Details (4)
1.7.1-1· all · bookwormAffected
dsa · golang-github-gorilla-csrf · debian · bookworm; dsa · golang-github-gorilla-csrf · debian · 12
1.7.1-1· all · bookwormAffected
dsa · golang-github-gorilla-csrf · debian · bookworm; dsa · golang-github-gorilla-csrf · debian · 12
1.7.2-1~bpo12+1· all · bookworm-backportsAffected
dsa · golang-github-gorilla-csrf · debian · bookworm; dsa · golang-github-gorilla-csrf · debian · 12
1.7.2-1~bpo12+1· all · bookworm-backportsAffected
dsa · golang-github-gorilla-csrf · debian · bookworm; dsa · golang-github-gorilla-csrf · debian · 12
[Debian 13 (Trixie)]
- [golang-github-gorilla-csrf-dev]Affected
Source package: [golang-github-gorilla-csrf]
Details (2)
1.7.2+ds1-2· all · trixieAffected
dsa · golang-github-gorilla-csrf · debian · 13
1.7.2+ds1-2· all · trixieAffected
dsa · golang-github-gorilla-csrf · debian · 13
Observed: