Packages

react-router

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

Upgrading react-router From 7.14.0 to 7.18.6

13 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 7.14.0Clears its 9 advisories7.18.2Latest8.5.1
  1. 7.14.0yours
  2. 2 releases
  3. 7.15.0breaking
  4. 5 releases
  5. 7.18.2security
  6. 3 releases
  7. 7.18.6target

Before you upgrade

Tick each one off as you go
  • Breaking7.15.0
  • Breaking7.15.0

Security

Release by release

  1. 7.18.6

    18 Nov 20269 fixes
    • Fixed

      react-router - Fix hydration of streamed Suspense boundaries in development with future.v8_viteEnvironmentApi

    • Fixed

      react-router - Handle HEAD response bodies consistently in Framework, RSC Framework, and RSC Data modes, preserving response metadata and deferred data handling

    • Fixed

      react-router - Improve path generation and URL validation across href(), generatePath(), links, forms, fetchers, and redirects

    • Fixed

      react-router - Preserve route parameters ending in .data in Single Fetch loader and action requests when future.v8_passThroughRequests is disabled

  2. 7.18.5

    27 Oct 20262 fixes
    • Fixed

      react-router - Bound route manifest processing during server rendering and RSC document/data requests by falling back to initial route discovery for paths with expensive ancestor expansion, accounting for the number and depth of candidate branches when using regex matching

    • Fixed

      react-router - Improve turbo-stream decoding validation and object property handling

  3. 7.18.4

    15 Sep 20262 fixes
    • Fixed

      react-router - Correctly escape streamed RSC redirect locations in meta tag attributes

    • Fixed

      react-router - Avoid unintended document.startViewTransition calls during initial hydration and router.revalidate() calls

  4. 7.18.3

    28 Aug 20264 fixes
    • Fixed

      react-router - Improve route matching performance for long paths

    • Fixed

      react-router - Improve validation of action request origins

    • Fixed

      react-router - Add additional URL validation on client side navigations/redirects

    • Fixed

      @react-router/node - fix: Prevent client disconnects during streaming from crashing the Node process

  5. 7.18.2

    Security fix28 Jul 2026
    • Security

      react-router - Harden RSC CSRF codepaths.

  6. 7.18.1

    29 Jun 20261 fix
    • Fixed

      react-router-dom - Fix incorrect package.json main field for CommonJS builds

  7. 7.18.0

    16 Jun 20268 fixes
    • Fixed

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

    • Fixed

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

    • Fixed

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

    • Fixed

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

  8. 7.17.0

    4 Jun 20261 new
    • New

      Ship a subset of the official documentation inside the react-router package

1 internal line (docs, tests, tooling) left out.

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.