VDB
KO
MEDIUM 6.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.0

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

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / react-router
Introduced in: 7.11.0 Fixed in: 7.18.0
Fix npm install react-router@7.18.0

References