react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
Upgrading react-router From 7.13.2 to 7.18.6
14 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking7.15.0
- Breaking7.15.0
- Breaking7.14.0
Security
Fixes 10 advisories affecting 7.13.2
- React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretationmoderate · GHSA-2j2x-hqr9-3h42
- React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydrationmoderate · GHSA-337j-9hxr-rhxg
- React Router's vendored turbo-stream v2 allows arbitrary constructor invocation via TYPE_ERROR deserialization leading to Unauth RCEhigh · GHSA-49rj-9fvp-4h2h
- React Router: Potential CSRF via PUT/PATCH/DELETE document requestslow · GHSA-84g9-w2xq-vcv6
- React Router vulnerable to DoS via unbounded path expansion in __manifest endpointhigh · GHSA-8x6r-g9mw-2r78
- React Router: Unauthenticated Denial of Service via Inefficient Route Matchinghigh · GHSA-chx6-hx7r-mcp5
- React Router: RSCErrorHandler Missing Protocol Validation (XSS)moderate · GHSA-h8fp-f39c-q6mh
- React Router: RSC Mode CSRF Bypass Allows Action Execution Before 400 Responsehigh · GHSA-qwww-vcr4-c8h2
- React Router vulnerable to Denial of Service via reflected user input in single-fetchhigh · GHSA-rxv8-25v2-qmq8
- React Router: Open redirect via backslash in <Link> and useNavigate (CVE-2025-68470 bypass)moderate · GHSA-wrjc-x8rr-h8h6
- 7.18.2
react-router- Harden RSC CSRF codepaths.
Release by release
- Fixed
react-router- Fix hydration of streamedSuspenseboundaries in development withfuture.v8_viteEnvironmentApi - Fixed
react-router- HandleHEADresponse bodies consistently in Framework, RSC Framework, and RSC Data modes, preserving response metadata and deferred data handling - Fixed
react-router- Improve path generation and URL validation acrosshref(),generatePath(), links, forms, fetchers, and redirects - Fixed
react-router- Preserve route parameters ending in.datain Single Fetch loader and action requests whenfuture.v8_passThroughRequestsis disabled
- Fixed
- Fixed
react-router- Bound route manifest processing during server rendering and RSC document/data requests by falling back to initial route discovery for paths with expensive ancestor expansion, accounting for the number and depth of candidate branches when using regex matching - Fixed
react-router- Improve turbo-stream decoding validation and object property handling
- Fixed
- Fixed
react-router- Correctly escape streamed RSC redirect locations in meta tag attributes - Fixed
react-router- Avoid unintendeddocument.startViewTransitioncalls during initial hydration androuter.revalidate()calls
- Fixed
- Fixed
react-router- Improve route matching performance for long paths - Fixed
react-router- Improve validation of action request origins - Fixed
react-router- Add additional URL validation on client side navigations/redirects - Fixed
@react-router/node- fix: Prevent client disconnects during streaming from crashing the Node process
- Fixed
- Security
react-router- Harden RSC CSRF codepaths.
- Security
- Fixed
react-router-dom- Fix incorrectpackage.jsonmainfield for CommonJS builds
- Fixed
- Fixed
Fix server handler prerender responses when using
ssr: falseandfuture.v8_trailingSlashAwareDataRequests: true. Avoids false positive "SPA Mode" detection when serving prerendered paths - Fixed
Use the
ServerRouternonce for nonce-aware SSR components when they don't provide their own value so strict CSP pages can load them. - Fixed
Use
turbo-streamto serialize and deserialize Framework Mode hydration errors - Fixed
Precompute route branch matchers to avoid recompiling route path regexes during matching
- Fixed
- New
Ship a subset of the official documentation inside the
react-routerpackage
- New
1 internal line (docs, tests, tooling) left out.
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.