Input validation error in React Router - CVE-2026-40181
Published: June 19, 2026
React Router
Detailed vulnerability description
The vulnerability allows a remote attacker to redirect users to an external domain.
The vulnerability exists due to improper input validation in the redirect function when processing URLs with a path starting with // that is reinterpreted as a protocol-relative URL. A remote attacker can supply a crafted URL to redirect users to an external domain.
This does not affect applications using declarative mode.