CVE-2026-139998

8.7High

Published Nov 30, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

8.7CVSS

High

0CVSS v4.010

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
High impact on availability
Weakness
CWE-400, CWE-1333

What an attacker gets

Remote attackers can trigger a denial of service by sending specially crafted long paths. This causes excessive CPU usage in the browser or on the server during route matching.

Root cause

The regular-expression-based route matching logic is vulnerable to catastrophic backtracking when processing long, malicious input strings.

Affected versions

React Router 6.0.0 through 7.18.2 and 8.0.0 through 8.3.0

CVSS v4.0 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Fix & remediation

Upgrade to React Router version 7.18.3 or 8.3.1. If you cannot update immediately, implement rate limiting or request length validation at your edge proxy or WAF to block unusually long URL paths.

remediation — bash
$ npm install react-router@latest

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

React Router is a router for React. From 6.0.0 until 7.18.3 and 8.3.1, react Router's regular-expression-based route matching can perform excessive work when processing specially crafted long paths. Declarative, Data, Framework, unstable RSC Data, and unstable RSC Framework applications can consume excessive CPU in the browser or server, depending on where matching occurs, causing denial of service. This issue is fixed in versions 7.18.3 and 8.3.1.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-139998

More fully triaged vulnerabilities you may want to check next.