← All field notes

How to Patch React2Shell in Next.js, Containers and Kubernetes

Review Next.js and React Server Components versions, update dependencies, rebuild container images, roll out the fix and rotate exposed secrets.

React2Shell patch guide for Next.js, dependency updates, container redeployment and secret rotation.

React2Shell (CVE-2025-55182) is a CVSS 10.0 remote code execution flaw in React Server Components. It has been in CISA's Known Exploited Vulnerabilities catalog since December 2025, and any app that missed the fix is still exposed today. This guide shows how to check your app, patch it, ship the fix through containers and Kubernetes, and clean up afterwards.

If you missed the background, read our breakdown of the October 2026 2Shell attacks first.

Before you start: what "patched" means

Next.js (App Router), fixed releases:

  • 16.0.x: 16.0.10

  • 15.5.x: 15.5.9

  • 15.4.x: 15.4.10

  • 15.3.x: 15.3.8

  • 15.2.x: 15.2.8

  • 15.1.x: 15.1.11

  • 15.0.x: 15.0.7

  • 14.x: 14.2.35

React Server Components packages (react-server-dom-webpack, -parcel and -turbopack):

  • 19.2.x: 19.2.3

  • 19.1.x: 19.1.4

  • 19.0.x: 19.0.3

Any framework that uses React Server Components is affected, including React Router's RSC mode, Waku, RedwoodSDK and RSC plugins for Vite and Parcel. Apps that only render React in the browser are not.

Part 1: Patch the application code

Check what you are running

From your app's root folder:

bash
npm ls next react react-server-dom-webpack react-server-dom-turbopack react-server-dom-parcel

Compare each version with the list above. With pnpm or yarn, use pnpm why next or yarn why next instead.

Upgrade with Vercel's fix tool

Vercel publishes a tool that finds and upgrades vulnerable packages:

bash
npx fix-react2shell-next

1 of 3 sections shown

Anees Khan

Co-Founder & CTO at Turf Dev, focused on Kubernetes, platform engineering, cloud infrastructure, and production reliability. I write about real-world infrastructure problems, how we investigate them, and the engineering approaches used to solve them.

Meet Turf Dev ↗

Discussion

Have a question or something to add? Share it below.

Comments appear immediately. Please keep the discussion respectful.

No comments yet. Be the first to join the discussion.

Keep exploring

More from the field.

All articles ↗

Platform Mandate

Request Architecture Review

Review platform posture, reliability constraints, and cost governance priorities with an infrastructure engineering team.

Request Architecture Review