Packages

react-router

8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed

Your version

7.18.0

16 Jun 2026Where it was published

7.18.6 is the newest release of 7.x.

In short

8 fixed

Security

Fixes 4 advisories that affected 7.17.0

1 advisory affects 7.18.0; 7.18.2 fixes them

Release note

The section about react-router of a note shared by several packages.

Patch Changes

  • Fix server handler prerender responses when using ssr: false and future.v8_trailingSlashAwareDataRequests: true. Avoids false positive "SPA Mode" detection when serving prerendered paths

  • Use the ServerRouter nonce for nonce-aware SSR components when they don't provide their own value so strict CSP pages can load them.

  • Use turbo-stream to serialize and deserialize Framework Mode hydration errors

  • Precompute route branch matchers to avoid recompiling route path regexes during matching

  • Use the constructed request URL host when validating action request origins.

  • Remove the un-documented custom error serialization logic from Data Mode SSR built-in hydration flows

  • Validate protocols in RSC render redirects

  • Consolidate url normalization logic and better handle mixed slashes

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.