Cross-site scripting in RSC redirects
Summary
React Router’s unstable React Server Components support contains a cross-site scripting vulnerability when rendering redirects containing untrusted input, potentially allowing JavaScript execution in the application’s origin.
Affected Modes: RSC Data (unstable) and RSC Framework (unstable)....
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmreact-router |
>=8.0.0, <8.4.0→ 8.4.0 |
8.4.0 |
| npmreact-router |
>=7.11.0, <7.18.4→ 7.18.4 |
7.18.4 |
Original description The description as published by the source.
React Router’s unstable React Server Components support contains a cross-site scripting vulnerability when rendering redirects containing untrusted input, potentially allowing JavaScript execution in the application’s origin.
Affected Modes: RSC Data (unstable) and RSC Framework (unstable).
Exploitation requires an application to use attacker-controlled input as a redirect destination during server-side HTML rendering.
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY remix-run/react-router