Codework Tech
en
Talk to us↗

React Server Components Vulnerability: What CVE-2026-126187 Means for Your App

CVE-2026-126187 is an unauthenticated remote code execution flaw in react-server-dom-* rated 9.5. The advisory shipped on 14 October, but the CVE only landed on 10 November, which is why your audit went green for a month. Here is who is affected and what to upgrade.

Niti Jirakarnwuttikrai

5 min read

Graphic of a package-lock.json file with the react-server-dom-webpack@19.2.8 line highlighted in red with a warning sign, and an arrow pointing to a green card reading PATCHED 19.2.9 and next 16.4.1

Key takeaways

  • CVE-2026-126187 is an unauthenticated RCE in react-server-dom-webpack / parcel / turbopack, CVSS 4.0 9.5, fixed in 19.0.9, 19.1.10, 19.2.9 and 19.3.1.
  • The advisory is from 14 October 2026, but the CVE only entered the GitHub Advisory Database on 10 November, so npm audit was green for weeks on vulnerable apps.
  • Apps that do not render RSC on a server, such as static-served SPAs, are not affected.
  • Next.js has a separate advisory (GHSA-673q-mjm6-r5xr) fixed in 16.4.1 and 15.5.28. Bumping react and react-dom alone is not enough.
  • These packages arrive transitively: check with npm ls react-server-dom-webpack or by grepping the lockfile, not by reading package.json.

Last week a lot of teams opened their repos to a red Dependabot alert naming a package they never installed: react-server-dom-webpack. That is the React Server Components vulnerability tracked as CVE-2026-126187, an unauthenticated remote code execution flaw with a CVSS 4.0 score of 9.5 (GitHub Advisory Database). If your app runs Next.js App Router, React Router or any bundler plugin that supports RSC, you can be exposed without having written a single line of risky code.

The interesting part isn't "go update". It's that the advisory has been public since 14 October, and your tooling only noticed on 10 November.

What this React Server Components vulnerability actually is

It's a deserialization bug (CWE-502) in React's own server packages. The React team's advisory says crafted payloads sent to frameworks that support React Server Components can lead to remote code execution, and that it only happens in the rare case where a response transports multiple typed arrays together with an attacker-controlled value (GHSA-xqc2-xf4c-x3h3).

Three packages are affected:

  • react-server-dom-webpack
  • react-server-dom-parcel
  • react-server-dom-turbopack

Affected ranges are 19.0.0–19.0.8, 19.1.0–19.1.9, 19.2.0–19.2.8 and 19.3.0. The patched releases are 19.0.9, 19.1.10, 19.2.9 and 19.3.1 (the advisory text writes "19.0.09", which is a typo for 19.0.9).

EPSS currently sits at 1.763%, and StepSecurity, which reverse-engineered the bug, reports no known in-the-wild exploitation. But "no authentication" plus "code execution on your server" is not something to leave open across a month of sprints.

Why npm audit only flagged it in November

Because the CVE and the advisory didn't arrive together. React published the advisory in the react/react repository on 14 October 2026 along with the fixed versions. CVE-2026-126187 was assigned, and the advisory reviewed into the GitHub Advisory Database, on 10 November 2026 (GitHub Advisory Database).

npm audit and Dependabot both read that database. So for roughly four weeks, vulnerable apps got a clean audit.

That matters more than the CVE itself. A green npm audit doesn't mean "safe", it means "nothing in the database yet". If audit is your only gate, you learn about issues about a month after the people who read their framework's security blog. The same gap hit Node.js from the other direction: runtime CVEs aren't in anyone's package.json, so audit never mentions them (our write-up of the November 2026 Node.js release).

Who is affected and who can relax

If you render RSC on a server, treat this as urgent. React states that apps whose React code doesn't use a server, and apps that don't use a framework, bundler or bundler plugin supporting RSC, are not affected. A Vite-built SPA served as static files can sleep through this one.

Next.js has its own advisory, GHSA-673q-mjm6-r5xr, also scored 9.5. It applies to apps on the App Router with Cache Components that have a use cache function returning multiple typed arrays. Affected versions are 16.0.0 through 16.4.0, fixed in 16.4.1 (Next.js security update, 14 October 2026).

Read the next line in that advisory too. Vercel says affected apps have no known workaround and that you should upgrade immediately even if your application does not have similar functions. Don't spend an afternoon grepping for use cache functions that return typed arrays. Upgrading is faster than auditing your own code.

Where the bug comes from

RSC streams UI from the server using a protocol React calls Flight. It mixes text rows and binary rows, and each binary row declares its exact byte count up front.

Per StepSecurity's analysis, the vulnerable writer serialized typed arrays larger than 2048 bytes as a view onto a shared ArrayBuffer instead of copying them. A zero-length chunk check could then drop the data while the header still promised bytes were coming. The parser consumed the following bytes as data instead, its alignment shifted, and attacker-supplied content ended up being read as a module row, which loads code out of the application's own bundle (StepSecurity).

