p PatchFirst

PatchFirst · Latest vulnerabilities

golang-github-gorilla-csrf vulnerabilities

Vulnerabilities published for golang-github-gorilla-csrf in the last 30 days: 0. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 2

  1. CVE-2025-47909

    High · CVSS 7.3EPSS 0.23%No fix published

    Improper validation of TrustedOrigins allows CSRF attacks in github.com/gorilla/csrf

    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 att

    Published Updated
  2. CVE-2025-24358

    Medium · CVSS 5.4EPSS 0.41%No fix published

    gorilla/csrf CSRF vulnerability due to broken Referer validation

    gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services. Prior to 1.7.2, gorilla/csrf does not validate the Origin header against an allowlist. Its executes its validation of the Referer header for cross-origin requests only when it believes the request is being served over TLS. It determines this by inspecting the r.URL.Scheme value. However, this value is never populated for "server" requests per the Go spec, and so this check does not run in practice. This vulnerability allows an attacker who has gained XSS on a subdomain or top level domain to perform authenticated form submissions

    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →