CVE catalog

CVE-2025-47909

golang-github-gorilla-csrf: CVE-2025-47909

[CVE catalog]

Severity
High · CVSS 7.3CVSS: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.

DistributionPackageReleaseVersionStatus
Debiangolang-github-gorilla-csrfsid1.7.2+ds1-3vulnerable
Debiangolang-github-gorilla-csrfforky1.7.2+ds1-3vulnerable
Debiangolang-github-gorilla-csrftrixie1.7.2+ds1-2vulnerable
Debiangolang-github-gorilla-csrfbookworm1.7.1-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-github-gorilla-csrfsourcesid(unfixed)not yet assignedNot reported[1118966]
Debiangolang-github-gorilla-csrfsourceforky(unfixed)not yet assignedNot reported[1118966]
Debiangolang-github-gorilla-csrfsourcetrixie(unfixed)not yet assignedNot reported[1118966]
Debiangolang-github-gorilla-csrfsourcebookworm(unfixed)not yet assignedNot reported[1118966]

[Debian bug #1118966]

Notes

[trixie] golang-github-gorilla-csrf: Minor issue [bookworm] golang-github-gorilla-csrf: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [golang-github-gorilla-csrf]

    Details (4)
    • 1.7.1-1 · all · bookworm

      Affected

      dsa · golang-github-gorilla-csrf · debian · bookworm; dsa · golang-github-gorilla-csrf · debian · 12

    • 1.7.1-1 · all · bookworm

      Affected

      dsa · golang-github-gorilla-csrf · debian · bookworm; dsa · golang-github-gorilla-csrf · debian · 12

    • 1.7.2-1~bpo12+1 · all · bookworm-backports

      Affected

      dsa · golang-github-gorilla-csrf · debian · bookworm; dsa · golang-github-gorilla-csrf · debian · 12

    • 1.7.2-1~bpo12+1 · all · bookworm-backports

      Affected

      dsa · golang-github-gorilla-csrf · debian · bookworm; dsa · golang-github-gorilla-csrf · debian · 12

[Debian 13 (Trixie)]

Observed:

References