From Recon to Remote Code Execution : My Encounter with React2Shell (CVE-2025–55182)
A React Server Components remote code execution vulnerability (CVE-2025-55182) was found in a web application running React 19.0.0 and Next.js 15.1.6. An attacker could exploit it to gain access to the server-side environment and sensitive information including password-related data.
Information Security
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.
Context
This is an account of an independent web application security project against a target referred to only as redacted.com. The report does not describe the product or the business behind the application. What it does describe is a frontend stack built on React and Next.js, and a vulnerability class tied to React Server Components and their server-side request processing: CVE-2025-55182, commonly called React2Shell.
React2Shell is described in the report as a critical remote code execution vulnerability associated with React Server Components. The underlying issue, as the author frames it, is not simply that React is in use, but how specially crafted data is processed by the vulnerable server-side components, which can potentially let an attacker achieve remote code execution. A frontend technology stack that initially looked like just another fingerprint became a much more serious attack surface.
Setup
The work started with reconnaissance, including Nmap scans, to map exposed services and the overall attack surface. Active scanning followed with Burp Suite and Nuclei. The report does not give the versions of these tools, nor any account or role on the target; The report does not state the position or any account used for testing.
The version fingerprints observed during the investigation were:
- React: 19.0.0
- Next.js: 15.1.6
Both versions aligned with the affected software stack for React2Shell, according to the report.
Finding it
The first pass produced a few low-hanging fruits, as the author calls them:
- Debug mode exposed.
- Missing Secure flags on cookies.
- A few other observations that deserved attention.
None of these immediately looked critical, but they were enough to keep digging. The author then moved to active scanning with Burp Suite and Nuclei, and both tools flagged the same vulnerability: CVE-2025-55182, React2Shell.
Scanner findings were treated as starting points, not confirmed vulnerabilities. The author went back to Burp to inspect the traffic manually. While reviewing request and response behaviour, the relevant RPC interaction was noticed, and the application's behaviour was correlated with the framework and library versions. That correlation produced the React 19.0.0 and Next.js 15.1.6 fingerprints above, which matched the affected stack.
At that point there were multiple indicators pointing in the same direction, and the next step was to validate the finding rather than trust the tools.
Exploitation
Step 1: Review the RPC interaction in Burp
The author reviewed the relevant request behaviour in Burp and correlated the detected versions. The report does not reproduce the request or response, so the exact endpoint, parameters and headers involved are not shown here.
Step 2: Reference public research and a proof of concept
Validation used publicly available research and a proof-of-concept as a reference. The repository used for research was:
https://github.com/ThemeHackers/CVE-2025-55182
The stated goal was not to blindly execute a PoC, but to correlate the scanner output, application behaviour, version information and the vulnerability mechanics to establish whether the finding was legitimate.
Step 3: Validate and exploit
After successfully validating and exploiting the vulnerability, the author was able to gain access to the server-side environment and explore the extent of the exposure. What had started as a version-based suspicion and a scanner alert became a confirmed compromise of the server-side execution environment.
The report does not include the payload, the command output or the specific server-side data retrieved. It states only that the exposure allowed access to sensitive server-side information, including password-related data.
Root cause
The report attributes the issue to how specially crafted data is processed by the vulnerable server-side components in React Server Components, which can potentially allow remote code execution. It does not analyse the vulnerable code path itself, so the precise defect is not described here.
The only related observations are the low-hanging fruits found during recon, namely exposed debug mode and cookies missing the Secure flag. The report does not claim either of these contributed to the RCE.
Impact
The confirmed impact was access to the server-side execution environment and to sensitive server-side information, including password-related data. The author describes this as far more significant than the initial misconfigurations found during recon, and as a much more serious issue than a typical misconfiguration.
The report does not quantify how many users or records were affected, nor does it state the exact data beyond password-related information.
Fix
It states that the impact was documented, the evidence consolidated, and the critical vulnerability together with the additional security observations were communicated to the client immediately, highlighting the severity and the urgency of remediation. The client was notified and the vulnerability was mitigated urgently. The specific mitigation is not described.
Variants to test
The report's method is reusable even though its payloads are not published. Concrete things to try on other targets:
- Fingerprint React and Next.js versions from responses and static assets. A positive result is a version pair that matches the affected stack for React2Shell, as the report describes.
- Run both an active scanner and a manual review of RPC traffic. A positive result is the same finding from two independent sources, plus a visible RPC interaction in Burp that you can correlate with the detected versions.
- Correlate scanner output with application behaviour before exploiting. A positive result is a finding backed by scanner output, application behaviour, version information and the vulnerability mechanics, rather than a bare scanner alert.
- Check for the low-hanging fruits seen here on other targets. A positive result is exposed debug mode or cookies set without the Secure flag, which are worth reporting on their own even when they are not the critical finding.
Happy hunting. Stay curious, stay ethical, and always validate your findings.
What happened, in plain words
A security researcher was working on an independent web application security project against a website, referred to only as redacted.com. The report does not say what the site sells or who runs it. It only says the site's front end was built with two popular pieces of software, React and Next.js, and that this combination carried a serious flaw called React2Shell (its official identifier is CVE-2025-55182).
The researcher started with reconnaissance, including Nmap scans, to see what the site exposed. That first pass turned up a few small mistakes, nothing dramatic. Then two different scanning tools, Burp Suite and Nuclei, both pointed at the same serious flaw. Instead of trusting the tools, the researcher checked the site by hand, confirmed the software versions were the kind affected, and then used public research to actually break in. The break-in gave access to the server-side environment and to sensitive server-side information, including password-related data. The client was told straight away and the vulnerability was mitigated urgently.
That is the whole story. The rest of this article walks through it slowly, explaining every term along the way.
The setting: what was being tested
The target is called redacted.com in the report. The name is hidden on purpose: when a researcher writes up a real job, they usually cannot name the client, so they replace the name with a placeholder. Everything else about the site is described only in terms of the software it runs.
That software is a frontend stack. A website is usually split into two halves:
- The frontend is what your browser downloads and draws: buttons, text, forms. It runs on your computer.
- The backend is the program on a server somewhere that stores data and answers questions from the frontend. It runs on the company's machine.
A stack just means the collection of technologies used together. Here the stack was React and Next.js.
React is a JavaScript library for building user interfaces. Think of it as a box of ready-made parts for assembling a web page: a button part, a list part, a form part. Instead of writing every piece of the page by hand, a developer composes these parts.
Next.js is a framework built on top of React. If React is the box of parts, Next.js is the workshop, the instructions and the power tools that let you assemble a whole website from those parts, including the parts that run on the server rather than in the browser.
One feature matters for this story: React Server Components. Normally, when you load a page, your browser downloads the React code and does the assembling itself. With Server Components, some of that assembling happens on the server first, and the result is sent to your browser. This is faster, but it means the server is now accepting instructions from the outside about what to build. Any time a server accepts instructions from outside, there is a risk that someone sends instructions it did not expect.
The vulnerability class: remote code execution
Before the specific bug, the general category. Remote code execution, usually shortened to RCE, means an attacker can make a server run commands of their choosing, from a distance, over the network. It is generally considered the most severe kind of web vulnerability, because once you can run commands on a machine, you can usually read its files, look at its data and move further.
An everyday comparison: imagine a restaurant where customers fill in an order slip. Normally the kitchen reads the slip and cooks the dish. RCE is what happens when a customer writes something on the slip that the kitchen mistakes for an instruction to the staff, such as "hand over the keys to the safe", and the staff obey. The slip was only ever supposed to carry a dish name.
CVE-2025-55182, nicknamed React2Shell, is described in the report as a critical RCE vulnerability associated with React Server Components and how they process requests on the server side. The report is careful about the cause: the problem is not simply that React was in use. The problem is how specially crafted data is processed by the vulnerable server-side components. Crafted input, in other words, can potentially lead the server to execute code.
A CVE is a public catalogue number for a known security flaw. Think of it like a registration plate for a vulnerability: anyone in the world referring to "CVE-2025-55182" means exactly this one bug, and no other. The nickname React2Shell is just a memorable label for the same thing.
A proof of concept, or PoC, is a small demonstration that a vulnerability really works, usually published by researchers so others can check their own systems. It is not a weapon by itself; it is evidence that the flaw is real.
Step 1: Reconnaissance
Reconnaissance, or recon, is the first phase of any security test: finding out what is there before trying to break anything. A burglar analogy is often used, but a fairer one is a surveyor walking around a building noting doors, windows and alarm boxes before anyone discusses locks.
The researcher ran Nmap scans. Nmap is a free tool that probes a machine over the network and reports which services are listening. A service here means a program on the server that answers requests on a particular channel, called a port. If a server is a building, ports are numbered doors, and Nmap is the person walking past each door noting whether it is open and who is standing behind it.
The purpose of this pass was to map the attack surface: the total set of things an outsider can interact with. Every open door, every form, every endpoint is part of the attack surface. The bigger it is, the more there is to check.
The small findings
The first pass produced what the author calls low-hanging fruits: problems that are easy to spot and easy to exploit, but usually not catastrophic on their own. The report lists:
- Debug mode exposed. Many web frameworks have a debug mode, a setting developers switch on while building the site. It makes the software print extra detail about what it is doing, which is helpful when you are the developer and unhelpful when you are an outsider, because that detail can reveal how the site is built. Leaving it on in a live site is like leaving the architect's blueprints taped to the front door.
- Missing Secure flags on cookies. A cookie is a small piece of data a website asks your browser to store and send back with every request. It is how a site remembers who you are between page loads. The Secure flag is an instruction attached to a cookie saying "only send this over an encrypted connection". Without it, the cookie can travel over an unencrypted connection, where someone on the same network could read it. The report does not say which cookies were affected or what they contained.
- A few other observations that deserved attention. The report does not list them.
None of these looked critical. But they were enough reason to keep looking, which is the right instinct: small mistakes often sit next to bigger ones.
Step 2: Active scanning with two tools
Having mapped the surface, the researcher moved to active scanning. Where recon is passive observation, active scanning means sending test requests designed to provoke a reaction, and watching for known patterns.
Two tools were used:
- Burp Suite is a widely used tool for intercepting and inspecting web traffic. It sits between your browser and the website, like a recording device on a phone line, letting you see and change every request and response.
- Nuclei is a scanner that runs a large library of ready-made checks against a target, each check looking for a specific known weakness.
Both tools flagged the same thing: CVE-2025-55182, React2Shell.
That agreement is what made the researcher take notice. A single scanner alert is a hint. Two independent tools reporting the same flaw is a stronger hint, though still only a hint.
Step 3: Checking by hand
The report makes a point that is worth repeating for anyone starting out: a scanner finding is not a confirmed vulnerability. Scanners work by pattern matching. They can be fooled by a version number that looks affected but is not, or by a page that merely resembles a vulnerable one. A finding is a lead, not a conclusion.
So the researcher went back to Burp and read the traffic manually. While reviewing how requests and responses behaved, the relevant RPC interaction was noticed.
RPC stands for remote procedure call. It is a way for one program to ask another program to run a function, as if the function were local. In a web context, it usually means the browser sends a structured message to the server saying "run this piece of logic for me", and the server replies with the result. With React Server Components, this kind of structured exchange is how the browser and server coordinate what to render.
That interaction is the interesting part, because it is where the application's behaviour could be correlated with the detected versions. The researcher then correlated the application's behaviour with the versions of the frameworks and libraries in use. To correlate here simply means to line up several separate observations and check whether they tell the same story.
The version fingerprints found were:
- React: 19.0.0
- Next.js: 15.1.6
A version fingerprint is the process of working out which version of a piece of software a site is running, usually from clues in its responses or its static files. It matters because vulnerabilities are tied to versions: a flaw fixed in one release is present in the releases before it. Both versions above matched the affected stack for React2Shell, according to the report.
At that point there were several indicators pointing the same way: two scanners, a visible RPC exchange, and matching version numbers. The next step was to validate rather than trust.
Step 4: Using public research
To validate, the researcher reviewed the relevant request behaviour in Burp, correlated the detected versions, and used publicly available research and a proof of concept as a reference. The repository used for research was:
https://github.com/ThemeHackers/CVE-2025-55182
Line by line, in plain words:
https://is the address scheme for a secure web connection.github.comis a website where people publish and share code, often openly.ThemeHackersis the account or organisation that published this repository.CVE-2025-55182is the catalogue number of the vulnerability, so the repository is named after the bug it concerns.
A repository on GitHub is a folder of code and notes that anyone can read. Researchers publish these so that defenders can test their own systems and understand what to fix. The report does not reproduce the contents of this repository.
The stated goal was not to run the proof of concept blindly and declare victory. It was to line up four things: what the scanners said, how the application actually behaved, what versions were running, and how the vulnerability is described to work. This is the difference between testing and guessing.
Step 5: Validating and exploiting
After validating and exploiting the vulnerability, the researcher gained access to the server-side environment and explored how far the exposure went.
A server-side environment means the actual machine, or the space on it, where the backend code runs. Getting in there is a big step up from a misconfiguration: the exposure is no longer just a configuration issue.
The report does not include the payload used, the command output, or the specific data retrieved. It states only that the exposure allowed access to sensitive server-side information, including password-related data.
What started as a version-based suspicion and a scanner alert had become a confirmed compromise of the server-side execution environment.
Impact
The confirmed impact was twofold: access to the server-side execution environment, and access to sensitive server-side information including password-related data. The author describes this as far more significant than the initial misconfigurations found during recon, and as a much more serious issue than a typical misconfiguration.
That comparison is the useful lesson. Exposed debug mode and cookies without the Secure flag are real problems, but the author describes the RCE as far more significant. An RCE that exposes password-related data is the kind of thing you fix now. The report does not quantify how many users or records were affected.
Fix
What it describes is the process: the impact was documented, the evidence consolidated, and the critical vulnerability together with the additional security observations were communicated to the client immediately, highlighting the severity and the urgency of remediation. The client was notified, and the vulnerability was mitigated urgently. The specific mitigation is not described.
Remediation means the act of fixing the problem. Mitigation means reducing the risk, which is not always the same as a full fix: sometimes you block the route in while you prepare the proper repair.
Variants to test
The report's method can be reused even though its payloads are not published. Concrete things to try on other targets:
- Fingerprint React and Next.js versions from responses and static assets. A positive result is a version pair that falls within the affected range for React2Shell, matching what the scanners report.
- Run both an active scanner and a manual review of RPC traffic. A positive result is the same finding from two independent sources, plus a visible RPC interaction in Burp that you can correlate with the detected versions.
- Correlate scanner output with application behaviour before exploiting. A positive result is a request whose response changes in a way consistent with the vulnerability mechanics described in public research, rather than a bare scanner alert.
- Check for the low-hanging fruits seen here on other targets. A positive result is exposed debug mode or cookies set without the Secure flag, which are worth reporting on their own even when they are not the critical finding.
Happy hunting. Stay curious, stay ethical, and always validate your findings.
Glossary
- Active scanning: sending test requests designed to provoke a reaction, and watching for known patterns, rather than only observing.
- Attack surface: the total set of things an outsider can interact with on a system.
- Backend: the part of a website that runs on the company's server, storing data and answering requests.
- Burp Suite: a tool for intercepting, inspecting and modifying web traffic between a browser and a site.
- Cookie: a small piece of data a site asks your browser to store and send back with each request, used to remember who you are.
- Correlate: to line up several separate observations and check whether they tell the same story.
- CVE: a public catalogue number for a known security vulnerability.
- Debug mode: a developer setting that makes software print extra detail about its internal workings.
- Exploit: to actually use a vulnerability to achieve an effect, such as running code on a server.
- Fingerprint (version): working out which version of a piece of software a site runs, usually from clues in its responses or files.
- Frontend: the part of a website that your browser downloads and draws.
- Frontend stack: the collection of technologies used together to build a site's front end.
- Low-hanging fruit: an easy-to-spot, easy-to-exploit problem that is usually not catastrophic on its own.
- Mitigation: reducing the risk of a problem, which is not always the same as a full fix.
- Next.js: a framework built on top of React for assembling whole websites, including parts that run on the server.
- Nmap: a tool that probes a machine over the network and reports which services are listening.
- Nuclei: a scanner that runs a large library of ready-made checks against a target.
- Payload: the crafted input sent to a system to trigger a vulnerability.
- Port: a numbered channel on a server through which a particular service answers requests.
- Proof of concept (PoC): a small demonstration that a vulnerability really works.
- React: a JavaScript library for building user interfaces out of reusable parts.
- React Server Components: a React feature where some of the page is assembled on the server before being sent to the browser.
- React2Shell: the nickname for CVE-2025-55182, a critical remote code execution vulnerability associated with React Server Components.
- Reconnaissance (recon): the first phase of a security test, finding out what is there before trying to break anything.
- Remediation: the act of fixing a problem.
- Remote code execution (RCE): a vulnerability that lets an attacker make a server run commands of their choosing over the network.
- Repository: a folder of code and notes published for others to read, often on GitHub.
- RPC (remote procedure call): a way for one program to ask another to run a function, as if the function were local.
- Secure flag: an instruction on a cookie saying it should only be sent over an encrypted connection.
- Server-side environment: the machine, or the space on it, where the backend code runs.
- Service: a program on a server that answers requests on a particular port.
- Validation: confirming that a scanner finding is a real vulnerability, by checking behaviour and versions rather than trusting the alert.