Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 2 December 2026.
Part of the Wolfcore Resources library: Vulnerabilities and exploitation.
In one sentence: React2Shell is a critical flaw in the way some React web applications handle requests, which lets an attacker run their own commands on your web server without logging in.
What it is
CVE-2025-55182 is a remote code execution flaw in React Server Components. “Remote code execution” means an outsider can make your server run commands. “Unauthenticated” means no account is needed. The React team rated it CVSS 10.0, the top score, and reported it was found by a researcher on 29 November 2025.
It sits in how React decodes data sent to its server function endpoints. The React team says an app may be vulnerable even if it defines no server function endpoints, as long as it supports React Server Components.
Affected packages are react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack in versions 19.0, 19.1.0, 19.1.1 and 19.2.0. The React advisory also lists affected frameworks and bundlers: Next.js, React Router, Waku, @parcel/rsc, @vitejs/plugin-rsc and rwsdk. If your React code does not run on a server, the React team says you are not affected.
How it works
- The attacker finds a site built with a framework that uses React Server Components. Internet-wide scanning makes this quick.
- They send one crafted HTTP POST request. Microsoft describes it as being processed as a serialised object and passed to the back end, where it is deserialised.
- Because of default trust between components, the server runs attacker-supplied code under Node.js.
- The attacker now has a foothold on the server and can read what it can read, including environment variables and cloud credentials.
Deserialisation means turning received data back into live objects. Doing that with untrusted data is a long-known danger.
Who it affects and how badly
Any business running a public Next.js or similar React Server Components application: SaaS start-ups, retailers with custom storefronts, recruitment portals, fintech front ends and agencies hosting client sites, across the UK, EU, US and Armenia.
- Sole trader to 10 staff: a hijacked site can host malware or crypto miners and be taken offline or blacklisted.
- 10 to 250 staff: stolen cloud keys can lead to data access, large cloud bills or customer data exposure.
- Regulated businesses: a server compromise exposing personal data can mean breach notification, regulator attention and lost clients.
Real examples
Microsoft Defender researchers reported exploitation as early as 5 December 2025 and identified several hundred machines across diverse organisations compromised. They saw coin miners, remote access tools, new users and SSH key changes for persistence, and attempts to harvest cloud and AI credentials. They also said public proof-of-concept exploits were readily available. Source: Microsoft Security Blog, linked above. No organisation is named by Microsoft in that report.
What we check on a test
On a web application test we establish what is actually running, not what the team believes is running:
- Which framework and version the site runs, and whether React Server Components is in use.
- Whether the server can be reached at the application endpoints from the internet.
- What secrets the app process can read: environment variables, cloud role access, API keys.
- Whether the web server account is over-privileged.
- Whether egress is restricted, so a compromised app cannot call out freely.
We do not publish or use exploit code in these pages.
Worked example (an illustration, not a real client)
A 12-person SaaS start-up runs a customer dashboard on Next.js. Nobody is sure which version is deployed, because a contractor built it. The server holds a cloud access key in its environment. If the app were exploited, the attacker could read that key and use it against the start-up’s storage.
What to do: list the apps, check versions against the React advisory, upgrade, rotate the key, and give the app only the cloud permissions it needs. Cost of the fix: a few hours. Cost of ignoring it: a cloud account takeover and customer data exposure.
How to detect it
- Check package.json and the lock file for the affected React packages, and for Next.js and the other listed frameworks.
- Review web server and framework logs for unusual POST requests to application routes and for the app starting unexpected processes.
- Microsoft lists detections in Defender for Endpoint and Defender for Cloud for suspicious Node.js process activity.
- Look for new users, changed SSH authorized keys, unknown remote management software and outbound connections to unfamiliar tunnel hostnames.
How to fix or prevent it
- Upgrade to the fixed versions: React 19.0.1, 19.1.2 or 19.2.1, and the patched release of your framework as listed in the React advisory.
- If you ran an affected version while exposed, assume compromise: investigate, then rotate every secret the server could read; see secret rotation.
- Do not rely on hosting-provider or WAF mitigations. The React team says to update immediately regardless.
- Give the app least privilege: narrow cloud roles, no admin keys in environment variables; see API key rotation.
- Restrict outbound traffic from the server.
- Keep an inventory of internet-facing apps and who owns each one.
- Subscribe to advisories for your framework. Note the React team later published further advisories, including denial of service issues, so keep updating.
Rules and regulators
- UK: the NCSC says to update by default and lists best-practice timescales, including 5 days for internet-facing services and software. It also says that where exploitation is rife, normal timelines are too long. The ICO expects security measures proportionate to risk.
- EU: GDPR Article 32 requires measures appropriate to risk, taking account of the state of the art.
- US: the FTC’s Start with Security guide covers keeping software secure, monitoring and limiting access.
Frequently asked questions
Is my React site affected? Only if it runs on a server and uses React Server Components, according to the React team.
Which versions fix it? React 19.0.1, 19.1.2 and 19.2.1, plus the patched version for your framework.
Is a patch enough? If you were exposed while vulnerable, also check for compromise and rotate secrets.
Related terms
- exploited-in-the-wild
- supply-chain
- how-insecure-deserialisation-works
- api-key-rotation
- secret-rotation
- spring4shell-cve-2022-22965
More in Vulnerabilities. For another flaw under attack this week, see WP Rocket CVE-2026-125812. Stolen cloud tokens are covered in OAuth access and refresh tokens.
Sources
- https://react.dev/blog/2025/12/03/critical-security-vulnerability-in-react-server-components
- https://www.microsoft.com/en-us/security/blog/2025/12/15/defending-against-the-cve-2025-55182-react2shell-vulnerability-in-react-server-components/
- https://www.ncsc.gov.uk/collection/vulnerability-management/guidance/policy-update-by-default
- https://www.ncsc.gov.uk/collection/vulnerability-management/guidance/responding-to-active-exploitation
- https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/security/a-guide-to-data-security/
- https://gdpr-info.eu/art-32-gdpr/
- https://www.ftc.gov/business-guidance/resources/start-security-guide-business
How Wolfcore helps
A Wolfcore penetration test finds this the way an attacker would, by hand, not with a scanner. Start with the free web vulnerability scan, or see penetration testing.
Wolfcore
Would your staff click a phishing email?
Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.
Start a free phishing testFree website security scanor book a 30 minute call