React Router Vulnerability Allows Unauthenticated Denial-of-Service Attacks
A critical flaw in React Router, CVE-2026-139995, enables unauthenticated attackers to crash web applications by exploiting server-side rendering with lazy route discovery.

A high-severity vulnerability, identified as CVE-2026-139995, has been discovered in the widely-used React Router library, potentially allowing unauthenticated remote attackers to cause denial-of-service (DoS) conditions in web applications. The flaw specifically impacts applications configured with server-side rendering (SSR) and lazy route discovery, as well as experimental React Server Components (RSC) modes. Maintainers have released patches in versions 7.18.5 and 8.5.1 to address the issue.
The vulnerability stems from an improper handling of route path expansion during the server-side rendering process when lazy route discovery is enabled. In such configurations, a specially crafted network request can trigger excessive resource consumption on the server. This overconsumption can lead to web applications becoming unresponsive, experiencing slow load times, or outright crashing, thereby disrupting service availability for legitimate users. The advisory explicitly states that this vulnerability does not pose a risk of data theft, record alteration, or remote code execution.
React Router utilizes a route manifest to manage application routes. Lazy route discovery allows applications to load route information on demand rather than transmitting the entire manifest upfront. The exploit targets the expansion mechanism within this process, where a lack of strict limits on the expansion can be abused to exhaust server resources. This differs from previous vulnerabilities in React Router that involved cache poisoning, where a compromised cache could serve malicious responses.
The affected versions of React Router include 7.0.0 through 7.18.4 and 8.0.0 through 8.5.0. However, the presence of these versions alone does not guarantee an application is vulnerable. The critical combination requires the use of Framework Mode with both server-side rendering and lazy route discovery. Browser-only deployments are not considered affected by this specific flaw. Additionally, experimental React Server Components (RSC) modes are also susceptible, particularly during data requests where vulnerable processing can occur, rendering standard page-rendering checks insufficient.
This vulnerability is distinct from a previously reported DoS flaw affecting Next.js RSC, which involved different npm packages. Developers are urged to verify the exact React Router version running in their production environments, not just the version declared in their package.json files. Upgrading to React Router 7.18.5 or later (for the 7.x branch) or 8.5.1 or later (for the 8.x branch) is the primary mitigation.
Following the upgrade, applications must be rebuilt and redeployed to ensure the patched version is active. For organizations managing numerous deployments, prioritizing internet-facing applications that utilize the affected SSR and lazy route discovery configurations is recommended. The GitHub advisory database has assigned this vulnerability a severity score of 7.5 out of 10, underscoring its potential impact on service availability.
The React Router project published its advisory on November 18, 2026, and GitHub added the flaw to its reviewed advisory database on December 1, 2026. This disclosure highlights the ongoing challenges in securing complex JavaScript frameworks, particularly when server-side rendering and dynamic loading features are employed.