2 min read
React2Shell: the patch that needed patches
A CVSS 10 in React Server Components, public exploits a day later, and two rounds of follow-up fixes. What happened, and which versions you actually need now.
On 3 December 2025, the React team disclosed CVE-2025-55182, soon known as "React2Shell": an unauthenticated remote code execution in React Server Components, rated CVSS 10.0. One crafted HTTP request to a server could run code on it. Public exploits appeared the next day.
Two months later, it's worth looking back, because the story didn't end with the first patch.
What was wrong
React decoded payloads sent to Server Function endpoints unsafely, and a crafted payload could make the server execute code. The affected packages were react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack in React 19.0 to 19.2.0. That reached every framework built on them: Next.js 15 and 16, React Router's RSC mode, Waku, the Vite and Parcel RSC plugins.
The detail that caught many teams: you didn't need to use Server Functions yourself. In the React team's words: "Even if your app does not implement any React Server Function endpoints it may still be vulnerable if your app supports React Server Components."
The follow-ups
Patches went out the same day. A week later, on 11 December, the team disclosed more problems in the same area: two denial-of-service bugs, where one request could hang the server in an infinite loop, and a source code leak. On 26 January, a third DoS fix followed. None of these allowed code execution, but they meant the first fixed versions weren't the last.
React 19.0.4, 19.1.5 or 19.2.4. For Next.js, the latest patch of your release line, for example 15.5.10, 16.0.11 or 16.1.5. If you upgraded in December and stopped there, upgrade again.
Platform protection is not a patch
Vercel deployed WAF rules before the disclosure and blocked new deployments of vulnerable versions. That helped, but Vercel itself said not to rely on it: WAF rules "cannot guarantee protection against all possible variants". Self-hosted apps had no such layer at all. If you run Next.js on your own server, on a VPS or in a container, the update was the only protection.
Takeaways
- Server Components are a server feature. Patch them like your backend, not like a UI library.
- After a critical fix, watch for follow-ups. The first patch is often not the last.
- A WAF buys time. Only an update closes the hole.