
A self-hosted vulnerable Next.js environment running on Docker for simulating CVE-2025-55182. Built for educational security research and CTF practice.
⚠️ WARNING: INTENTIONALLY VULNERABLE APPLICATION
This repository contains a Dockerized application specifically configured to be vulnerable to CVE-2025-55182 (React2Shell).
- DO NOT deploy this container in a production environment or on a public server exposed to the internet.
- DO NOT run this on a machine containing sensitive data without proper network isolation.
- This lab is strictly for educational purposes, security research, and CTF simulations.
This lab is designed as a Simple Web to Root scenario, perfect for beginners to practice vulnerability exploitation and basic privilege escalation.
user.txtroot.txtReact2Shell (CVE-2025-55182) is a maximum severity (CVSS 10.0) Critical Remote Code Execution (RCE) vulnerability found in React Server Components (RSC) and its downstream implementation in the Next.js framework.
The vulnerability exists in how React handles Server Actions. An unauthenticated attacker can execute arbitrary code on the server by sending a single, specially crafted HTTP request. This bypasses the intended security boundaries of Server Components.
Based on the official advisory, the following components are affected:
1. React Server DOM (Versions 19.0, 19.1.0, 19.1.1, 19.2.0)
react-server-dom-webpackreact-server-dom-parcelreact-server-dom-turbopack2. Next.js Framework
✅ Safe Configurations: Applications using React 18 (standard in Next.js 14 and below) are NOT AFFECTED by this specific vulnerability.
This lab utilizes Docker to ensure a safe, isolated, and reproducible environment. No local Node.js setup is required.
Clone the Repository
git clone https://github.com/xxxTectationxxx/React2Shell-CVE-Lab.git
cd React2Shell-CVE-Lab
Launch the Victim Container
We pull the pre-configured image directly from Docker Hub (agus33ina/web3-portfolio:v1):
docker compose up -d
Access the Target Open your browser or Burp Suite and navigate to:
http://localhost:3000
Exploitation Notes
Shutdown
docker compose down
3000For a deeper dive into the exploit chain and technical details, refer to:
Maintained by Agus33ina.