Skip to content
Prototype pollution Write-up Advanced

CVE-2025–55182 (React2Shell): Vulnerable Docker Container with

The text describes a training lab about a React Flight Protocol flaw where crafted serialised stream data can tamper with the JavaScript object prototype. The lab claims this prototype pollution can be escalated to remote code execution, but no actual reproduction detail is given.

Josh Beck Follow

Published on medium.com

This is a Deep-Dive Lab that demonstrates exactly why CVE-2025–11582(React2Shell) is a critical vulnerability. Before writing this lab, I was unfamiliar with React Flight Protocol.

Josh Beck, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the React Flight deserialiser allowed attacker-controlled stream data to modify the global object prototype, which the lab says is now patched.

What the attacker needed

Access to a vulnerable React server

The fix

The text says current React versions were patched so users can no longer tamper with prototypes.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

React can send data from the server to the browser in a streaming format. The lab says a flaw let an attacker send specially shaped data that changed built-in JavaScript behaviour, and from there run their own code on the server. The text is a lesson plan, so it does not show the actual request.

What is Prototype pollution?

Input changes JavaScript's shared object prototype, altering behaviour across the application, sometimes to XSS or code execution.

More by Josh Beck

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Prototype pollution

The lesson behind this report.

Input changes JavaScript's shared object prototype, altering behaviour across the application, sometimes to XSS or code execution.