react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
6.30.6 is the newest release of 6.x.
In short
1 new1 fixed5 changed2 internal
Security
3 advisories affect 6.4.4; 7.18.0 fixes them
- ModerateReact Router: Open redirect via backslash in <Link> and useNavigate (CVE-2025-68470 bypass)GHSA-wrjc-x8rr-h8h6 · 23 Jul 2026Fixed in 7.18.0
- ModerateReact Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR HydrationGHSA-337j-9hxr-rhxg · 23 Jul 2026Fixed in 7.18.0
- ModerateReact Router has unexpected external redirect via untrusted pathsGHSA-9jcx-v3wj-wh4m · 8 Jan 2026Fixed in 6.30.2
Release note
What's Changed
Throw an error if an
action/loaderfunction returnsundefinedas revalidations need to know whether the loader has previously been executed.undefinedalso causes issues during SSR stringification for hydration. You should always ensure yourloader/actionreturns a value, and you may returnnullif you don't wish to return anything.Properly handle redirects to external domains (#9590, #9654)
Preserve the HTTP method on 307/308 redirects
Support
basenamein static data routersEnhanced
ErrorResponsebodies to contain more descriptive text in internal 403/404/405 scenariosFix issues with encoded characters in
NavLinkand descendant<Routes>(#9589, #9647)Properly serialize/deserialize
ErrorResponseinstances when using built-in hydrationSupport
basenamein static data routers
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.