React Router November 2026 security release: seven advisories, which apps are affected and what to upgrade

On 18 November 2026 the React Router team published seven GitHub security advisories (four High, three Moderate). Fixes are in react-router 7.18.3–7.18.6 and 8.3.1–8.5.1; the newest releases are 7.18.6 and 8.5.2. There is no fixed React Router 6 release: if your app uses react-router-dom 6, the only fix is moving to v7. Older Lovable React + Vite apps use React Router, so check which version yours has. Most of the serious issues need Framework mode or a server; a plain BrowserRouter single-page app is exposed to one of the seven.

Severity: high Status: Active Disclosed 18 Nov 2026

Short answer

Run npm ls react-router react-router-dom in your project. On 7.x, install react-router@^7.18.6 (plus any @react-router/* packages at 7.18.6). On 8.x, install react-router@^8.5.1 (8.5.2 is current). On 6.x (react-router-dom 6, Remix 2, and any older Lovable app that still has v6) there is no patched 6.x release — upgrade to v7 with npm install react-router-dom@latest (7.18.6) using React Router's upgrade guide, then redeploy. If your app is a plain <BrowserRouter> SPA, only one advisory applies (GHSA-x8j4-g9rr-8j87, a CPU-heavy route-matching bug that runs in the visitor's browser), so treat it as a planned upgrade, not an emergency.

What happened

On 18 November 2026, between 17:45 and 17:46 UTC (18:45–18:46 CET), the React Router team published seven security advisories in the remix-run/react-router GitHub repository. GitHub rates four of them High and three Moderate. None of the seven listed a CVE ID when we checked on 20 November.

Some fixes shipped before the disclosure: npm shows react-router 7.18.5 and 8.5.1 published on 27 October 2026. The newest releases, react-router 8.5.2 and 7.18.6 (with @react-router/node, @react-router/serve and @react-router/dev 7.18.6), were published on 18 November. The last React Router 6 release is still 6.30.6 from 18 August 2026.

Netlify published a changelog post the same day explaining how each issue affects sites on Netlify. When we checked on 20 November, the Vercel and Cloudflare changelogs didn't have a post about this release.

The seven advisories

“Modes” are React Router's three ways to use the library: Declarative (<BrowserRouter> + <Routes>), Data (createBrowserRouter + <RouterProvider>) and Framework (the Vite plugin with route modules, the successor to Remix), plus the unstable RSC modes. Severity, CVSS score, affected modes and fixed versions are from each GitHub advisory.

React Router advisories published 18 November 2026
AdvisorySeverityAffected modesAffected versionsFixed in
GHSA-2rq8-3rm6-2w8f: denial of service in server-side route discovery High (CVSS 7.5) Framework (server rendering with lazy route discovery), RSC react-router 7.0.0–7.18.4, 8.0.0–8.5.0 7.18.5, 8.5.1
GHSA-qhgm-jj2j-75wj: prototype pollution in data deserialization High (CVSS 7.4) Framework react-router 7.0.0–7.18.4, 8.0.0–8.5.0 7.18.5, 8.5.1
GHSA-mp5r-736v-j8x9: denial of service in Node.js request handling High (CVSS 7.5) Framework, RSC — when requests reach the Node.js server from @react-router/node, serve or dev @react-router/node 7.0.0–7.18.5, @react-router/serve 7.9.2–7.18.5; node/serve/dev 8.0.0–8.3.0 7.18.6, 8.3.1
GHSA-x8j4-g9rr-8j87: denial of service in route matching High (no CVSS score published) Declarative, Data, Framework, RSC — in the browser or on the server, wherever route matching runs react-router 6.0.0–7.18.2, 8.0.0–8.3.0 7.18.3, 8.3.1 (no 6.x fix)
GHSA-mjj8-rxh9-q8f5: cross-site scripting in RSC redirects Moderate (CVSS 4.7) RSC Data and RSC Framework (unstable) only react-router 7.11.0–7.18.3, 8.0.0–8.3.x 7.18.4, 8.4.0
GHSA-8wpx-2pj4-ggvx: CSRF bypass in server-side actions Moderate (no CVSS score published) Framework, RSC react-router 7.12.0–7.18.2, 8.0.0–8.3.0 7.18.3, 8.3.1
GHSA-7m2v-44vx-v55w: open redirect in loader and action responses Moderate (no CVSS score published) Data, Framework, RSC — when the app redirects to attacker-controlled input react-router 6.4.0–7.18.2, 8.0.0–8.3.0 7.18.3, 8.3.1 (no 6.x fix)

The advisories describe each issue in one or two sentences and don't publish exploit details. None of the sources we cite report exploitation in the wild.

Am I affected? Find your version and mode

Netlify's post recommends installing dependencies first and then listing every installed copy, because a framework can bring in its own React Router that isn't in your package.json. In a monorepo, run it in the folder of the app you deploy.

  1. No React Router in the output: none of these advisories apply. Next.js, Astro, SvelteKit and TanStack Start/Router apps don't use React Router unless they add it.
  2. Find the mode: <BrowserRouter> or <HashRouter> around <Routes> is Declarative mode. createBrowserRouter with <RouterProvider> is Data mode. A react-router.config.ts file, app/routes.ts and @react-router/dev in package.json mean Framework mode.
  3. Declarative SPA (no server): only GHSA-x8j4-g9rr-8j87 applies, and the CPU cost lands in the browser of whoever opens a crafted URL. Upgrade, but it isn't an emergency.
  4. Data mode SPA: GHSA-x8j4-g9rr-8j87 plus GHSA-7m2v-44vx-v55w if a loader or action redirects to a destination taken from user input (for example ?returnTo=).
  5. Framework mode with server rendering, or a self-hosted react-router-serve / @react-router/node server: most of the seven can apply. Upgrade now.
  6. Not sure? Ask your coding agent the question Netlify suggests: “Does this project use React Router, directly or through another package? If so, which version?”
Terminal
npm install
npm ls react-router react-router-dom @react-router/node @react-router/serve @react-router/dev

How to upgrade

These commands follow Netlify's 18 November post and React Router's own upgrade guide. Commit package.json and the lockfile, then deploy, so production runs the new build.

  • React Router 7: npm install react-router@^7.18.6, and the same version for any @react-router/node, @react-router/serve or @react-router/dev you use. If you still import from react-router-dom 7, run npm install react-router-dom@^7.18.6 (it depends on react-router 7.18.6 exactly).
  • React Router 8: npm install react-router@^8.5.1 (resolves to 8.5.2 today), plus @react-router/* packages at 8.5.1 or later. v8 needs Node.js 22.22.0+ and React 19.2.7+ according to its npm metadata, so don't jump to v8 just for this fix.
  • React Router 6 and Remix 2: there is no patched 6.x release, and npm update can't fix GHSA-x8j4-g9rr-8j87 or GHSA-7m2v-44vx-v55w. Move to v7: first update to the latest v6 and turn on the v7 future flags one at a time, then npm install react-router-dom@latest. v7 needs Node.js 20+ and React 18+. Remix 2 apps follow React Router's separate “Upgrading from Remix v2” guide.
  • Check again with npm ls. If an old copy is still nested under another package, update that package — installing react-router on its own doesn't replace a copy another package pins (Netlify's note).
  • Redeploy every environment: production, previews and branch deploys. Old deploys keep running the code they were built with.

Older Lovable apps and other Vite + React SPAs

Lovable's docs say its older React + Vite apps use client-side routing with React Router and BrowserRouter, and build to static files in dist/. That is Declarative mode, so of the seven advisories only GHSA-x8j4-g9rr-8j87 (route-matching DoS) applies to them, and it runs in the visitor's browser, not on a server. Lovable hasn't said which React Router version its older template installed; check npm ls react-router-dom in your exported repo. If it shows 6.x, you need the v6 → v7 upgrade above.

Lovable projects created from 13 May 2026 use TanStack Start with TanStack Router instead of React Router (Lovable blog), so this release doesn't apply to them unless React Router was added later. Lovable hasn't published a notice about this release.

The same reasoning applies to any static Vite + React SPA you host on Cloudflare Pages, Netlify, Vercel or nginx: with <BrowserRouter> and no server rendering, the server-side advisories have nothing to attack. You still need the SPA fallback that serves index.html for every route after upgrading — see our SPA 404 fix if refreshes break.

Terminal (v6 → v7 for a BrowserRouter SPA)
npm install react-router-dom@6    # latest v6 first, then enable the v7 future flags
npm install react-router-dom@latest   # 7.18.6 today
npm ls react-router react-router-dom  # every copy should be 7.18.3 or later
npm run build                          # then test locally and redeploy

Host notes (verified only)

  • Netlify (18 Nov changelog): the DoS issues have minimal impact on Netlify because a crashed or hung function doesn't affect other requests, but active exploitation could raise function costs. Netlify doesn't run the Node.js server from @react-router/node / serve, and its React Router adapter doesn't support RSC, so it lists GHSA-mp5r-736v-j8x9 and GHSA-mjj8-rxh9-q8f5 as not affecting Netlify sites. It still recommends upgrading.
  • Netlify, prototype pollution: Netlify says the server-side issue matters only when a build-only React Router setting is present at runtime. Make sure IS_RR_BUILD_REQUEST is not set as a site or team environment variable; if it is, remove it and publish a new deploy.
  • Netlify, CSRF: Netlify says exploitation needs plain-HTTP content on your own domain; *.netlify.app is always HTTPS. For a custom domain it recommends sending a Strict-Transport-Security header (and HSTS preload to cover first visits).
  • Netlify, old deploys: Netlify never auto-deletes the latest successful deploy of each branch, so branch deploys and public deploy previews can stay vulnerable until you delete them.
  • Vercel and Cloudflare: no changelog post about this release when we checked on 20 November 2026. Without a host notice, assume your deployed version is what matters and upgrade it.

Don't redirect to raw user input

Netlify notes that upgrading fixes React Router's own handling, but code that redirects to a destination from user input (like returnTo after login) should still check that the destination stays on your site. A minimal check keeps only same-site paths:

safe-redirect.ts
export function safeReturnTo(value: string | null): string {
  // Only allow same-site paths like "/dashboard"; reject "//evil.com", "/\evil.com" and full URLs.
  if (!value || !value.startsWith('/') || value.startsWith('//') || value.startsWith('/\\')) return '/';
  return value;
}

Confirmed vs not confirmed

What we can and can't claim from primary sources (checked 20 Nov 2026)
ClaimStatus
Seven advisories published 18 Nov 2026; four High, three Moderate Confirmed (GitHub advisories)
Affected and fixed versions, affected modes Confirmed (GitHub advisories)
react-router 7.18.6 and 8.5.2 are the newest releases; 7.18.5 / 8.5.1 shipped 27 Oct Confirmed (npm registry)
No patched React Router 6.x release Confirmed (advisory ranges start at 6.0.0 / 6.4.0 with fixes only in 7.x/8.x; Netlify says the same; last v6 release is 6.30.6 from Aug 2026)
Older Lovable apps use React Router with BrowserRouter; new ones (from 13 May 2026) use TanStack Start Confirmed (Lovable docs and blog)
Which React Router version older Lovable apps install Not published by Lovable — check your own package.json / npm ls
CVE IDs for these advisories None listed on the advisories as of 20 Nov
Exploitation in the wild Not reported in any source we cite
Vercel or Cloudflare protect hosted apps without action Not confirmed — no notice from either as of 20 Nov

Common questions

Is my Lovable app affected by the React Router vulnerabilities?

Only older Lovable React + Vite apps use React Router (with BrowserRouter, per Lovable's docs); projects created from 13 May 2026 use TanStack Start. For a BrowserRouter SPA, one advisory applies — GHSA-x8j4-g9rr-8j87, a route-matching denial of service in the visitor's browser. Run npm ls react-router-dom; anything below 7.18.3 needs upgrading, and 6.x needs the v6 → v7 upgrade.

Is there a patch for React Router 6?

No. The two advisories that reach v6 (route-matching DoS from 6.0.0 and open redirect from 6.4.0) are fixed only in 7.18.3 and 8.3.1. The latest v6 release is still 6.30.6 from August 2026. Netlify's post says the same: v6 and Remix 2 apps need to move to React Router 7.

Which version should I install?

On 7.x, react-router@^7.18.6 (and @react-router/* at 7.18.6). On 8.x, react-router@^8.5.1 — 8.5.2 is current. Coming from v6, react-router-dom@latest installs 7.18.6, which needs Node.js 20+ and React 18+.

Does upgrading break my app?

Within 7.x or 8.x it's a same-major update (no new major version). From v6 to v7, React Router says there are no breaking changes if you first enable all v6 future flags; its guide recommends turning them on one at a time and shipping each step. Test locally, build, then redeploy.

My SPA is static files on Cloudflare Pages or Netlify. Can anyone take down my server?

A static BrowserRouter app has no React Router code on the server, so the server-side DoS advisories don't apply. The route-matching issue can make a visitor's browser use a lot of CPU when they open a specially crafted URL. Upgrade anyway, but it isn't an outage risk for your host.

Do I have to redeploy after updating package.json?

Yes. Your live site runs the build that was deployed. Commit the lockfile, deploy, and remove old preview or branch deploys you don't need — Netlify keeps the latest deploy of each branch indefinitely.

Related on VibeLiftoff