Skip to content
Plexel StudioJoin the beta
Plexel
Back to Insights

Security · · 7 min read

React2Shell: why a website is never finished

In December 2025 a single flaw in React, one of the most widely used tools for building websites, was being attacked within hours of its announcement. What happened, who stayed exposed, and why keeping a website updated matters even more now that AI finds new flaws every day.

The short version

React is one of the most widely used tools for building websites and web apps. A part of it called React Server Components, used by frameworks such as Next.js, had a flaw that let anyone on the internet run their own code on the server, without logging in.[1] It was given the highest severity score there is, 10.0. A fix was out the same day. The websites that were hurt were not the ones built badly; they were the ones nobody updated.

What happened, day by day

  1. 3 December 2025

    The React team discloses CVE-2025-55182, an unauthenticated remote code execution flaw in React Server Components, rated 10.0 out of 10, and ships fixed versions 19.0.1, 19.1.2 and 19.2.1.[1] Next.js, a widely used framework built on it, publishes its own advisory and patched releases.[2]

  2. Within hours

    Amazon's threat intelligence teams see China-linked groups, including Earth Lamia and Jackpot Panda, trying to exploit it.[3]

  3. 4 December

    A working exploit and technical analysis become public, so anyone can now attack an unpatched server.[4]

  4. 5 December

    The US Cybersecurity and Infrastructure Security Agency adds it to its catalogue of vulnerabilities known to be exploited in the wild.[5]

  5. The days that follow

    Internet scans by the Shadowserver Foundation count about 77,700 vulnerable addresses, some 23,700 of them in the US,[6] then more than 165,000 addresses and 644,000 domains, most of them in the US.[7] Google reports groups linked to China and Iran exploiting the flaw,[8] Palo Alto Networks counts more than 50 organisations hit,[9] and attackers install backdoors and other malware on the servers they take over.[10]

  6. 11 December

    Researchers studying the fix find more problems in the same code: a denial of service and a source code exposure, with another round of patches (19.0.3, 19.1.4 and 19.2.3).[11] Teams that updated once had to update again a week later.

Why the update decided who was hurt

The React team was clear: hosting providers had put temporary protections in place, but nobody should depend on them, and every affected site should still update immediately.[1] That is a few minutes of work for a site someone is looking after. For a site that was built, handed over and left alone, nobody even knew it was affected.

Attackers did not pick their victims by name. They scanned the whole internet for vulnerable servers, which is how a flaw announced on a Wednesday was being exploited the same day.[3] Size was no protection: anything running the vulnerable code and reachable online was a target.

And one update was not enough. A week later the same code needed patching again.[11] Security is not a box ticked at launch; it is a job that continues for as long as the website is live.

Why it matters more in the AI era

React2Shell was not a one-off. The number of publicly catalogued vulnerabilities reached a record 48,185 in 2025, about 21% more than the year before.[12] And the gap between a flaw being announced and attackers using it has collapsed: Google's analysis found the average time to exploit fell from 63 days in 2018 and 2019 to just 5 days in 2023.[13]

AI is accelerating both sides. Google's Big Sleep project found a previously unknown, exploitable flaw in the widely used SQLite database in 2024.[14] OpenAI's Aardvark agent found at least ten flaws worthy of an official identifier in open-source projects in 2025.[15] In February 2026, Anthropic said its Claude model had found more than 500 previously unknown high-severity vulnerabilities in open-source code.[16]

These tools are built to help defenders, but the same kind of capability is available to attackers, and finding flaws is getting cheaper faster than fixing them.[17] For a business, the practical meaning is simple: the software under your website will need security updates more often, and you will have less time to apply them.

The 2026 NGINX zero-day: why even “static” websites are not immune

For years, a pervasive belief in web engineering was that a website serving purely static files or running behind a standard NGINX reverse proxy was immune to remote code execution. Because there was no dynamic database or complex server runtime, businesses assumed their site was safe to leave alone.

