GHSA-h8fp-f39c-q6mh
React Router: RSCErrorHandler Missing Protocol Validation (XSS)
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | react-router | >= 7.11.0, < 7.18.0 | 7.18.0 |
Details
As written in the advisory (Markdown source, shown as plain text).
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
References
External links from the advisory. They lead to third-party sites.
- 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]