{"answers":{"affected":"3 open source packages ship an affected version, including github.com/gorilla/csrf.","exploited":"There is no known exploitation of CVE-2025-47909 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2025-47909 is a high-severity vulnerability in github.com/gorilla/csrf, published on 29 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-47909 and fix it if it is affected.\n\nWhat it is: CVE-2025-47909 is a high-severity vulnerability in github.com/gorilla/csrf, published on 29 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-47909 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/gorilla/csrf (Go): affected all versions up to 1.7.3; no fix listed\n- github.com/gorilla/csrf (Go): affected all versions up to 1.7.3; no fix listed\n- github.com/gorilla/csrf (Go): affected from 1.7.3; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-47909/ (Markdown: https://insights.sbomify.com/CVE-2025-47909/index.md)","id":"CVE-2025-47909","markdown":"https://insights.sbomify.com/CVE-2025-47909/index.md","name":"CVE-2025-47909","record":{"aliases":["DEBIAN-CVE-2025-47909","ECHO-03c6-4c08-d89d","GHSA-82ff-hg59-8x73","GO-2025-3884","MINI-2xw7-mgw7-xv73","MINI-62r2-xxh4-hxvp","MINI-766h-829w-jqvg","MINI-8h6x-mv5w-823x","MINI-9x2w-qjgq-7472","MINI-cgrq-f9m4-h349","MINI-h9px-hqgf-wf26","MINI-j9g6-wr5v-55gf","MINI-m48j-xw9q-3c76","UBUNTU-CVE-2025-47909"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Go CSRF library","requires_auth":"none","summary":"Network attackers can bypass CSRF protections via TrustedOrigins misconfiguration, allowing cross-site request forgery attacks against Go applications.","user_interaction":"not_required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[],"cvss":{"score":7.3,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Improper validation of TrustedOrigins allows CSRF attacks in github.com/gorilla/csrf","id":"CVE-2025-47909","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"csrf","year":"2025"},"n_packages":3,"n_references":2,"next":{"headline":"CrossOriginProtection insecure bypass patterns not limited to exact matches in net/http","id":"CVE-2025-47910"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.7.3"],"package":"github.com/gorilla/csrf","purl":null,"source":"GHSA-82ff-hg59-8x73"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.7.3"],"package":"github.com/gorilla/csrf","purl":"pkg:golang/github.com/gorilla/csrf","source":"GHSA-82ff-hg59-8x73"},{"ecosystem":"Go","fixed":[],"introduced":["1.7.3"],"last_affected":[],"package":"github.com/gorilla/csrf","purl":"pkg:golang/github.com/gorilla/csrf","source":"GO-2025-3884"}],"prev":{"headline":"Denial of service via malicious preflight requests in github.com/rs/cors","id":"CVE-2025-47908"},"products":["github.com/gorilla/csrf"],"published":"2025-08-29","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-08-29","vendors":["github.com/gorilla/csrf"]},"summary":"Network attackers can bypass CSRF protections via TrustedOrigins misconfiguration, allowing cross-site request forgery attacks against Go applications.","url":"https://insights.sbomify.com/CVE-2025-47909/"}