Packages / react-router / Security
React Router vulnerable to DoS via unbounded path expansion in __manifest endpoint
Affected releases · react-router
- 7.x7.0.0 – 7.14.2Fixed in 7.15.0
On 7.x, the newest line:
npm install react-router@7.15.0Not affected
8.0.0 – 8.5.0
8 releases, latest
Affected
7.0.0 – 7.14.2
43 releases
Fixed
7.15.0 – 7.18.4
9 releases
Is your project affected?
Paste your package.json, or type the range you declare for react-router. It is read in your browser and sent nowhere.
What happens
There exists a potential DOS attack vector in React Router Framework Mode applications (as well as Remix v2.10.0 - 2.17.4). Certain requests can be crafted to consume disproportionate resources on the server, resulting in response time degredation and/or service unavailability for end users.
[!NOTE] This does not impact your React Router application if you are using Declarative Mode (
<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>).