react-router is vulnerable to Cross-Site Request Forgery (CSRF)
59
Medium Risk
React Router Framework Mode compares the Origin header to a host derived from x-forwarded-host or Host when validating action requests. An attacker who can supply a matching forwarded host value alongside a cross-site origin can satisfy the check and submit forged mutations. The patch derives the comparison host from new URL(request.url).host instead of forwarded headers.
You are affected if you are using a version that falls within the vulnerable range and running Framework Mode server actions where untrusted clients can influence forwarded host headers or request URL construction.
react-router is vulnerable to Cross-Site Request Forgery (CSRF) in versions 7.12.0 - 7.17.0.
Upgrade the react-router and/or the react-router-dom library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant