CVE-2025-24358: gorilla/csrf CSRF vulnerability due to broken Referer validation
(updated )
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 →