MEDIUM6.9
GHSA-h8fp-f39c-q6mh
React Router: RSCErrorHandler Missing Protocol Validation (XSS)
Quick fix
GHSA-h8fp-f39c-q6mh — react-router: upgrade to the fixed version with the command below.
npm install react-router@7.18.0Details
This is a follow up to https://github.com/remix-run/react-router/security/advisories/GHSA-8646-j5j9-6r62. React Router was alerted of a code path in the (unstable) RSC error handling path in which redirects from untrusted sources could still result in an XSS vector via attacker-supplied redirect targets
> [!NOTE] > This only affects your application if you are using the unstable RSC APIs
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/remix-run/react-router/security/advisories/GHSA-h8fp-f39c-q6mh[WEB]
- https://github.com/remix-run/react-router/pull/15177[WEB]
- https://github.com/remix-run/react-router/commit/ce596e823f0d7b883a433af1d5a839a8b9fe0242[WEB]
- https://github.com/remix-run/react-router[PACKAGE]
- https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7180[WEB]
- https://github.com/remix-run/react-router/releases/tag/react-router@7.18.0[WEB]