• News/
  • https://www.bleepingcomputer.com/news/security/critical-react2shell-flaw-in-react-nextjs-lets-hackers-run-javascript-code/

Critical React, Next.js flaw lets hackers execute code on servers

BleepingComputer
·
Bill Toulas
·
Published Dec 4, 2025
·
Updated

A maximum severity vulnerability, dubbed 'React2Shell', in the React Server Components (RSC) 'Flight' protocol allows remote code execution without authentication in React and Next.js applications. The security issue stems from insecure deserialization. It received a severity score of 10/10 and has been assigned the identifiers CVE-2025-55182 for React and CVE-2025-66478 (CVE rejected in the National Vulnerability Database) for Next.js. Security researcher Lachlan Davidson discovered the flaw and reported it to React on November 29. He found that an attacker could achieve remote code execution (RCE) by sending a specially crafted HTTP request to React Server Function endpoints. "Even if your app does not implement any React Server Function endpoints, it may still be vulnerable if your app supports React Server Components [RCS]," warns the security advisory from React. The following packages in their default configuration are impacted: React is an open-source JavaScript library for building user interfaces. It's maintained by Meta and widely adopted by organizations of all sizes for front-end web development. Next.js, maintained by Vercel, is a framework built on top of React that adds server-side rendering, routing, and API endpoints. Both solutions are widely present in cloud environments through front-end applications that help scale and deploy architectures faster and easier. Researchers at Wiz cloud security platform warn that the vulnerability is easy to exploit and exi...

Read full article

Affected Software

1 affected component
React Server Components

Frequently Asked Questions

1

What is the critical vulnerability discussed in the article?

The article discusses a maximum severity vulnerability known as 'React2Shell' that allows for remote code execution in React and Next.js applications.

2

What is the cause of the React2Shell vulnerability?

The React2Shell vulnerability is caused by insecure deserialization within the React Server Components 'Flight' protocol.

3

What severity score was assigned to the React2Shell flaw?

The React2Shell flaw received a severity score of 10/10, indicating its maximum severity.

4

Which frameworks are affected by this security issue?

The security issue primarily affects React and Next.js applications.

5

Can hackers exploit the React2Shell vulnerability without authentication?

Yes, the vulnerability allows hackers to execute code remotely without the need for authentication.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203