Threat intel4 min read
React Router flaw lets unauthenticated requests stall server-rendered apps
React Router 7.18.5 and 8.5.1 fix CVE-2026-139995, a high-severity flaw that lets unauthenticated requests exhaust server resources in apps that render on the server.
4Tify Team

React Router has fixed a high-severity denial-of-service flaw, CVE-2026-139995, in versions 7.18.5 and 8.5.1. An attacker with no account can send crafted requests that make a vulnerable server burn through its resources. Pages then slow down, time out or stop loading for everyone else.
What happened
The maintainers published advisory GHSA-2rq8-3rm6-2w8f on November 18, 2026, and GitHub added it to its reviewed advisory database on December 1. The issue sits in server-side route discovery. While rendering a page on the server, React Router expands route paths from its route manifest with no firm limit on how much work that takes. A specially crafted request pushes that work far past normal.
The flaw is rated 7.5 on CVSS 3.1. It needs no login, no user interaction and no special conditions on the attacker's side. The impact is on availability only: the advisory does not describe any way to read data, change it or run code. It is classed as uncontrolled resource consumption (CWE-400) and inefficient algorithmic complexity (CWE-407).
CVE-2026-139995 is not in CISA's Known Exploited Vulnerabilities catalog, and we found no reports of attacks using it. NVD has not yet published its own entry.
Who is affected
The react-router npm package, versions 7.0.0 through 7.18.4 and 8.0.0 through 8.5.0.
The version number alone does not settle it. The advisory lists three affected modes:
- Framework Mode, when the app renders on the server and uses lazy route discovery.
- RSC Data mode and RSC Framework mode, both still marked unstable. Here the vulnerable code can also run while the server handles RSC data requests.
Lazy route discovery is the default in Framework Mode, so an SSR app that never touched the routeDiscovery setting is in scope. Apps that use React Router only in the browser, with no server rendering, are not listed as affected.
How it works
With lazy route discovery, the browser does not get the full route list on the first load. It asks the server for route information as the user moves through the app, by default through the /__manifest endpoint. On large apps that keeps the first page light. The flaw is in how the server expands route paths from the manifest when it renders a document. The server does not have to crash for this to hurt. Once it is busy enough, real users wait or get errors.
What to do now
- Find the version that actually runs in production. Check the lockfile or run
npm ls react-routeragainst the deployed build, because the range inpackage.jsoncan hide an older resolved version. - Upgrade to 7.18.5 or later on the 7.x line, or to 8.5.1 or later on 8.x. The advisory gives no workaround.
- Rebuild and redeploy, then confirm the running build carries the fixed version.
- Start with internet-facing apps that render on the server.
The same releases fix a separate high-severity prototype pollution flaw in React Router's data deserialization, CVE-2026-139996 (GHSA-qhgm-jj2j-75wj), rated 7.4. One upgrade covers both.
Flaws like this live in the dependency tree, often a few levels below the code a team writes. Our AI-assisted code review reads lockfiles alongside the source, so an outdated framework version with a known CVE shows up as a finding with the exact version to move to.
