All posts

React’s Critical Server Components flaw: which versions, and how to check.

CVE-2026-126187 (CVSS 9.5): crafted payloads can lead to remote code execution in apps using React Server Components. Fixed in react-server-dom 19.0.9, 19.1.10, 19.2.9, 19.3.1.

Published
Reading time
7 min
By
Girish Babu GV

What happened#

React Server Components send data from the server to the browser in a streaming format, and the react-server-dom-* packages are the bundler-specific pieces that implement it. According to the advisory, the React project published it on 14 October 2026, and GitHub reviewed it and added it to its advisory database on 10 November, which is when it got its CVE number and wider attention. The finder is credited as evolutionstorm.

The advisory’s description is short. Crafted payloads aimed at frameworks that support Server Components can lead to remote code execution, and it applies in “extremely rare cases” where responses transport multiple typed arrays and an attacker-controlled value. Typed arrays are JavaScript’s binary data views, such as Uint8Array. The advisory says nothing more about the mechanism, and I have not tried to work it out.

The GitHub database lists the weakness as CWE-502 (deserialization of untrusted data), and the CVSS v4 vector as network-reachable, low complexity, no privileges and no user interaction, with high impact on confidentiality, integrity and availability. The repository copy of the advisory lists no CWE.

The fix shipped in four releases on 14 October. The release notes for each, as I read them, list a single change under React Server Components, “Improve transport protocol”, in pull requests #37842 to #37845. The notes don’t use the word “security”, so the advisory is the only place that connects the change to this flaw.

Am I affected?#

Affected and fixed versions, as listed in the advisory
LineAffectedFixed in
19.019.0.0 up to 19.0.819.0.9
19.119.1.0 up to 19.1.919.1.10
19.219.2.0 up to 19.2.819.2.9
19.319.3.019.3.1

The same ranges apply to all three packages: react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack. The advisory’s test for exposure is about your architecture: apps that use React with a server and a framework, bundler or bundler plugin supporting Server Components are potentially affected, and apps without a server, or without that kind of support, are not.

In practice that means checking two things. First, whether you have one of those packages in your dependency tree, directly or through a framework. Second, whether it is below the fixed version for its line. Note that the packages are often not listed in your own package.json: a framework may depend on them, or may bundle its own copy, in which case the framework’s own release is what you need to look at.

What to do now#

  1. Find the packages. Check every project, including monorepo packages and anything built from a lockfile in CI.
  2. Upgrade to the fixed version for your line: 19.0.9, 19.1.10, 19.2.9 or 19.3.1. The registry’s latest tag for react-server-dom-parcel is 19.3.1. The published react-server-dom-webpack@19.2.9 lists react and react-dom ^19.2.9 as peer dependencies, so move those together.
  3. If a framework owns the dependency, upgrade the framework to a release that includes the fix, and check its own advisory (see the Next.js section below).
  4. Redeploy. A lockfile change does nothing for a running server until it is rebuilt and restarted.
Check your versions
# Are any of the three packages in your tree, and at which versions?
npm ls react-server-dom-webpack react-server-dom-parcel react-server-dom-turbopack

# Lockfile check (npm). pnpm and yarn users: search pnpm-lock.yaml / yarn.lock instead
grep -nE "react-server-dom-(webpack|parcel|turbopack)" package-lock.json

# The React versions you run
npm ls react react-dom

The advisory doesn’t say whether exploitation has been seen, and it lists no indicators of compromise or logging advice. Treat any Server Components endpoint that was reachable from the internet on an affected version as in scope for your normal review.

What about Next.js?#

The React advisory doesn’t mention Next.js by name. In my October post on the Next.js update I covered a separate Next.js advisory, GHSA-673q-mjm6-r5xr (CVSS v4 9.5), for an unauthenticated RCE in apps using Cache Components when a use cache function returns multiple typed arrays. It was fixed in Next.js 16.4.1 and 15.5.28, announced on 14 October, the same day as the React releases above.

The two advisories describe similar conditions and were fixed on the same day. Neither one, as I read them, says whether they are the same underlying flaw or how they relate, so I am not claiming that. If you use Next.js, the safe reading is to treat both as applying to you and to follow the Next.js advisory’s fixed versions.

How I checked this site#

This site is a Next.js project on Vercel. Its package.json pins react and react-dom to 19.3.1, which is the fixed release for the 19.3 line, and next to 16.4.3, which is above the 16.4.1 fix for the October Next.js advisory but below 16.4.5, the release that fixed the seven Moderate advisories GitHub lists for Next.js from 3 November. I have not upgraded this site yet. package-lock.json has no react-server-dom-* entries, so none of the three packages is installed separately. I did not check how Next.js packages its Server Components internals, so for this site I am relying on Next.js’s own fixed version rather than on the lockfile. I also searched the site’s source (outside the blog posts) for use server and use cache directives and found none. That covers this repository only.

What the sources don’t say#

  • Whether anyone has exploited it. The advisory is silent, and I did not read independent reporting.
  • How the flaw works, or exactly which framework features expose it. The advisory gives only the typed-arrays condition.
  • Whether this and the Next.js use cache advisory are one flaw or two.
  • Whether other frameworks that embed Server Components are affected, beyond the generic statement about frameworks that support them.
  • Any workaround. The advisory lists none and says to update immediately.

My take#

My own opinion, not from the advisories.

This is a good reminder that “is it in my package.json?” is the wrong first question for server-side framework code. The vulnerable packages here are usually pulled in by a framework or bundler plugin, so the useful habit is to run npm ls against the package names in an advisory and to read your framework’s release notes the day a React advisory lands. It is also a reason to keep patch updates cheap: the fix is a patch bump on every line.

Sources#

Keep reading

Esc