Cross-site Request Forgery (CSRF) Affecting github.com/gorilla/csrf package, versions <1.7.3


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.03% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGORILLACSRF-9749606
  • published18 Apr 2025
  • disclosed14 Apr 2025
  • creditPatrick O'Doherty

Introduced: 14 Apr 2025

NewCVE-2025-24358  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade github.com/gorilla/csrf to version 1.7.3 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) due to a lack of checks for Referer origin headers. By inspecting the r.URL.Scheme value, a user who can inject scripts can perform authenticated form submissions that bypass intended origin checks. The source of the requests must be a domain that shares a top-level domain with the target.

References

CVSS Base Scores

version 4.0
version 3.1