high

CVE-2026-139998

npm · react-router

Summary

React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling

Severity
high
EPSS
0.7% (p56)
CWE
CWE-400, CWE-1333
Also known as
GHSA-x8j4-g9rr-8j87
Published
2026-12-01
Updated
2026-12-01

Advisory details

A vulnerability in React Router’s route matching may cause excessive CPU consumption when processing specially crafted paths, potentially resulting in denial of service.

Affected Modes: Declarative, Data, Framework, RSC Data (unstable), and RSC Framework (unstable).

Impact may occur in the browser or on the server, depending on where route matching runs.

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.