React Server Components Critical Flaw (CVSS 9.5) Lets Attackers Run Code Without Logging In — Patch Your Next.js App Now

Quick Answer

React has disclosed a critical remote code execution flaw in React Server Components, tracked as GHSA-xqc2-xf4c-x3h3 and rated 9.5 out of 10. An attacker needs no account and no user interaction to exploit it — but only when a server response carries multiple typed arrays alongside an attacker-controlled value, a pattern React describes as extremely rare. The affected packages are react-server-dom-webpack, react-server-dom-parcel, and react-server-dom-turbopack versions 19.0.0 through 19.3.0. The fix is to upgrade to 19.0.9, 19.1.10, 19.2.9, or 19.3.1. Next.js users must upgrade Next.js itself — to 16.4.1 or 15.5.28 — because Next.js ships its own bundled copy of the vulnerable code, and upgrading React alone does not close the hole. There is no CVE for this flaw, which means many vulnerability scanners will not flag it. If you run a React or Next.js app with server components, check your versions now.

Introduction

React is the most widely used JavaScript library for building web interfaces, and React Server Components have become the default way to build modern React applications — especially through Next.js, the framework that powers a huge share of production websites. When a flaw appears in that stack, the blast radius is enormous.

On October 14, 2026, the React team published a security advisory for a critical vulnerability in the server side of React Server Components. The flaw allows an unauthenticated attacker to execute arbitrary code on the server, the most serious outcome a web vulnerability can have. It carries a CVSS score of 9.5, placing it firmly in the critical range.

What makes this one unusual — and dangerous in a different way — is that it has no CVE identifier. Most organisations discover vulnerabilities through scanners and feeds keyed to CVE numbers. A critical flaw without one can sit unpatched for weeks while every dashboard reports green. That is exactly what appears to be happening: the flaw is still surfacing in threat intelligence feeds in early November, nearly a month after the fix shipped, because teams either never saw the advisory or assumed a routine dependency update had covered it.

This article explains what the flaw is, who is actually at risk, why your scanner probably missed it, and the exact steps to fix it — including the Next.js trap that catches even careful teams.

What Happened

The React team published advisory GHSA-xqc2-xf4c-x3h3 on October 14, 2026. The advisory describes an unauthenticated remote code execution vulnerability in three packages that implement React Server Components for different bundlers: react-server-dom-webpack, react-server-dom-parcel, and react-server-dom-turbopack.

The affected versions are 19.0.0 through 19.0.8, 19.1.0 through 19.1.9, 19.2.0 through 19.2.8, and 19.3.0 — effectively every React 19 release up to the patched versions. The fixed releases are 19.0.9, 19.1.10, 19.2.9, and 19.3.1, matching each minor line.

Next.js published its own advisory for the same underlying bug, GHSA-673q-mjm6-r5xr, and shipped the fix less than an hour after React. The Next.js advisory covers versions 16.0.0 through 16.4.0, with the fix in Next.js 16.4.1 and in the maintenance release 15.5.28.

As of late October, there were no public reports of the flaw being exploited in the wild, no public proof of concept, and the issue had not entered CISA’s Known Exploited Vulnerabilities catalogue. That is genuinely good news — but it is not a reason to delay. The technical details are public, the patch diff is public, and the history of the framework’s previous critical flaw shows how quickly that window closes.

How the Flaw Works

React Server Components work by rendering components on the server and streaming the result to the browser in a serialised format known as the Flight protocol. The server breaks the rendered output into chunks, each with a header describing what follows, and the client reassembles them.

The vulnerability is a framing problem in that protocol. Several typed arrays — such as Uint8Array or Float64Array values — can be views onto a single underlying ArrayBuffer. If that buffer is detached while the server is writing the response, the views suddenly report a length of zero. The server silently skipped those zero-length chunks, but the length headers it had already written still promised the data. The result is a mismatch between what the headers describe and what the stream actually contains — and an attacker who can control a value in that response can turn the mismatch into code execution on the server.

React’s patch fixes the problem at the source: the server now refuses to send a detached buffer and throws an error instead.

Why the Trigger Is Narrow — and Why That Does Not Mean Safe

React describes the trigger as “extremely rare cases where responses transport multiple typed arrays and an attacker-controlled value.” In a Next.js application, that means a use cache function that returns multiple typed arrays. Most applications will never produce such a response, and a plain React app with no server at all is not affected.

