react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
Upgrading react-router From 7.9.5 to 7.9.6
1 release in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking7.9.6
Security
13 advisories still affect 7.9.6
- React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretationmoderate · GHSA-2j2x-hqr9-3h42
- React Router vulnerable to XSS via Open Redirectshigh · GHSA-2w69-qvjg-hvjx
- React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydrationmoderate · GHSA-337j-9hxr-rhxg
Upgrading to 7.18.0 clears them.
Fixes 1 advisory affecting 7.9.5
- React Router has unexpected external redirect via untrusted pathsmoderate · GHSA-9jcx-v3wj-wh4m
Release by release
- Breaking
⚠️ This is a breaking change if you've already adopted
unstable_onError. - Fixed
[UNSTABLE] Add
location/paramsas arguments to client-sideunstable_onErrorto permit enhanced error reporting. - Fixed
Properly handle ancestor thrown middleware errors before
next()on fetcher submissions - Fixed
Fix issue with splat routes interfering with multiple calls to patchRoutesOnNavigation
- Fixed
Normalize double-slashes in
resolvePath
- Breaking
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.