react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
Upgrading react-router From 7.15.0 to 7.18.2
6 releases in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 6
- advisories fixed
- 3
- new
- 18
- fixes
Security
Fixes 6 advisories affecting 7.15.0
- React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydrationmoderate · GHSA-337j-9hxr-rhxg
- React Router: Potential CSRF via PUT/PATCH/DELETE document requestslow · GHSA-84g9-w2xq-vcv6
- React Router: Unauthenticated Denial of Service via Inefficient Route Matchinghigh · GHSA-chx6-hx7r-mcp5
- React Router: RSCErrorHandler Missing Protocol Validation (XSS)moderate · GHSA-h8fp-f39c-q6mh
- React Router: RSC Mode CSRF Bypass Allows Action Execution Before 400 Responsehigh · GHSA-qwww-vcr4-c8h2
- React Router: Open redirect via backslash in <Link> and useNavigate (CVE-2025-68470 bypass)moderate · GHSA-wrjc-x8rr-h8h6
- 7.18.2
react-router- Harden RSC CSRF codepaths.
Release by release
- Security
react-router- Harden RSC CSRF codepaths.
- Security
- Fixed
react-router-dom- Fix incorrectpackage.jsonmainfield for CommonJS builds
- Fixed
- Fixed
Fix server handler prerender responses when using
ssr: falseandfuture.v8_trailingSlashAwareDataRequests: true. Avoids false positive "SPA Mode" detection when serving prerendered paths - Fixed
Use the
ServerRouternonce for nonce-aware SSR components when they don't provide their own value so strict CSP pages can load them. - Fixed
Use
turbo-streamto serialize and deserialize Framework Mode hydration errors - Fixed
Precompute route branch matchers to avoid recompiling route path regexes during matching
- Fixed
- New
Ship a subset of the official documentation inside the
react-routerpackage
- New
- New
Stabilize
future.unstable_trailingSlashAwareDataRequestsasfuture.v8_trailingSlashAwareDataRequests - Fixed
Disable manifest path when lazy route dicovery is disabled
- Fixed
Fix browser URL creation to use the configured history window instead of the global window.
- Fixed
Fix
useNavigation()return type to preserve discriminated union across navigation states - Fixed
Widen
MetaDescriptorscript:ld+jsontype fromLdJsonObjecttoLdJsonObject | LdJsonObjectto permit multiple JSON-LD schemas in a single<script type="application/ld+json">tag emitted by<Meta />
- New
- New
Add a new
unstable_useRouterState()hook that consolidates access to active and pending router states (RFC: #12358) - Fixed
Update router to operate on fetcher Maps in an immutable manner to avoid delayed React renders from potentially reading an updated but not yet committed Map. This could result in brief flickers in some fetcher-driven optimistic UI scenarios.
- Fixed
Fix
serverLoader()returning stale SSR data when a client navigation aborts pending hydration before the hydrationclientLoaderresolves - Fixed
Fix
RouterProvideronErrorcallback not being called for synchronous initial loader errors in SPA mode - Fixed
Memoize
useFetchersto return a stable identity and only change if fetchers changed - Fixed
Internal refactor to consolidate mutation request detection through shared utility
- 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.