But “extremely rare” is not “impossible,” and Vercel’s own guidance makes the point bluntly: there is no workaround, and teams should upgrade even if their application has no such functions. The reason is simple. Whether your app is exploitable depends on subtle details of how your data flows through cached functions — details that are easy to get wrong in an audit and that can change with a single future code change. A feature added next month could quietly create the exact pattern the flaw needs. The only reliable fix is the patched version.

The Next.js Trap: Upgrading React Alone Does Not Fix It

This is the detail that catches the most teams, and it is worth stating plainly.

Next.js bundles its own copy of the vulnerable React Server Components packages inside itself. Running npm update react — or its equivalent in your package manager — updates the React package your application depends on, but it does not touch the copy that Next.js ships internally. Your lockfile can show a fully patched React while your server is still running the vulnerable code.

To fix a Next.js application, you must upgrade Next.js itself:

  • Next.js 16.x: upgrade to 16.4.1 or later.
  • Next.js 15.x: upgrade to 15.5.28 or later.

The same October 14 Next.js release also fixed a second critical remote code execution flaw, CVE-2026-96889, in the Image Optimization path, plus a high-severity denial-of-service issue in the App Router. One upgrade addresses all three, which is another reason not to put it off.

Why Your Scanner Probably Missed It

Here is the part that should worry security teams most. Neither the React advisory nor the Next.js advisory has a CVE identifier. The GitHub Advisory Database lists the issue under its GHSA identifier, but many scanners, audit feeds, and compliance dashboards are built around CVEs. As of mid-October, at least two of the advisories in the same release were not present in the npm audit feed, so npm audit could report a clean bill of health on a vulnerable application.

This is not a theoretical gap. It is the same class of problem that has bitten teams before: a serious flaw, a public fix, and a detection pipeline that never fires because it is waiting for an identifier that was never assigned. If your patching workflow depends entirely on scanner output, this flaw is a reminder to also watch framework advisories directly — the React and Next.js security advisories, and the GitHub Advisory Database, are the authoritative sources here.

Who Is Affected — and Who Is Not

Not every React application is at risk, and it is worth being precise about the boundary:

  • Affected: Applications that run React Server Components on the server, using react-server-dom-webpack, react-server-dom-parcel, or react-server-dom-turbopack in the affected version ranges. In practice, this mostly means Next.js applications using the App Router, particularly Next.js 16 apps with Cache Components and use cache functions.
  • Not affected: Applications with no server-side React code, and applications that do not use a framework, bundler, or plugin that supports React Server Components. A classic client-rendered React app, or a static site, is outside the scope of this flaw.

If you are unsure which side of the line you fall on, check your dependency tree rather than guessing. The check takes a minute and is described below.

How to Check and Patch

Step 1: Find out if you are affected

Check the installed versions of the three packages and of Next.js:

npm list react-server-dom-webpack react-server-dom-parcel react-server-dom-turbopack next

Any version in the ranges 19.0.0–19.0.8, 19.1.0–19.1.9, 19.2.0–19.2.8, or 19.3.0 is vulnerable. For Next.js, versions 16.0.0–16.4.0 are affected by the bundled-copy issue, and versions 10.0.0–15.5.27 are affected by the separate Image Optimization flaw fixed in the same release.

Step 2: Upgrade

For a standalone React Server Components setup, upgrade the affected packages to 19.0.9, 19.1.10, 19.2.9, or 19.3.1, matching your minor line. For Next.js, upgrade the framework itself:

npm install next@16.4.1

or, on the maintenance line:

npm install next@15.5.28

Then rebuild and redeploy. There is no workaround and no configuration change that substitutes for the upgrade.

Step 3: Verify the fix actually landed

After upgrading, re-run the version check and confirm the new version is what your deployed server is actually running — not just what your lockfile says. If you run multiple environments, check staging and production separately, and check any preview or demo deployments that share the same codebase. Forgotten preview deployments are a classic way a patched app stays vulnerable.

Step 4: Watch for exploitation attempts

There is no known exploitation in the wild yet, but that can change quickly once attackers study the public patch. Review server logs for unusual requests targeting Server Component endpoints, unexpected errors in the Flight protocol handling, and any signs of unexpected processes or outbound connections from your application servers. If you use a web application firewall, make sure its ruleset is current.

