PoC Monitor
← All CVEs
CVE-2025-47909published 29 Aug 2025 15:55 UTCData: JSON · API

github.com/gorilla/csrf

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 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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.3high · scored by CISA ADP · CWE-346
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

github.com/gorilla/csrf github.com/gorilla/csrf

    Fixed in 0

    Mitigation

    Upgrade github.com/gorilla/csrf to 0 or later.

    Timeline

    Days relative to CVE publication
    -2t=0+2+4+6+8CVE published29 Aug 2025 · t = 0

    No public PoC found yet; not in CISA KEV.

    PoC repositories

    Found on GitHub.

    No PoC repositories found yet.