<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/critical-vulnerability-in-react-server-components-immediate-action-required-u5kc8xlhs" -->

---
title: Critical Vulnerability in React Server Components:...
description: React2Shell (CVE-2025-55182) is a critical remote code execution vulnerability with a CVSS score of 10.0, affecting React 19.0-19.2.0 and Next.js 15.x-16.x....
canonical: https://daily.dev/posts/critical-vulnerability-in-react-server-components-immediate-action-required-u5kc8xlhs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Critical Vulnerability in React Server Components: Immediate Action Required | daily.dev
og:description: React2Shell (CVE-2025-55182) is a critical remote code execution vulnerability with a CVSS score of 10.0, affecting React 19.0-19.2.0 and Next.js 15.x-16.x....
og:url: https://daily.dev/posts/critical-vulnerability-in-react-server-components-immediate-action-required-u5kc8xlhs
og:image: https://api.daily.dev/og/posts/u5kc8XLhS.png
og:image:alt: Critical Vulnerability in React Server Components: Immediate Action Required
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Critical Vulnerability in React Server Components: Immediate Action Required

**[Collections](https://daily.dev/sources/collections)** · 2 min read · 475 upvotes · 18 comments

## Summary

React2Shell (CVE-2025-55182) is a critical remote code execution vulnerability with a CVSS score of 10.0, affecting React 19.0-19.2.0 and Next.js 15.x-16.x. The flaw stems from unsafe deserialization in React's Flight protocol, allowing unauthenticated attackers to execute arbitrary code through crafted HTTP requests. State-sponsored groups and cybercriminals are actively exploiting it to deploy cryptocurrency miners and backdoors. Organizations must upgrade to patched versions (React 19.0.1+, Next.js 15.0.5+) immediately, as the vulnerability impacts 39% of cloud environments and 6% of all websites. WAF rules and endpoint restrictions provide temporary mitigation.

## Content

The React2Shell vulnerability, identified as CVE-2025-55182, is a critical remote code execution flaw affecting React Server Components in React versions 19.0 through 19.2.0 and Next.js versions 15.x to 16.x. This vulnerability has been assigned a maximum CVSS score of 10.0 due to its severe implications, enabling unauthenticated attackers to execute arbitrary code on servers through insecure deserialization in the Flight protocol.

### Exploit Mechanism
The vulnerability arises from unsafe deserialization in React's Flight protocol, which manages server-client component communication. Attackers can exploit this flaw by sending specially crafted HTTP requests that manipulate serialized data, allowing them to traverse prototype chains and execute malicious code via the JavaScript Function constructor. This process is akin to historical Java serialization issues, where unchecked deserialization enabled remote code execution.

### Active Exploitation
Since its disclosure, the React2Shell vulnerability has been actively exploited by various threat actors, including state-sponsored groups from China and North Korea, as well as financially motivated cybercriminals. Exploits have been observed deploying cryptocurrency miners, backdoors like KSwapDoor and ZnDoor, and other malware across multiple sectors such as construction, entertainment, and critical infrastructure.

### Immediate Actions and Patches
Organizations using React Server Components are strongly urged to upgrade to the patched versions of React (19.0.1, 19.1.2, and 19.2.1) and Next.js (15.0.5 and 16.0.7). Alongside these updates, deploying Web Application Firewall (WAF) rules and restricting endpoint access can provide temporary mitigations.

### Broader Impact
The vulnerability affects an estimated 39% of cloud environments and 6% of all websites, making it a comparable threat to the infamous Log4j flaw. Security measures such as secret rotation and server rebuilding are recommended if systems are suspected to be compromised. Meanwhile, Cloudflare, AWS, and other cloud service providers have responded with automatic protections and increased monitoring of exploitation attempts.

### Conclusion
The React2Shell vulnerability underscores the importance of secure deserialization practices and validates the need for immediate and comprehensive response strategies in handling emergent security threats. This incident illustrates a significant challenge for the global IT community, reaffirming the necessity of timely patch deployment and vigilance against rapidly industrializing threat actors.

## Community discussion

Top comments from developers on daily.dev.

**@petecapecod** · 20 upvotes

> It's time, definitely update your Next/React projects ***immediately!***
> Don't get caught with your pants down 😯
> Didn't realize until now it was a 10/10, that's bad.

**@shyngysdev** · 14 upvotes

> check out https://npmscan.com/ for more threats like this

**@nubecolectiva** · 9 upvotes

> Hackers are always looking for vulnerabilities. I made this image to explain it:
>
>
> ![1000048179](https://media.daily.dev/image/upload/s--NCT50YLn--/f_auto/v1764874741/ugc/content_b07b70bb-9143-4d07-b2b1-1ea87c767ec4?_a=BAMAK+ZW0)

**@tawfiqcodes** · 4 upvotes

> Most of the react code in production runs an older version of react 16. I.e no server components. Don't worry the Internet is safe

**@xidib78169** · 2 upvotes

> I heard it already, but this is new one.

---

Tags: [#security](https://daily.dev/tags/security), [#react](https://daily.dev/tags/react), [#nextjs](https://daily.dev/tags/nextjs), [#vulnerability](https://daily.dev/tags/vulnerability)

[View this post on daily.dev](https://daily.dev/posts/critical-vulnerability-in-react-server-components-immediate-action-required-u5kc8xlhs)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Critical Vulnerability in React Server Components: Immediate Action Required","url":"https://daily.dev/posts/critical-vulnerability-in-react-server-components-immediate-action-required-u5kc8xlhs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/critical-vulnerability-in-react-server-components-immediate-action-required-u5kc8xlhs"},"datePublished":"2025-12-03T17:58:13.709Z","dateModified":"2025-12-29T11:01:02.993Z","description":"React2Shell (CVE-2025-55182) is a critical remote code execution vulnerability with a CVSS score of 10.0, affecting React 19.0-19.2.0 and Next.js 15.x-16.x....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e9ee0b7707c14213d77926f0f7cd84f5?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e9ee0b7707c14213d77926f0f7cd84f5?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Collections","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Collections","logo":"https://media.daily.dev/image/upload/s--fk_6ycEi--/f_auto,q_auto/v1780996001/logos/collections?_a=BAMAMiWQ0","url":"https://daily.dev/sources/collections"},"commentCount":18,"discussionUrl":"https://daily.dev/posts/critical-vulnerability-in-react-server-components-immediate-action-required-u5kc8xlhs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":475},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":18}],"keywords":"security,react,nextjs,vulnerability","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collections","item":"https://daily.dev/sources/collections"},{"@type":"ListItem","position":3,"name":"Critical Vulnerability in React Server Components: Immediate Action Required"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/critical-vulnerability-in-react-server-components-immediate-action-required-u5kc8xlhs","comment":[{"@type":"Comment","text":"It’s time, definitely update your Next/React projects immediately!\nDon’t get caught with your pants down 😯\nDidn’t realize until now it was a 10/10, that’s bad.","datePublished":"2025-12-04T12:55:09.240Z","url":"https://daily.dev/posts/u5kc8XLhS#c-Y38hgO9HY","author":{"@type":"Person","name":"Peter Cruckshank","url":"https://daily.dev/petecapecod","image":"https://media.daily.dev/image/upload/s--ZJhQyKws--/f_auto/v1721235024/avatars/avatar_A9xh33q0QoxtkGoJRCosp"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":20}},{"@type":"Comment","text":"check out https://npmscan.com/ for more threats like this","datePublished":"2025-12-04T13:47:21.953Z","url":"https://daily.dev/posts/u5kc8XLhS#c-oInJu9UWt","author":{"@type":"Person","name":"Shyngys Shynbolatov","url":"https://daily.dev/shyngysdev","image":"https://avatars.githubusercontent.com/u/42411937?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":14}},{"@type":"Comment","text":"Hackers are always looking for vulnerabilities. I made this image to explain it:","datePublished":"2025-12-04T18:59:03.539Z","dateModified":"2025-12-04T19:02:25.480Z","url":"https://daily.dev/posts/u5kc8XLhS#c-YIGFP6Pqi","author":{"@type":"Person","name":"Nube Colectiva","url":"https://daily.dev/nubecolectiva","image":"https://media.daily.dev/image/upload/s--sKadI8aB--/f_auto/v1787001795/avatars/avatar_d2lQlbHPWLBIYkmIhoKKS?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":9}},{"@type":"Comment","text":"Most of the react code in production runs an older version of react 16. I.e no server components. Don’t worry the Internet is safe","datePublished":"2025-12-04T16:19:24.258Z","url":"https://daily.dev/posts/u5kc8XLhS#c-f5zlxJugb","author":{"@type":"Person","name":"tawfiq khalilieh","url":"https://daily.dev/tawfiqcodes","image":"https://avatars.githubusercontent.com/u/87164562?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"I heard it already, but this is new one.","datePublished":"2025-12-04T14:33:49.311Z","url":"https://daily.dev/posts/u5kc8XLhS#c-YuXoaNJem","author":{"@type":"Person","name":"test","url":"https://daily.dev/xidib78169","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}}]}
```

