CVE-2025-24358

  • Severity 5.4 MEDIUM
  • Published
  • Updated
  • Status Deferred
  • EUVD EUVD-2025-10883
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.
CSRF
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
5.4 MEDIUM
NETWORK
LOW
NONE
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P
Awaiting analysis
This vulnerability is currently awaiting analysis.
Base Score
CVSS 4.0
EPSS Score
Percentile: 33.93%
Debian logo
Debian Releases
Debian Product
Codename
golang-github-gorilla-csrf
bookworm
no-dsa
forky
1.7.2+ds1-3
fixed
sid
1.7.2+ds1-3
fixed
trixie
1.7.2+ds1-2
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
golang-github-gorilla-csrf
focal
Fixed 1.6.2-2ubuntu0.20.04.1~esm1
released
jammy
Fixed 1.6.2-2+deb11u1build0.22.04.1
released
noble
Fixed 1.7.2-1ubuntu0.24.04.1
released
oracular
ignored
plucky
ignored
questing
ignored
resolute
needs-triage
stonking
not-affected