Skip to content
Medium 4.7

Cross-site scripting in RSC redirects

GHSA-mjj8-rxh9-q8f5 First seen on SecPulse

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

PackageAffected → Fixed
npmreact-router
>=8.0.0, <8.4.0→ 8.4.0
npmreact-router
>=7.11.0, <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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details