
CVE Reproduction: cve-2025-55182-react2shell_reproduction
CVSS 10.0 CRITICAL | Pre-Auth Remote Code Execution in React Server Components
Discovered by Chinese threat actors. Actively exploited by China-nexus APT groups.
Dubbed "React2Shell", this vulnerability enables unauthenticated remote code execution via unsafe deserialization in the React Server Components (RSC) "Flight" protocol. Exploitation is trivial and requires no authentication.
The RSC Flight protocol deserializes untrusted data without validation, falling under CWE-502 (Deserialization of Untrusted Data). Attackers craft a malicious serialized payload that, when processed by the server, triggers a module resolution hijack — directing module imports to attacker-controlled code that executes in the server runtime.
| Product | Affected Versions |
|---|---|
| React | 19.0.0 – 19.2.0 |
| Next.js | 15.x, 16.x |
/_rsc/, /_flight/, or Next.js Server Action endpoints).POST request containing the malicious serialized payload to the RSC endpoint.python exploit.py --target https://example.com --port 443 --command "id"
Upgrade immediately:
>= 19.0.1, >= 19.1.2, or >= 19.2.1No workarounds exist; patching is the only remediation.