GitHub Advisory Database
GHSA-h8fp-f39c-q6mh
React Router: RSCErrorHandler Missing Protocol Validation (XSS)
Details
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
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | react-router | From 7.11.0 before 7.18.0 (fixed in 7.18.0) |
References
- https://github.com/remix-run/react-router/security/advisories/GHSA-h8fp-f39c-q6mh
- https://github.com/remix-run/react-router/pull/15177
- https://github.com/remix-run/react-router/commit/ce596e823f0d7b883a433af1d5a839a8b9fe0242
- https://github.com/remix-run/react-router
- https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7180
- https://github.com/remix-run/react-router/releases/tag/[email protected]