In 2026, CVE-2026-123633 and CVE-2026-123007 dismantled that assumption.[18]A critical pre-authentication remote code execution flaw was disclosed in NGINX's HTTP/2 protocol parser. Crucially, the vulnerability triggered regardless of what the server was hosting:even on servers configured solely to serve static HTML, CSS, and images.[19]

The Pre-Auth NGINX Threat Model

Because the exploit occurs during HTTP/2 multiplexed stream header parsing before request routing or authentication, an attacker simply needs an open port 443. By sending crafted frame sequences, an attacker gains arbitrary code execution under the NGINX worker context on the underlying Linux host. Temporary workarounds like turning off HTTP/2 degrade user throughput and latency, and unpatched servers give attackers an immediate foothold inside corporate VPC perimeters.

This demonstrated an unavoidable truth for corporate leadership: vulnerabilities are not limited to application code. They emerge in the fundamental web server daemons, TLS terminators, and networking libraries underneath. Continuous updates and proactive infrastructure surveillance are not optional maintenance packages; they are mandatory operational hygiene.

What to do about it

  • Know exactly what your entire stack runs on: frontend frameworks, server runtimes, and underlying web servers (like NGINX).
  • Watch security advisories across all layers, so zero-days like CVE-2026-123633 are mitigated before weaponized scans hit.
  • Decouple public websites from stateful host servers by compiling to static edge isolates, eliminating long-lived web server daemons.
  • Apply critical security patches and redeploy within hours of upstream disclosure, not at the next redesign.
  • Maintain automated daily backups and immutable git revisions so any change can be verified or rolled back instantaneously.
  • Assign active, continuous operational responsibility to a dedicated team with defined maintenance SLAs.

Sources

  1. [1]React team: Critical Security Vulnerability in React Server Components (3 Dec 2025)
  2. [2]Next.js: Security advisory CVE-2025-66478
  3. [3]AWS Security Blog: China-nexus cyber threat groups rapidly exploit React2Shell
  4. [4]JFrog: CVE-2025-55182 and CVE-2025-66478 (React2Shell), all you need to know
  5. [5]The Hacker News: Critical React2Shell flaw added to CISA KEV
  6. [6]BleepingComputer: React2Shell flaw exploited to breach 30 orgs, 77k IP addresses vulnerable
  7. [7]SecurityWeek: Wide range of malware delivered in React2Shell attacks
  8. [8]Google Threat Intelligence Group: Threat actors exploit React2Shell
  9. [9]CyberScoop: Attacks pinned to React2Shell surge, surpass 50 confirmed victims
  10. [10]The Hacker News: React2Shell exploited to deploy Linux backdoors
  11. [11]React team: Denial of Service and Source Code Exposure in React Server Components (11 Dec 2025)
  12. [12]The Stack: CVEs in 2025, an analysis (Jerry Gamblin's 2025 CVE Data Review)
  13. [13]Google Cloud: Time-to-Exploit Trends 2023
  14. [14]The Register: Google's AI bug hunter finds a flaw in SQLite (Nov 2024)
  15. [15]The Register: OpenAI's Aardvark security agent (Oct 2025)
  16. [16]InfoWorld: Claude AI finds 500 high-severity software vulnerabilities (Feb 2026)
  17. [17]The Register: AI has gotten good at finding bugs, not so good at swatting them (Feb 2026)
  18. [18]NGINX Security Advisory: Pre-auth Remote Code Execution in HTTP/2 Stream Processing (CVE-2026-123633 and CVE-2026-123007)
  19. [19]International Cyber Digest: Critical unauthenticated pre-auth RCE found in NGINX affecting static and dynamic web servers

Figures are as reported by these sources at the time. Counts of vulnerable servers change daily as sites are patched.

Start an Engagement

Is your website up to date?

We review it on a video call or screen share, tell you what needs fixing, and give you a fixed monthly price for looking after it.