This repository contains a POC of CVE-2025-55182, a critical (CVSS score 10.0) pre-authentication remote code execution vulnerability affecting React Server Components, also known as React2Shell.
## Overview
CVE-2025-55182, known as React2Shell, represents a significant security flaw affecting React Server Components, classified with a critical CVSS score of 10.0. This vulnerability enables unauthenticated attackers to execute arbitrary JavaScript code on vulnerable servers, primarily due to unsafe deserialization in the Flight protocol. With specific versions of React at risk, the need for awareness and proactive mitigation is paramount for developers and organizations using these components.
This proof-of-concept demonstration serves as a critical educational tool within the cybersecurity community, highlighting the mechanisms by which these attacks can be executed. It emphasizes the importance of security protocols and the need for safeguarding against vulnerabilities that allow unauthorized access to sensitive server operations.
## Features
- **Critical CVSS Score:** With a CVSS score of 10.0, this vulnerability is marked as critical, urging immediate attention from developers.
- **Affected Versions:** The vulnerability impacts specific versions of React Server Components, including 19.0.0 to 19.2.0, highlighting its widespread potential for exploitation.
- **Unsafe Deserialization:** The flaw lies in the unsafe deserialization process of the Flight protocol, which can be exploited to gain unauthorized access.
- **Prototype Chain Traversal:** Attackers can manipulate the JavaScript prototype chain, allowing them to access properties not intended for exposure and execute arbitrary code.
- **Flexibility of Exploitation:** Requires only a vulnerable environment and a crafted payload, making it accessible for potential attackers using tools like Burp Suite.
- **Educational Purpose:** As a proof-of-concept, it serves as a valuable resource for security researchers, fostering a better understanding of vulnerabilities in server components.