CVE-2025-47909
Last modified
CVE-2025-47909 is a high-severity vulnerability rated 7.3/10 on the CVSS scale. 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. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-47909?
How severe is CVE-2025-47909?
How do I fix CVE-2025-47909?
How Strix Helps
- Same Subject, Wrong User: A Cross-Issuer Account Takeover in n8nStrix found an identity-binding bug in n8n's token-exchange flow enabling account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-47902Improper Neutralization of Special Elements used in an SQL C…8.8
- CVE-2025-47904Download of Code Without Integrity Check vulnerability in Mi…4.1
- CVE-2025-47905Varnish Cache before 7.6.3 and 7.7 before 7.7.1, and Varnish…5.4
- CVE-2025-47906If the PATH environment variable contains paths which are ex…6.5
- CVE-2025-47907Cancelling a query (e.g. by cancelling the context passed to…7
- CVE-2025-47908Middleware causes a prohibitive amount of heap allocations w…7.5
- CVE-2025-4791A vulnerability has been found in FreeFloat FTP Server 1.0 a…9.8
- CVE-2025-47910When using http.CrossOriginProtection, the AddInsecureBypass…5.4
- CVE-2025-47911The html.Parse function in golang.org/x/net/html has quadrat…5.3
- CVE-2025-47912The Parse function permits values other than IPv6 addresses …5.3
- CVE-2025-47913SSH clients receiving SSH_AGENT_SUCCESS when expecting a typ…7.5
- CVE-2025-47914SSH Agent servers do not validate the size of messages when …5.3
Are you affected by CVE-2025-47909?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
