
Educational repository for learning CVE-2025-55182: a pre-authentication RCE in React Server Components. Includes step-by-step documentation, hands-on exercises, and a proof-of-concept exploit in a vulnerable Dockerized Next.js app.
A repository for learning about the Remote Code Execution (RCE) vulnerability in React Server Components.
For educational purposes only. Using it against others' systems without permission is illegal.
| Item | Description |
|---|---|
| CVE ID | CVE-2025-55182 |
| Type | Pre-authentication Remote Code Execution (RCE) |
| CWE | CWE-502: Deserialization of Untrusted Data |
| CVSS | 10.0 (Critical) |
| Affected | React 19.0.0 - 19.2.2 |
.
├── docs/ # 📚 学習ドキュメント(Step 1-4)
├── exercises/ # 🧪 演習スクリプト
├── exploit/ # 💀 PoC スクリプト
└── vulnerable-app/ # 🎯 脆弱なNext.jsアプリ
cd vulnerable-app
docker compose up --build -d
cd exploit
pip install -r requirements.txt
python3 poc.py http://localhost:3000 "id"
uid=0(root) gid=0(root) groups=0(root)...
🎉 RCE Success!
Documents to understand the vulnerability step by step:
| Step | Topic | File |
|---|---|---|
| 1 | Prototype Pollution Basics | docs/01_prototype_pollution_basics.md |
| 2 | Constructor Chain and RCE | docs/02_constructor_chain.md |
| 3 | React Flight Protocol | docs/03_react_flight_protocol.md |
| 4 | Vulnerability Overview and Fix | docs/04_vulnerability_summary.md |
# Step 1: Experience Prototype Pollution
node exercises/01_prototype_pollution.js
# Step 2: Understand Constructor Chain
node exercises/02_constructor_chain.js
# Step 3: Simulate reference resolution
node exercises/03_reference_resolution.js
# Step 4: Full exploit analysis
node exercises/04_full_exploit_analysis.js
# Update React to the latest version
npm install react@latest react-dom@latest
Fixed versions: 19.0.3+, 19.1.4+, 19.2.3+