github.com/gorilla/csrf
Activity
- Latest release
- 1y ago
- Total releases
- 10
- Cadence
- ~1.1 years
- Last 12 months
- 0
Reach
- Stars
- —
Details
- First release
- Aug 05, 2015
| Version | Released | |
|---|---|---|
v1.7.3
patch
1 CVE
CVE-2025-47909
GHSA-82ff-hg59-8x73
GO-2025-3884
Aug 29, 2025
github.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks
Medium
Adjacent
Low
None
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. References Updated Sep 10, 2026 · Source: OSV.dev |
v1.7.3
patch
Dependencies (1)
|
|
v1.7.2
patch
2 CVEs
CVE-2025-47909
GHSA-82ff-hg59-8x73
GO-2025-3884
Aug 29, 2025
github.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks
Medium
Adjacent
Low
None
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. References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-24358
GO-2025-3607
GHSA-rq77-p4h8-4crw
Apr 22, 2025
gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf Fixed in
1.7.3
References Updated Feb 04, 2026 · Source: OSV.dev |
v1.7.2
patch
Dependencies (1)
|
|
v1.7.1
patch
2 CVEs
CVE-2025-47909
GHSA-82ff-hg59-8x73
GO-2025-3884
Aug 29, 2025
github.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks
Medium
Adjacent
Low
None
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. References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-24358
GO-2025-3607
GHSA-rq77-p4h8-4crw
Apr 22, 2025
gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf Fixed in
1.7.3
References Updated Feb 04, 2026 · Source: OSV.dev |
v1.7.1
patch
Dependencies (2)
|
|
v1.7.0
minor
2 CVEs
CVE-2025-47909
GHSA-82ff-hg59-8x73
GO-2025-3884
Aug 29, 2025
github.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks
Medium
Adjacent
Low
None
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. References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-24358
GO-2025-3607
GHSA-rq77-p4h8-4crw
Apr 22, 2025
gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf Fixed in
1.7.3
References Updated Feb 04, 2026 · Source: OSV.dev |
v1.7.0
minor
Dependencies (2)
|
|
v1.6.2
patch
2 CVEs
CVE-2025-47909
GHSA-82ff-hg59-8x73
GO-2025-3884
Aug 29, 2025
github.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks
Medium
Adjacent
Low
None
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. References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-24358
GO-2025-3607
GHSA-rq77-p4h8-4crw
Apr 22, 2025
gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf Fixed in
1.7.3
References Updated Feb 04, 2026 · Source: OSV.dev |
v1.6.2
patch
Dependencies (2)
|
|
v1.6.1
patch
2 CVEs
CVE-2025-47909
GHSA-82ff-hg59-8x73
GO-2025-3884
Aug 29, 2025
github.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks
Medium
Adjacent
Low
None
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. References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-24358
GO-2025-3607
GHSA-rq77-p4h8-4crw
Apr 22, 2025
gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf Fixed in
1.7.3
References Updated Feb 04, 2026 · Source: OSV.dev |
v1.6.1
patch
Dependencies (2)
|
|
v1.6.0
minor
2 CVEs
CVE-2025-47909
GHSA-82ff-hg59-8x73
GO-2025-3884
Aug 29, 2025
github.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks
Medium
Adjacent
Low
None
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. References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-24358
GO-2025-3607
GHSA-rq77-p4h8-4crw
Apr 22, 2025
gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf Fixed in
1.7.3
References Updated Feb 04, 2026 · Source: OSV.dev |
v1.6.0
minor
Dependencies (2)
|
|
v1.5.1
minor
2 CVEs
CVE-2025-47909
GHSA-82ff-hg59-8x73
GO-2025-3884
Aug 29, 2025
github.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks
Medium
Adjacent
Low
None
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. References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-24358
GO-2025-3607
GHSA-rq77-p4h8-4crw
Apr 22, 2025
gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf Fixed in
1.7.3
References Updated Feb 04, 2026 · Source: OSV.dev |
v1.5.1
minor
Dependencies (3)
|
|
v1.0.2
patch
2 CVEs
CVE-2025-47909
GHSA-82ff-hg59-8x73
GO-2025-3884
Aug 29, 2025
github.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks
Medium
Adjacent
Low
None
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. References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-24358
GO-2025-3607
GHSA-rq77-p4h8-4crw
Apr 22, 2025
gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf Fixed in
1.7.3
References Updated Feb 04, 2026 · Source: OSV.dev |
v1.0.2
patch
|
|
v1.0.1
initial
2 CVEs
CVE-2025-47909
GHSA-82ff-hg59-8x73
GO-2025-3884
Aug 29, 2025
github.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks
Medium
Adjacent
Low
None
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. References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-24358
GO-2025-3607
GHSA-rq77-p4h8-4crw
Apr 22, 2025
gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf gorilla/csrf CSRF vulnerability due to broken Referer validation in github.com/gorilla/csrf Fixed in
1.7.3
References Updated Feb 04, 2026 · Source: OSV.dev |
v1.0.1
initial
|