How This Compares to React2Shell

Anyone who followed React security news in late 2025 will feel a sense of déjà vu. The three packages affected by this flaw are the same three affected by React2Shell (CVE-2025-55182), a deserialisation flaw that attackers exploited at scale in December 2025.

The two flaws are not the same, and they should not be confused. React2Shell was a deserialisation gadget chain; this flaw is a framing problem in the Flight protocol, where a detached buffer breaks the alignment between headers and payload. The exploitation conditions are also different — React2Shell was broadly exploitable, while this flaw needs the narrow typed-array pattern. But the lesson carries over directly: when a critical flaw lands in the framework that renders your application, the patch window is measured in days. React2Shell showed what happens to teams that wait. The other parallel is worth noting too: AI-assisted vulnerability research is finding these flaws faster than ever — OpenAI’s GPT-6 Cyber, for example, recently found dozens of unknown Firefox flaws and hundreds of Linux exploits — which means the gap between disclosure and exploitation keeps shrinking. Our OpenSSH emergency fix coverage showed the same pattern: a flaw disclosed and attacked within hours. Patch fast, and verify.

Frequently Asked Questions

Is my React app vulnerable if it only runs in the browser?

No. The flaw is in the server side of React Server Components. Applications with no server-side React code, and applications that do not use a framework, bundler, or plugin supporting React Server Components, are not affected.

Does upgrading React fix my Next.js app?

No — and this is the most important detail in this article. Next.js bundles its own copy of the vulnerable packages, so upgrading the react package alone leaves the vulnerable code in place. You must upgrade Next.js itself to 16.4.1 or 15.5.28.

Why does this flaw have no CVE?

The React and Next.js advisories were published with GitHub Security Advisory (GHSA) identifiers only, and no CVE was assigned. That is why many scanners and audit feeds did not pick it up, and why manual checks against the advisories matter.

Is the flaw being exploited in the wild?

As of late October 2026, there were no public reports of exploitation, no public proof of concept, and the flaw was not listed in CISA’s Known Exploited Vulnerabilities catalogue. That status can change quickly, so treat the absence of attacks as a head start, not a reason to wait.

What if I cannot upgrade immediately?

Vercel states there is no workaround — only upgrading fixes it. If an upgrade is genuinely blocked, reduce exposure in the meantime: audit every use cache function for typed-array return values, restrict network access to the application server where possible, and prioritise the upgrade above other work. But treat that as a stopgap measured in days, not a plan.

Which versions exactly do I need?

For the React packages: 19.0.9, 19.1.10, 19.2.9, or 19.3.1, depending on your minor line. For Next.js: 16.4.1 or later on the 16.x line, or 15.5.28 or later on the 15.x line.

Key Takeaways

  • React Server Components have a critical unauthenticated RCE flaw, GHSA-xqc2-xf4c-x3h3, rated CVSS 9.5, disclosed October 14, 2026.
  • The trigger is narrow — responses carrying multiple typed arrays plus an attacker-controlled value — but Vercel says to upgrade even if your app has no such functions, because there is no workaround.
  • The flaw has no CVE, so many scanners and npm audit will not flag it. Check your versions manually against the React and Next.js advisories.
  • Next.js users must upgrade Next.js itself (16.4.1 or 15.5.28). Upgrading the react package alone does not fix the bundled copy inside Next.js.
  • No exploitation in the wild had been reported as of late October, but the patch details are public and the window for attackers is open. Verify the fix is actually deployed, not just in your lockfile.

Conclusion

This flaw is a useful stress test for how a team handles security updates. The bug itself is severe but narrow. The real risk is procedural: no CVE means no scanner alert, and a bundled copy inside Next.js means a routine React upgrade leaves the hole open. Both traps are easy to fall into and easy to avoid once you know about them.

If you run React Server Components or Next.js, spend the next ten minutes checking your versions. Upgrade the framework, rebuild, redeploy, and verify what is actually running in production. The fix has been available since October 14 — the only question is whether your servers are running it yet.

Source: React security advisory GHSA-xqc2-xf4c-x3h3 — and the Next.js security advisory GHSA-673q-mjm6-r5xr.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top