Writing · 2025 · 5 min read
React2Shell (CVE-2025-55182): when create-next-app was enough to get you owned
Unauthenticated RCE in React Server Components. Why a default create-next-app was exploitable, and why this site was not.
I found out about this one the way most people did — a flood of messages on a Wednesday afternoon, all variations of "is your site React?"
Mine is. This site's frontend is Next.js 15.5.9 on React 19.2.3, which lands right in the middle of the affected range. So I spent that evening reading the advisory properly instead of skimming it, and the part that stuck with me wasn't the CVSS score. It was how little you had to do wrong.
The short version
CVE-2025-55182, nicknamed React2Shell, is an unauthenticated remote code execution bug in React Server Components. Disclosed December 3, 2025. CVSS 10.0. One HTTP request, no credentials, arbitrary code running as whatever user your Node process happens to be.
The number that matters more than 10.0: you did not have to write any Server Functions to be vulnerable. A default app from create-next-app, built for production, shipped exploitable. No misconfiguration, no risky dependency, no clever footgun on your part. The framework's baseline was the attack surface.
Where the bug actually lives
React Server Components talk to the browser over a wire format React calls the Flight protocol. When you invoke a Server Function from the client, the arguments get serialized, sent over HTTP, and deserialized on the server before your function ever runs.
That deserialization step was the problem. The RSC handler unpacked attacker-controlled data from the request body in a way that let the payload influence server-side execution — before any of your application code got a say. Classic insecure deserialization, just in a place most React developers had never thought about, because it's protocol plumbing rather than something you write.
That's why "I don't use Server Actions" wasn't a defence. The endpoint that parses Flight payloads exists wherever RSC is supported. Your code didn't need to call it for an attacker to reach it.
What was and wasn't affected
Affected: React 19.0.0 through 19.2.0, and anything built on RSC. Next.js App Router was the big one by install count, but the blast radius covered the bundler plugins (webpack, Turbopack, Parcel) and other frameworks that adopted RSC — Vite, Waku, Redwood.
Not affected: Next.js 13.x and 14.x stable, Pages Router applications, and the Edge Runtime. If you'd been putting off the App Router migration, that procrastination quietly paid off.
Next.js published patched versions across every release line — 14.2.35, 15.0.7, 15.1.11, 15.2.8, 15.3.8, 15.4.10, 15.5.9, 16.0.10 — plus npx fix-react2shell-next to check your version and bump it. There was no workaround. You patched or you stayed vulnerable.
Hours, not weeks
The exploitation timeline is the genuinely alarming part. Multiple vendors saw the gap between public disclosure and in-the-wild exploitation measured in hours, not the days or weeks defenders usually get.
Google's threat intel group tracked it across a wide spread of actors — opportunistic crimeware alongside suspected espionage groups — dropping a tunneler called MINOCAT, the SNOWLIGHT downloader, HISONIC and COMPOOD backdoors, and the inevitable XMRIG miners. Wiz saw post-exploitation pivot toward harvesting cloud credentials, which is the move that turns one compromised web server into a much worse week.
That speed is the lesson worth internalising. A patch window that assumes "we'll get to it next sprint" is a patch window built for a threat landscape that no longer exists. When a pre-auth RCE with a public PoC drops on a framework with millions of installs, scanners find you before your ticket gets triaged.
The aftershocks
Researchers picking through the React2Shell patches found two more issues in the RSC protocol: CVE-2025-55183 (source code exposure, medium) and CVE-2025-55184 (denial of service, high). Neither is RCE, and the React2Shell fix held up.
But CVE-2025-55184's first fix was incomplete, and a complete one shipped later as CVE-2025-67779. If you patched early and moved on, you may need to patch again. That's the sort of detail that gets lost when a story stops trending.
The source code exposure one deserves a note: a crafted request could make a Server Function return the compiled source of other Server Functions. Business logic, and any secret you hardcoded rather than read from the environment at runtime — because depending on your bundler config, those get inlined into the compiled output. If you've ever thought "it's fine, it's server-side code, nobody sees it," this is your reminder that server-side is a deployment detail, not a security boundary.
What I actually did
My own answer turned out to be anticlimactic, and only by accident.
I'd migrated this site's backend from Next.js to Go a while before any of this. The frontend is still React and still built by Next.js, but it's a static export — plain HTML, CSS and JS files, served by a Go binary. There is no Node process, no RSC handler, no Flight endpoint. Nothing on my server knows how to deserialize a Server Function payload, because nothing on my server runs React at all.
I want to be clear that this wasn't foresight. I moved to Go because deploying the Node stack on my server was a nuisance — installing Node, corepack, pnpm and pm2, and building 600MB of node_modules on the box every deploy. Reducing attack surface was a side effect I only appreciated in hindsight.
Still, there's a real principle underneath the luck: the parts of your stack that don't run in production can't be exploited in production. A static export isn't the right call for every site — plenty of things genuinely need a server runtime, and RSC solves real problems. But it's worth asking, occasionally, how much of your framework you're actually using, and how much you're just shipping.
If you're still working through this
Check your React version first, not your Next.js version — the bug is upstream in React, and the Next.js CVE (CVE-2025-66478) was rejected as a duplicate precisely because the root cause is shared. Anything on React 19.0.0–19.2.0 with RSC enabled needs attention regardless of which framework wraps it.
Then patch, then go look at your logs. It was on CISA's KEV list and under mass exploitation within hours. "We upgraded" and "we weren't hit" are different claims, and only one of them is answered by your package.json.
Sources: Next.js Security Update, December 11 2025 · Microsoft Security Blog · Google Cloud Threat Intelligence · Rapid7 · Wiz · Tenable