react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
Upgrading react-router From 7.3.0 to 7.4.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 0
- new
- 5
- fixes
Before you upgrade
Tick each one off as you go- Breaking7.4.0
Security
14 advisories still affect 7.4.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
UNSTABLE(BREAKING): If a middleware throws an error, ensure we only bubble the error itself via
next()and are no longer leaking theMiddlewareErrorimplementation detail - Fixed
Fix root loader data on initial load redirects in SPA mode
- Fixed
Load ancestor pathless/index routes in lazy route discovery for upwards non-eager-discoery routing
- Fixed
Fix
shouldRevalidatebehavior forclientLoader-only routes inssr:trueapps - Fixed
UNSTABLE: Fix
RequestHandlerloadContextparameter type when middleware is enabled - Fixed
UNSTABLE: Update
Route.unstable_MiddlewareFunctionto have a return value ofResponse | undefinedinstead ofResponse | voidbecaue you should not return anything if you aren't returning theResponse
- 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.