
CVE catalog
CVE-2025-24358
golang-github-gorilla-csrf: CVE-2025-24358
- Severity
- Medium · CVSS 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.37% · Oct 25, 2026
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.
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 | fixed |
| Debian | golang-github-gorilla-csrf | forky | 1.7.2+ds1-3 | fixed |
| Debian | golang-github-gorilla-csrf | trixie | 1.7.2+ds1-2 | fixed |
| Debian | golang-github-gorilla-csrf | bookworm | 1.7.1-1 | vulnerable |
| Opensuse | govulncheck-vulndb | tumbleweed | 0.0.20250422T181640-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-github-gorilla-csrf | source | sid | 1.7.2+ds1-2 | not yet assigned | Not reported | [1103584] |
| Debian | golang-github-gorilla-csrf | source | forky | 1.7.2+ds1-2 | not yet assigned | Not reported | [1103584] |
| Debian | golang-github-gorilla-csrf | source | trixie | 1.7.2+ds1-2 | not yet assigned | Not reported | [1103584] |
| Debian | golang-github-gorilla-csrf | source | bookworm | (unfixed) | not yet assigned | Not reported | [1103584] |
| Opensuse | govulncheck-vulndb | rpm | tumbleweed | 0.0.20250422T181640-1.1 | Not reported | OPENSUSE-SU-2025:15017-1 | Not reported |
Notes
[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)]
Source package: [golang-github-gorilla-csrf]
Details (2)
1.7.2+ds1-2· all · trixieFixed · Fixed:
1.7.2+ds1-2dsa · golang-github-gorilla-csrf · debian · 13
1.7.2+ds1-2· all · trixieFixed · Fixed:
1.7.2+ds1-2dsa · golang-github-gorilla-csrf · debian · 13
[openSUSE Tumbleweed]
- [govulncheck-vulndb]Fixed
Source package: [govulncheck-vulndb]
Details (1)
0.0.20260828T144745-1.1· noarch · tumbleweedFixed · Fixed:
0.0.20250422T181640-1.1dsa · govulncheck-vulndb · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2025_15017-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-24358]
- [https://osv.dev/vulnerability/DLA-4151-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2025:15017-1]
- [https://security-tracker.debian.org/tracker/CVE-2025-24358]
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-24358.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]