react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
Upgrading react-router From 7.7.1 to 7.8.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 4
- changes to make
- 0
- advisories fixed
- 2
- new
- 18
- fixes
Before you upgrade
Tick each one off as you go- Breaking7.8.0
- Breaking7.8.0
- Breaking7.8.0
- Deprecated7.8.0
Security
14 advisories still affect 7.8.0
- 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.
Release by release
- Breaking
⚠️ This is a breaking change if you've adopted the
staticHandlerunstable_respondAPI - Breaking
⚠️ This is a breaking change if you have adopted middleware and are using a custom server with a
getLoadContextfunction - Breaking
⚠️ This is a breaking change if you have adopted the
unstable_getContextprop - Deprecated
@deprecatedwarnings have been added to the existingdataproperties to point users to newloaderDataproperties, in preparation for removing thedataproperties in a future major release
- 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.