react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
Upgrading react-router From 7.11.0 to 7.12.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 3
- advisories fixed
- 0
- new
- 7
- fixes
Security
13 advisories still affect 7.12.0
- 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 3 advisories affecting 7.11.0
- React Router vulnerable to XSS via Open Redirectshigh · GHSA-2w69-qvjg-hvjx
- React Router SSR XSS in ScrollRestorationhigh · GHSA-8v8x-cx79-35w7
- React Router has CSRF issue in Action/Server Action Request Processingmoderate · GHSA-h5cw-625j-3rxh
- 7.12.0
Add additional layer of CSRF protection by rejecting submissions to UI routes from external origins. If you need to permit access to specific external origins, you can specify them in the
react-router.config.tsconfigallowedActionOriginsfield.
Release by release
- Security
Add additional layer of CSRF protection by rejecting submissions to UI routes from external origins. If you need to permit access to specific external origins, you can specify them in the
react-router.config.tsconfigallowedActionOriginsfield. - Fixed
Fix
generatePathwhen used with suffixed params (i.e., "/books/:id.json") - Fixed
Export
UNSAFE_createMemoryHistoryandUNSAFE_createHashHistoryalongsideUNSAFE_createBrowserHistoryfor consistency. These are not intended to be used for new apps but intended to help apps usiongunstable_HistoryRoutermigrate from v6->v7 so they can adopt the newer APIs. - Fixed
Escape HTML in scroll restoration keys
- Security
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.