The patch makes the writer copy large payloads into exact-size buffers first.

If the preconditions sound unlikely, they are, and both advisories say so. The catch is that you don't control whether a library beneath your code puts several typed arrays into one response. That's why the advice is one word long: upgrade.

How to check your own project

These three packages almost always arrive as transitive dependencies, so they won't be in your package.json. Go straight at the dependency tree and the lockfile.

  1. See what actually resolves: npm ls react-server-dom-webpack react-server-dom-parcel react-server-dom-turbopack (with pnpm, pnpm why react-server-dom-webpack).
  2. Grep the lockfile in case several versions coexist: grep -n "react-server-dom" package-lock.json.
  3. Run npm audit again. The database knows now, so the result differs from last month.
  4. Compare what you find against 19.0.9 / 19.1.10 / 19.2.9 / 19.3.1. Anything lower in the same line is still vulnerable.

In a monorepo, run this per workspace. One lockfile can hold several versions of react-server-dom-webpack at the same time.

What to upgrade, and why bumping React isn't enough

Upgrade the framework first and let it pull in the fixed react-server-dom-* build.

  • Next.js 16.x: at least 16.4.1
  • Next.js 15.5.x: at least 15.5.28
  • react-server-dom-* directly: 19.0.9, 19.1.10, 19.2.9 or 19.3.1, matching your line

Worth repeating: upgrading react and react-dom does not close the Next.js hole. GHSA-673q-mjm6-r5xr is fixed inside the next package itself, so next has to move.

And while you're in there, don't stop at 16.4.1. A November security release followed, including a cache leak that crossed tenants (what the November 2026 Next.js release fixed, and which version to target). One upgrade to the latest patch in your line beats two upgrades a week apart.

Second Flight RCE in twelve months, and what to change in your process

The Flight parser already had an RCE in December 2025: CVE-2025-55182, nicknamed React2Shell, scored a full 10.0. There an attacker could send a crafted request to any Server Function endpoint and get code execution when React deserialized the payload, and React confirmed apps using RSC were potentially affected even without implementing a single Server Function (React Blog).

Both point at the same place: the code that unpacks network payloads is now the main attack surface of full-stack React. Should you drop RSC over this? I wouldn't. Every framework that deserializes outside input carries this class of risk. What you can realistically change is how fast you patch.

Three things worth doing this sprint:

  1. Subscribe to your framework's security blog directly instead of waiting for a CVE. Next.js even announces these releases a week ahead.
  2. Keep a standing weekly patch window that doesn't need fresh approval. If the team can bump patch versions on its own, this kind of thing closes in a day.
  3. Stop treating npm audit as a pass/fail gate. Use it as one signal, and keep lockfiles or an SBOM so you can answer later what shipped inside which release.

Stuck on an older Next.js version and unsure what an upgrade will break? We can help plan the upgrade and test it before it reaches production.

Talk to our team

Frequently asked questions

We run a plain React SPA. Do we need to patch today?

Not because of this. React states that apps whose React code does not use a server, and that do not use an RSC-capable framework or bundler plugin, are unaffected. Still check your dependency tree to confirm that no react-server-dom-* package resolves in your build.

We upgraded react and react-dom. Are we done?

Not if you use Next.js. GHSA-673q-mjm6-r5xr is fixed in the next package itself: 16.4.1 for the 16 line and 15.5.28 for 15.5.

Is it being exploited in the wild?

StepSecurity's analysis reports no known in-the-wild exploitation, and EPSS on the advisory page is 1.763%, which is low. It is still an unauthenticated RCE, so do not let it sit.

We cannot upgrade the framework yet. What can we do?

The Next.js advisory says there is no known workaround for affected apps. The practical stopgap is forcing a patched react-server-dom-* version through overrides, while you schedule the next upgrade as soon as possible.

Sources

  1. [1]GHSA-xqc2-xf4c-x3h3: Unauthenticated Remote Code Execution in React Server Components — React, 14 Oct 2026
  2. [2]CVE-2026-126187 in the GitHub Advisory Database — GitHub, 10 Nov 2026
  3. [3]Next.js Security Update for Upstream Vulnerabilities — Vercel, 14 Oct 2026
  4. [4]CVE-2026-126187: Unauthenticated RCE in the React Flight protocol — StepSecurity, 12 Nov 2026
  5. [5]Critical Security Vulnerability in React Server Components (CVE-2025-55182) — React, 3 Dec 2025
  • JavaScript
  • Next.js
  • React
  • Security Advisory
  • Supply Chain Security

Written by

Niti Jirakarnwuttikrai

Full Stack Developer

Complex systems only create value when they turn into a simple experience.

Let's build together

Have an idea worth building?

Tell us about it, and we'll work out the best way to bring it to life.