Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gorilla/csrf
  4. ›
  5. CVE-2025-24358

CVE-2025-24358: gorilla/csrf CSRF vulnerability due to broken Referer validation

April 14, 2025 (updated October 31, 2025)

gorilla/csrf is vulnerable to CSRF via form submission from origins that share a top level domain with the target origin.

References

  • github.com/advisories/GHSA-rq77-p4h8-4crw
  • github.com/gorilla/csrf
  • github.com/gorilla/csrf/commit/9dd6af1f6d30fc79fb0d972394deebdabad6b5eb
  • github.com/gorilla/csrf/security/advisories/GHSA-rq77-p4h8-4crw
  • lists.debian.org/debian-lts-announce/2025/05/msg00002.html
  • nvd.nist.gov/vuln/detail/CVE-2025-24358
  • pkg.go.dev/vuln/GO-2025-3607

Code Behaviors & Features

Detect and mitigate CVE-2025-24358 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.7.3

Fixed versions

  • 1.7.3

Solution

Upgrade to version 1.7.3 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

go/github.com/gorilla/csrf/CVE-2025-24358.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:20 +0000.