react-router-dom vulnerabilities

Declarative routing for React web applications

Registry
npm
Latest
7.18.4
License
MIT

1 known advisory

The latest version, 7.18.4, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install react-router-dom@7.18.4

Security advisories for react-router-dom

  • MediumGHSA-jjmj-jmhj-qwj223 Jul 2026

    React Router: Open redirect leading to XSS

    Affected
    >=6.30.2 <6.30.6
    Fixed in
    6.30.6

Which of your client projects still run an old react-router-dom?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.