Cross-site scripting in React Router - #VU168403
Published: November 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute JavaScript in a victim’s browser under the application’s origin.
The vulnerability exists due to improper neutralization of untrusted redirect destinations in React Router’s unstable React Server Components support when rendering redirects into server-side HTML. A remote attacker can supply input that the application uses as a redirect destination and lure a victim into loading the resulting page to execute JavaScript under the application’s origin.