React2Shell RCE
CVE-2025-55182, known as React2Shell, is a pre-authentication remote code execution flaw in React Server Components. react-server-dom-webpack versions 19.0.0 through 19.2.0 unsafely deserialize payloads sent to Server Function endpoints, so a single crafted multipart request runs attacker JavaScript on the server. It carries CVSS 10 and is in the CISA KEV catalog.
How to reach it
Run the challenge locally with its docker-compose. The flagger sidecar writes your per-run flag to /flag/flag.txt inside the container, readable once you have code execution. The app is a small Next.js feedback portal listening on port 8080.
Run this challenge
Spin it up locally with Docker. The flagger sidecar fetches a per-run flag into a shared volume, then the challenge container boots and reads it.
services:
flagger:
image: matejbasic/rootcause-flagger:1.0
environment:
ROOTCAUSE_API_URL: https://root-cause-api.matejbasic.com
ROOTCAUSE_API_KEY: ${ROOTCAUSE_API_KEY}
ROOTCAUSE_CHALLENGE: react2shell
FLAG_PATH: /flag/flag.txt
volumes:
- flag:/flag
challenge:
image: matejbasic/cve-2025-55182:1.0
depends_on:
flagger:
condition: service_completed_successfully
environment:
FLAG_PATH: /flag/flag.txt
volumes:
- flag:/flag
ports:
- "8080:8080"
volumes:
flag:
rootcause start react2shellThe rootcause CLI does all of this in one command. Running a challenge needs your API key, which you generate in your profile.