7 React Router Security Flaws Disclosed: How to Patch Node.js DoS and Remix 2
If your frontend or full-stack web app uses React Router, Remix 2, or Shopify Hydrogen, dependency updates are waiting in your lockfile today. On November 18, 2026, the React Router team disclosed seven security vulnerab
If your frontend or full-stack web app uses React Router, Remix 2, or Shopify Hydrogen, dependency updates are waiting in your lockfile today. On November 18, 2026, the React Router team disclosed seven security vulnerabilities spanning React Router versions 6, 7, and 8, and Netlify's November 18 security changelog laid out the exact affected package ranges and upgrade commands for npm, pnpm, and Yarn.
The seven advisories cover three denial-of-service vectors, prototype pollution, cross-site scripting in React Server Components (RSC), cross-site request forgery (CSRF), and open redirects. Most critically for teams running containers or VPS hosts, GHSA-mp5r-736v-j8x9 lets a malformed request crash a self-hosted Node.js React Router server, while two older React Router 6 bugs have no 6.x backport at all.
We haven't tested this ourselves; this is based on the November 18, 2026 security disclosure and Netlify's changelog guidance.
All 7 React Router vulnerabilities and their fixed versions
React Router powers plain single-page client apps as well as full-stack frameworks like Remix 2 (built on React Router 6) and Shopify Hydrogen (built on React Router 7). Because transitive dependencies frequently pull in @react-router/node, @react-router/serve, or react-router-dom behind the scenes, checking package.json by hand is not enough.
| Advisory ID | Vulnerability Type | Affected Packages & Versions | Patched In |
|---|---|---|---|
GHSA-2rq8-3rm6-2w8f |
Server-rendering DoS |
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 |
react-router 7.0.0–7.18.4, 8.0.0–8.5.0
|
7.18.5, 8.5.1
|
GHSA-mp5r-736v-j8x9 |
Node.js server DoS |
@react-router/node 7.0.0–7.18.5, @react-router/serve 7.9.2–7.18.5, v8 packages 8.0.0–8.3.0
|
7.18.6, 8.3.1
|
GHSA-x8j4-g9rr-8j87 |
Route-matching DoS |
react-router 6.0.0–7.18.2, 8.0.0–8.3.0
|
7.18.3, 8.3.1
|
GHSA-mjj8-rxh9-q8f5 |
RSC redirect XSS |
react-router 7.11.0–7.18.3, 8.0.0–8.3.x
|
7.18.4, 8.4.0
|
GHSA-8wpx-2pj4-ggvx |
Cross-Site Request Forgery (CSRF) |
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 |
react-router 6.4.0–7.18.2, 8.0.0–8.3.0
|
7.18.3, 8.3.1
|
To stay clear of all seven advisories, React Router 7 projects should update react-router to 7.18.5 or later and @react-router/node plus @react-router/serve to 7.18.6 or later. React Router 8 projects should move all react-router, @react-router/node, @react-router/serve, and @react-router/dev packages to 8.5.1 or later.
Expand
Close-up of colorful JavaScript syntax highlighting on a monitor
Self-hosted Node.js crash risk, RSC XSS, and prototype pollution
Three of the seven flaws carry specific hosting and configuration traps that determine how urgently your team needs to redeploy:
-
Self-hosted Node.js servers (
GHSA-mp5r-736v-j8x9): Apps deployed behind serverless adapters on platforms like Netlify do not run the bundled Node.js server from@react-router/node,@react-router/serve, or@react-router/dev. If you self-host inside Docker, Kubernetes, or a Node.js VM, a single malformed HTTP request can crash the process until you hit7.18.6or8.3.1+. -
Prototype pollution (
GHSA-qhgm-jj2j-75wj): On the server, this flaw only triggers if the build-only environment variableIS_RR_BUILD_REQUESTis present at runtime. React Router sets that flag during builds automatically, so audit your hosting dashboard and team-wide environment variables to confirmIS_RR_BUILD_REQUESTwas never saved manually. -
Experimental RSC and open redirects (
GHSA-mjj8-rxh9-q8f5&GHSA-7m2v-44vx-v55w): Apps using experimental React Server Components modes that redirect to untrusted destinations face XSS risk until7.18.4/8.4.0. For open redirects via query parameters likereturnToafter login, upgrading fixes React Router's internal navigation, though your own route loaders and actions should still validate that redirect URLs stay on your domain.
Browser-level risks apply regardless of hosting provider: GHSA-x8j4-g9rr-8j87 can freeze a visitor's tab during client-side route matching, and GHSA-8wpx-2pj4-ggvx requires strict HTTPS enforcement (including HSTS on custom domains) to block plain-HTTP CSRF attacks.
Why Remix 2 and React Router 6 apps cannot rely on npm update
The biggest catch in the November 18 disclosure hits legacy projects still pinned to React Router 6 or Remix 2 (which ships React Router 6 under the hood). There is no patched React Router 6.x release for GHSA-x8j4-g9rr-8j87 (route-matching DoS) or GHSA-7m2v-44vx-v55w (open redirect).
Running npm update inside a Remix 2 or React Router 6 codebase will stay inside the 6.x major version range and leave both bugs unpatched. Those projects must migrate to a patched React Router 7 (7.18.6+) or React Router 8 (8.5.1+) release. If your team is also planning broader React toolchain upgrades this quarter, our guide to building production React Native apps covers similar lockfile and framework migration checks on the mobile side.
Expand
JavaScript programming code running on a developer laptop screen
Step-by-step commands to verify, patch, and clean old deploys
Run these checks inside the exact app directory you deploy (never just the monorepo root) so nested copies pulled in by frameworks show up:
-
Install and inspect every installed copy: Run
npm install && npm ls react-router @react-router/node @react-router/serve @react-router/dev(for pnpm usepnpm whywith the same package names; for Yarn runyarn whyon each package separately). -
Update within your major branch: Check that
package.jsonuses^or~ranges instead of*, then runnpm update react-router react-router-dom @react-router/node @react-router/serve @react-router/dev(or the equivalentpnpm update). On Yarn, or if a nested package pins an old copy, install the fixed target directly:npm install react-router@^7.18.6for v7 ornpm install react-router@^8.5.1for v8, plus matching@react-router/*packages. -
Re-run the list command and commit your lockfile: Verify every nested resolution meets
7.18.6+or8.5.1+, commitpackage.jsonalongsidepackage-lock.json,pnpm-lock.yaml, oryarn.lock, and trigger a fresh deploy. -
Purge stale branch previews and
IS_RR_BUILD_REQUEST: Delete any old deploy previews or branch deploys built with vulnerable packages (since platforms like Netlify keep the latest deploy per branch live until deleted), and removeIS_RR_BUILD_REQUESTif it exists in your runtime environment settings before redeploying.
Frequently Asked Questions
Are React Router 6 and Remix 2 apps getting a 6.x security patch?
No. There is no React Router 6.x fix for GHSA-x8j4-g9rr-8j87 or GHSA-7m2v-44vx-v55w. Remix 2 and React Router 6 projects need to upgrade to React Router 7 (7.18.6+) or 8 (8.5.1+).
Does GHSA-mp5r-736v-j8x9 affect static single-page apps?
No. GHSA-mp5r-736v-j8x9 affects self-hosted Node.js servers running @react-router/node, @react-router/serve, or @react-router/dev. Client-side SPAs should still upgrade to fix GHSA-x8j4-g9rr-8j87 and GHSA-7m2v-44vx-v55w.
Why should I check IS_RR_BUILD_REQUEST in environment variables?
GHSA-qhgm-jj2j-75wj (prototype pollution) is only exploitable on the server if the build-only variable IS_RR_BUILD_REQUEST is set in your production runtime environment.
Originally published on Mango Developer.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.
