
This repo contains the scripts you can execute to simulate the (CVE-2025-55182) along with next.js server
⚠️ WARNING This repository is for educational and defensive security research only.
Do NOT attempt to run this code against:
Unauthorized exploitation of vulnerabilities can be illegal.
This repository demonstrates the real-world impact of React2Shell (CVE-2025-55182) — a critical Remote Code Execution (RCE) vulnerability affecting React Server Components (RSC) and frameworks such as Next.js.
The demo shows how unsafe deserialization in vulnerable environments can lead to:
All testing was performed locally in a controlled environment.
The demo script contains three isolated examples:
Minimal RCE proof
Filesystem write
Directory enumeration
These examples are intentionally simple to highlight impact, not exploitation.
⚠️ No public deployment is required or recommended.
If you use React Server Components:
This project is intended to raise awareness and help developers understand the severity of RCE vulnerabilities.
The author is not responsible for misuse of this code.