Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/big02-bot/react2shell-cve-2025-55182-an-lise-t-cnica
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityLearning & EducationLabs & Practice
GitHubbig02-bot/react2shell-cve-2025-55182-an-lise-t-cnica

React2Shell-CVE-2025-55182-An-lise-T-cnica

Educational technical analysis of CVE-2025-55182, a critical unauthenticated RCE in React Server Components and Next.js via React Flight deserialization, covering root cause, impact, detection, and mitigation.

View Repository
17 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

React2Shell (CVE-2025-55182)

📖 Overview

This repository documents the security concepts studied in the TryHackMe room regarding CVE-2025-55182, a critical vulnerability affecting:

  • React Server Components (RSC)
  • Next.js and RSC-based frameworks
  • Packages:
    • react-server-dom-webpack
    • react-server-dom-parcel
    • react-server-dom-turbopack

The flaw enables:

Unauthenticated remote code execution through a single crafted HTTP request.

This material is intended exclusively for educational and defensive purposes, and does not contain answers, flags, or a complete walkthrough of the platform.


🏗️ Architecture Involved

Simplified RSC rendering flow

root@kitploit:~
[ Browser ]
       │
       ▼
[ React Flight Request ]
       │
       ▼
[ Next.js / RSC on Server ]
       │
       ▼
[ Node.js Runtime ]
       │
       ▼
[ Operating System ]

React Server Components, introduced in React 19, allow:

  • Rendering components on the server
  • Reducing client-side JavaScript
  • Better performance and scalability

🧠 React Flight Protocol

Responsible for:

  • Serialization of server data
  • Deserialization of client requests
  • Execution of Server Actions

Relevant markers

MarkerFunction
$@Reference to chunk
$BReference to Blob
$1:constructor:constructorAccess to prototype chain

🚨 CVE-2025-55182 — Root Cause

Conceptual vulnerable snippet:

root@kitploit:~
moduleExports[metadata[2]]

This JavaScript access:

  • traverses the prototype chain
  • can reach the Function constructor
  • allows arbitrary code execution

Impact chain

root@kitploit:~
Insecure deserialization
        ↓
Access to prototype chain
        ↓
Invocation of Function()
        ↓
Remote Code Execution (RCE)

Result:

Full compromise of the execution environment.


🔗 Conceptual Exploitation Flow (High Level)

⚠️ No lab steps — only technical analysis.

root@kitploit:~
Manipulated serialized payload
            ↓
Processing by React Flight
            ↓
Prototype chain traversal
            ↓
Dynamic JavaScript function creation
            ↓
Code execution on Node.js

Possible consequences:

  • reading sensitive files
  • accessing environment variables
  • executing system commands
  • lateral movement in cloud environments

🧪 Educational Context Checks

In authorized test environments, initial confirmations may involve:

root@kitploit:~
id        # process user
uname -a  # system information
pwd       # current directory
ls -la    # local files
env       # environment variables

These commands serve only to:

confirm the presence of remote execution,
they do not represent the complete room procedure.


🌐 Affected Versions

Vulnerable

React

  • 19.0.0
  • 19.1.0
  • 19.1.1
  • 19.2.0

Next.js

  • ≥ 14.3.0-canary.77
  • 15.x and 16.x series before patch

Fixed

Update to:

  • 19.0.1
  • 19.1.2
  • 19.2.1

🛡️ Detection and Monitoring

Network Indicators

Possible signs of exploitation:

  • unusual POST multipart/form-data requests
  • specific React Flight headers
  • serialized structures with prototype chain access

These patterns are:

rare in legitimate traffic,
making them strong attack indicators.


Endpoint and CI/CD Security

Good defensive practices:

  • audit react-server-dom-* dependencies
  • identify vulnerable versions
  • monitor build pipelines

Early detection significantly reduces production risk.


📉 Security Impact

CVE-2025-55182 is critical because:

  • requires no authentication
  • has high exploit reliability
  • affects widely used technologies

Demonstrating that:

subtle deserialization flaws can result in full RCE.


📚 Learning Objectives

The room emphasizes:

  • internal architecture of React Server Components
  • real-world remote code execution chains
  • detection and mitigation strategies
  • relationship between modern frontend and backend security

⚠️ Ethical Use

Content intended for:

  • cybersecurity education
  • responsible research
  • defensive strengthening

Exploiting systems without authorization is illegal.


🏁 Conclusion

React2Shell (CVE-2025-55182) shows that:

modern framework abstractions can hide
critical security boundaries.

Understanding these layers is essential for:

  • pentesters
  • defenders (SOC / Blue Team)
  • secure software engineers
Download Tool