The RSC remote-code-execution bug
In December 2025 a critical flaw in the React Server Components (RSC) protocol was disclosed: CVE-2025-66478 in Next.js, originating upstream in React as CVE-2025-55182. It was rated CVSS 10.0 — the maximum severity — and it allowed remote code execution on unpatched servers.
The RSC protocol is the wire format between server and client: the server streams the rendered component tree down, and the client sends updates back up. Parsing that payload is server-side work, and it runs on attacker-controlled input. In the affected versions a crafted request could steer the deserialization onto a server-side execution path the framework never intended, and because that path runs code, an attacker could execute their own.
That is why the server/client boundary is also a trust boundary: everything crossing it from the client is untrusted, so the code that deserializes the RSC payload is part of the attack surface. (An earlier Lesson covers the boundary as a trust surface; this Lesson is the incident.)
The vulnerability was fixed across the supported release lines. The current patched releases — 16.4.5 and 15.5.29, from the November 2026 security release — include the hardened RSC protocol, as do the earlier fix releases such as 15.5.7 and 16.0.7. There was no configuration workaround: upgrading was the only remedy.
npm install next@16.4.5 # includes the hardened RSC protocol
You are about to answer a short quiz on CVE-2025-66478 / CVE-2025-55182.