VDB
KO
MEDIUM 6.9

GHSA-jjmj-jmhj-qwj2

React Router: Open redirect leading to XSS

Quick fix

GHSA-jjmj-jmhj-qwj2 — react-router: upgrade to the fixed version with the command below.

npm install react-router@7.13.0

Details

Applications with open redirects could permit attacker crafted links to result in redirects to unexpected external location or XSS vectors.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / react-router-dom
Introduced in: 6.30.2

No fixed version published yet for react-router-dom (npm). Pin to a known-safe version or switch to an alternative.

npm / react-router
Introduced in: 7.9.6 Fixed in: 7.13.0
Fix npm install react-router@7.13.0

References