react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
7.18.6 is the newest release of 7.x.
In short
1 new15 fixed1 internal
Security
13 advisories affect 7.6.0; 7.18.0 fixes them
- HighReact Router: Unauthenticated Denial of Service via Inefficient Route MatchingGHSA-chx6-hx7r-mcp5 · 24 Jul 2026Fixed in 7.18.0
- HighReact Router vulnerable to Denial of Service via reflected user input in single-fetchGHSA-rxv8-25v2-qmq8 · 4 Jun 2026Fixed in 7.14.0
- HighReact Router vulnerable to DoS via unbounded path expansion in __manifest endpointGHSA-8x6r-g9mw-2r78 · 3 Jun 2026Fixed in 7.15.0
- HighReact Router's vendored turbo-stream v2 allows arbitrary constructor invocation via TYPE_ERROR deserialization leading to Unauth RCEGHSA-49rj-9fvp-4h2h · 3 Jun 2026Fixed in 7.14.2
- HighReact Router vulnerable to XSS via Open RedirectsGHSA-2w69-qvjg-hvjx · 8 Jan 2026Fixed in 7.12.0
8 more
- HighReact Router SSR XSS in ScrollRestorationGHSA-8v8x-cx79-35w7 · 8 Jan 2026Fixed in 7.12.0
- HighReact Router has XSS VulnerabilityGHSA-3cgp-3xvw-98x8 · 8 Jan 2026Fixed in 7.9.0
- ModerateReact Router: Open redirect via backslash in <Link> and useNavigate (CVE-2025-68470 bypass)GHSA-wrjc-x8rr-h8h6 · 23 Jul 2026Fixed in 7.18.0
- ModerateReact Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR HydrationGHSA-337j-9hxr-rhxg · 23 Jul 2026Fixed in 7.18.0
- ModerateReact Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretationGHSA-2j2x-hqr9-3h42 · 3 Jun 2026Fixed in 7.14.1
- ModerateReact Router has stored XSS via unescaped Location header in prerendered redirect HTMLGHSA-f22v-gfqf-p8f3 · 3 Jun 2026Fixed in 7.13.2
- ModerateReact Router has CSRF issue in Action/Server Action Request ProcessingGHSA-h5cw-625j-3rxh · 8 Jan 2026Fixed in 7.12.0
- ModerateReact Router has unexpected external redirect via untrusted pathsGHSA-9jcx-v3wj-wh4m · 8 Jan 2026Fixed in 7.9.6
Release note
The section about react-router of a note shared by several packages.
Minor Changes
Added a new
react-router.config.tsrouteDiscoveryoption to configure Lazy Route Discovery behavior.By default, Lazy Route Discovery is enabled and makes manifest requests to the
/__manifestpath:routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" }
You can modify the manifest path used:
routeDiscovery: { mode: "lazy", manifestPath: "/custom-manifest" }
Or you can disable this feature entirely and include all routes in the manifest on initial document load:
routeDiscovery: { mode: "initial" }
Patch Changes
Fix
react-routermodule augmentation forNodeNextDon't bundle
react-routerinreact-router/domCJS exportFix bug where a submitting
fetcherwould get stuck in aloadingstate if a revalidatingloaderredirectedFix hydration error if a server
loaderreturnedundefinedFix initial load 404 scenarios in data mode
Stabilize
useRevalidator'srevalidatefunctionPreserve status code if a
clientActionthrows adata()result in framework modeBe defensive against leading double slashes in paths to avoid
Invalid URLerrors from the URL constructorNote we do not sanitize/normalize these paths - we only detect them so we can avoid the error that would be thrown by
new URL("//", window.location.origin)
Remove
Navigatordeclaration fornavigator.connection.saveDatato avoid messing with any other types beyondsaveDatain userlandFix
handleErrorparamsvalues on.datarequests for routes with a dynamic param as the last URL segmentDon't trigger an
ErrorBoundaryUI before the reload when we detect a manifest verison mismatch in Lazy Route DiscoveryInline
turbo-stream@2.4.1dependency and fix decoding ordering of Map/Set instancesOnly render dev warnings in DEV mode
UNSTABLE: Fix a few bugs with error bubbling in middleware use-cases
Short circuit post-processing on aborted
dataStrategyrequestsThis resolves non-user-facing console errors of the form
Cannot read properties of undefined (reading 'result')
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.