
A CTF challenge based on CVE-2025-55182 Vulnerability

Welcome to React2Shell-CTF, a Dockerized environment designed to practice exploiting React2Shell (CVE-2025-55182).
React2Shell is a critical vulnerability affecting React-based applications. This repository provides a safe, locally deployable Capture The Flag (CTF) challenge to help you understand and mitigate this flaw. Can you pop a Reverse Shell? 🐚
For a full technical explanation of CVE-2025-55182, please visit the official informational website:
IMPORTANT! READ BEFORE PROCEEDING
This project is created strictly for educational and learning purposes.
Using this material to attack targets without prior mutual consent is illegal.
Stuck? Check out the step-by-step guides (now with Native Node.js Payload!):
The vulnerability (CVE-2025-55182) exists in how the React Server Components deserializer handles specific object properties.

POST request._response._prefix property is mistrusted by the server. Instead of treating it as data, the server evaluates it as code.eval() allows arbitary Javascript execution, leading to Remote Code Execution (RCE) and full system compromise.git clone https://github.com/yz9yt/React2Shell-CTF.git
cd React2Shell-CTF
sudo docker-compose up --build
Note: Use
--buildto ensurenetcatis installed for the Reverse Shell challenge!
The challenge will be available at: http://localhost:5555
server.js code.Happy Hacking! 🕵️♂️
Created by @yz9yt 🐦