react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
Upgrading react-router From 7.13.1 to 7.13.2
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 2
- advisories fixed
- 2
- new
- 5
- fixes
Security
10 advisories still affect 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
Upgrading to 7.18.2 clears them.
Fixes 2 advisories affecting 7.13.1
- React Router vulnerable to XSS in unstable RSC redirect handling via javascript: redirect targetshigh · GHSA-8646-j5j9-6r62
- React Router has stored XSS via unescaped Location header in prerendered redirect HTMLmoderate · GHSA-f22v-gfqf-p8f3
Release by release
- New
Add
future.unstable_passThroughRequestsflag - New
Add a new
unstable_url: URLparameter to route handler methods (loader,action,middleware, etc.) representing the normalized URL the application is navigating to or fetching, with React Router implementation details removed (.datasuffix,index/_routesquery params) - Fixed
Fix clientLoader.hydrate when an ancestor route is also hydrating a clientLoader
- Fixed
Fix type error when passing Framework Mode route components using
Route.ComponentPropstocreateRoutesStub - Fixed
Fix percent encoding in relative path navigation
- Fixed
Internal refactor to consolidate framework-agnostic/React-specific route type layers - no public API changes
- Fixed
Sync protocol validation to rsc flows
- New
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.