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 May 1, 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. Learn more about Dependency Scanning →

Affected versions

All versions before 1.7.3

Fixed versions

  • 1.7.3

Solution

Upgrade to version 1.7.3 or above.

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 Wed, 14 May 2025 12:16:08 +0000.