Security

React2Shell Vulnerability: React2Keys Steals 50,000 Credentials

The React2Keys campaign exploited the React2Shell vulnerability (CVE-2025-55182) in Next.js to steal over 50,000 cloud, AI and database credentials. Patch and rotate keys now.

Trị Trương · 9 min read
React2Shell Vulnerability: React2Keys Steals 50,000 Credentials

The React2Shell vulnerability (CVE-2025-55182, CVSS 10) in React Server Components has been exploited in a large, fully automated campaign that researchers call React2Keys. According to security firm CloudSEK, as reported by SecurityWeek on December 1, 2026, the attacker stole more than 50,000 credentials from over 19,000 Next.js hosts and compromised the CI/CD, cloud and AI infrastructure of more than 400 organizations. A patch has existed since December 2025, so most victims were running applications that had gone almost a year without an update.

React2Shell vulnerability and the React2Keys campaign: what happened?

React2Keys is not a new bug. It is the name CloudSEK gave to an automated operation that hunted for web applications still exposed to React2Shell. The attacker did not deface websites or deploy ransomware. Instead, the goal was to collect keys: AI provider API keys, cloud credentials, database passwords, and secrets for payment and cryptocurrency services.

Based on CloudSEK’s findings, the campaign began on November 9, 2026, when the attacker deployed scanners and started dumping environment variables from vulnerable servers. Mass exploitation ran from November 9 to November 18, and the last data exfiltration was observed on November 19. The stolen cloud tokens were then reused for follow-up scanning, which let the attacker grow its capacity beyond its own dedicated workers at the victims’ expense.

What stands out is how industrialized the operation was. CloudSEK says it recovered an exfiltration log of roughly 1.9 million lines, per-victim result folders, a toolkit of more than 900,000 files, and databases used as a scan ledger and inventory. Harvested credentials were ranked by estimated monetary value and tested live to confirm they still worked, much like goods moving along a sorting line.

React2Keys exploiting the React2Shell vulnerability: 50,000+ credentials, 19,000 Next.js hosts, 400 organizations
React2Keys campaign at a glance

What is React2Shell? CVE-2025-55182 in plain language

React is the most widely used library for building web interfaces, and Next.js is the React-based framework that many companies use for marketing sites, customer portals and SaaS products. Starting with React 19, React Server Components (RSC) let part of the interface be rendered on the server, and the browser can call “Server Functions” that run logic on the server.

On December 3, 2025, the React team disclosed CVE-2025-55182, which the community later nicknamed React2Shell. The flaw sits in the way the server deserializes payloads sent to Server Function endpoints. An attacker does not need to log in. A single crafted request is enough to run arbitrary code on the server, which is why the bug received the maximum CVSS score of 10.0.

One detail is easy to miss. According to the official React advisory, an application can be affected even if it does not define any Server Functions of its own, as long as it supports React Server Components. Plenty of teams assumed they were safe because they “don’t use that feature”, when in reality they were exposed.

The issue was reported by researcher Lachlan Davidson through the Meta Bug Bounty program on November 29, 2025. Meta confirmed it on November 30, a fix was created on December 1, and the patched packages were published to npm alongside the public disclosure on December 3, 2025. Exploitation in the wild has been observed since December 2025.

How React2Keys works: from one POST request to a vault of secrets

Drawing on CloudSEK’s description as summarized by SecurityWeek, the attack chain can be broken down into a few steps:

  1. Wide scanning: automated tools searched the internet for Next.js servers still running vulnerable versions.
  2. Unauthenticated exploitation: a POST request delivered a malicious JavaScript payload that executed inside the live Node.js process serving the site.
  3. Host fingerprinting: the payload profiled the environment and checked which environment variables were present.
  4. Hunting secret files: it targeted well-known secret files as well as non-standard .env.* files, where developers often keep API keys and database passwords.
  5. Further harvesting: additional payloads were pulled in to collect more secrets from the host.
  6. Ranking and validation: credentials were scored by estimated monetary value and tested live to confirm they were still valid.

Once malicious code runs inside the Node.js process, it has roughly the same power as the application itself. Everything the application knows, including environment variables, configuration files and database connections, can be read. That is why patching alone is not enough for a server that has already been compromised: stolen keys remain in the attacker’s hands until you revoke them.

What kinds of credentials were stolen?

The target list CloudSEK describes shows an attacker who knows exactly where a modern web application keeps its secrets. Targeted data included:

  • Cloud credential files, AWS keys and Azure tokens.
  • Kubernetes service-account tokens, which can be used to control container clusters.
  • SSH keys and git archives of source-code repositories.
  • Secrets stored in third-party secrets managers.
  • Connection details for PostgreSQL, Redis and MongoDB databases.
  • Firebase apps and keys.
  • AI provider API keys, which are valuable because they can be abused to run AI models on the victim’s bill.

For a business, the damage goes beyond a surprise cloud or AI invoice. A leaked database key can lead to a customer data breach. A CI/CD token can be used to slip malicious code into the next software release. A payment service key can open the door to financial fraud. We examined a similar pattern in our article on the supply-chain attack against GitHub Actions workflows, where secrets in CI pipelines were stolen at scale.

Timeline from disclosure to the React2Keys campaign

The gap of almost a year between the patch and mass exploitation is the most important lesson of this incident. The key dates are:

  • November 29, 2025: the flaw is reported through Meta Bug Bounty.
  • December 3, 2025: React ships the fix and discloses CVE-2025-55182.
  • From December 2025: exploitation is seen in the wild.
  • January 26, 2026: the React advisory receives its latest update, listing related flaws.
  • November 9–18, 2026: the React2Keys mass exploitation phase.
  • November 19, 2026: the last exfiltration observed by CloudSEK.
  • December 1, 2026: the campaign is publicly reported.
React2Shell vulnerability timeline, from the November 2025 report to the React2Keys campaign in November 2026
From patch to mass exploitation

Besides CVE-2025-55182, the React advisory lists follow-up flaws found later in the same components: CVE-2025-55184 and CVE-2025-67779 (denial of service, CVSS 7.5), CVE-2025-55183 (source code exposure, CVSS 5.3) and CVE-2026-23864 (denial of service, CVSS 7.5). If your team patched the first round and stopped there, other weaknesses may still be present.

Who is affected and which versions need upgrading?

According to CloudSEK, victims are spread across dozens of countries, with Brazil hit hardest, followed by India, Germany, Russia and France. The five most affected organizations named by CloudSEK include Japan’s SoftBank and Harvard University; this comes from CloudSEK’s report, and the coverage does not say whether those organizations have publicly confirmed it. More importantly, any site that uses React Server Components and has not been updated is a potential target, regardless of size.

Per the official React advisory, the affected packages are react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack. Frameworks and bundlers that rely on them include next, react-router, waku, @parcel/rsc, @vitejs/plugin-rsc and rwsdk.

Component Vulnerable versions Minimum patched versions
react-server-dom-* 19.0, 19.1.0, 19.1.1, 19.2.0 19.0.1, 19.1.2, 19.2.1
Next.js 13.3 – 14.x Unpatched releases 14.2.35
Next.js 15.x Unpatched releases 15.0.8, 15.1.12, 15.2.9, 15.3.9, latest 15.4.x, 15.5.10
Next.js 16.x Unpatched releases 16.0.11, 16.1.5

Note that React recommends moving to the latest release of your branch rather than stopping at the minimum, because the later flaws were fixed in newer versions. The advisory also states clearly that you should not rely solely on temporary mitigations from hosting providers.

What should businesses do about the React2Shell vulnerability right now?

If your website or application uses Next.js or any framework with React Server Components, treat this as urgent. Our recommended order of work:

  1. Inventory: list every project on React 19 and Next.js, including old sites, landing pages and forgotten staging environments. Run npm ls next react-server-dom-webpack to see the versions actually installed.
  2. Upgrade: move to the latest patched release of your branch, rebuild and redeploy. Don’t forget canary builds running in production.
  3. Assume exposure: if a server ran a vulnerable version and was reachable from the internet, treat every secret on it as compromised.
  4. Revoke and reissue secrets: rotate AWS and Azure keys, AI API keys, database passwords, Kubernetes tokens, SSH keys, Firebase keys and payment keys. Revoke the old keys rather than just adding new ones.
  5. Review logs: check usage logs and invoices from your AI, cloud and database providers for November 2026, and look for unusual POST requests hitting your Next.js servers.
  6. Check CI/CD and repositories: look for unexpected commits, workflow changes or new deploy keys.
  7. Set spending alerts: enable budget caps and spending alerts on AI and cloud accounts so abuse is spotted early.

CloudSEK also offers an exposure-checking tool tied to this campaign. Still, not finding your name there does not mean you are safe; the rule remains to patch and rotate secrets if you ever ran a vulnerable version.

Immediate actions for businesses against the React2Shell vulnerability and the React2Keys campaign
What to do now with Next.js

The long-term lesson: stop leaving secrets on your web servers

React2Keys highlights a simple fact: how dangerous a remote code execution bug is depends on how many keys the server is holding. Many projects put every key into a .env file on the server, give the web app full administrator rights to the cloud account, and share one key between staging and production. When that server is breached, the damage spreads across the whole system.

A few principles worth adopting:

  • Least privilege: give each application only the permissions it needs; a key used by a website should not be able to delete data or launch new servers.
  • Short-lived secrets: prefer temporary tokens and platform-issued roles over long-lived access keys.
  • Separate environments: staging and production keys must differ, and staging needs patching just as much as production.
  • Restrict outbound traffic: limit which destinations web servers can reach, which makes exfiltration harder.
  • Track dependencies: turn on automated vulnerability alerts for npm and keep a regular update schedule instead of upgrading only after an incident.

None of this requires a big budget, but it does require operational discipline. That is why many small businesses choose a regular system maintenance and security monitoring service rather than scrambling after something has already gone wrong.

What this means for SMEs in Vietnam and Japan

Next.js is very popular with software companies and agencies in Vietnam, especially on offshore projects for Japanese clients. Many sites are delivered and then left alone, with nobody updating libraries for months. Those are exactly the systems that automated campaigns like React2Keys scan every day. The attacker does not need to know who you are; your server only needs to be running an old version.

For Japanese companies, SoftBank appearing on CloudSEK’s list is a reminder that even large organizations can have forgotten systems. For small businesses, the risk is higher still, because they rarely have a dedicated security team and seldom watch their AI and cloud bills day to day.

If your website or application was built by a third party, ask your partner today: does the project use Next.js or React 19, has the patch been applied, and where are the API keys stored? When you need to upgrade or rework the architecture to make it safer, an experienced web and web application development team can shorten the work and avoid service interruptions.

FAQ

Does the React2Shell vulnerability affect WordPress sites?

Not directly. React2Shell lives in the React Server Components packages, which mainly appear in Next.js and similar frameworks. A traditional WordPress site is not affected unless you run a headless front end built with Next.js on top of WordPress.

I have already patched. Do I still need to rotate API keys?

Yes, if the server ever ran a vulnerable version and was reachable from the internet. The patch stops the next intrusion but cannot take back keys that were already stolen. Revoke the old keys and issue new ones.

How do I know if my site uses React Server Components?

If the project uses Next.js with the app directory (App Router) on React 19, it almost certainly uses RSC. Run npm ls react-server-dom-webpack or ask your developers to confirm the exact versions.

Is React2Keys ransomware?

Based on what is known so far, no. The campaign focused on collecting and validating valuable credentials such as AI and cloud keys. Those keys can still be resold or used in other attacks later.

If you are not sure whether your systems are safe from the React2Shell vulnerability, let us take a look; a short review can prevent a costly incident.

Sources: SecurityWeek, React Blog

Taking on new projects

Let’s build
what’s next.

You have the idea. We have the technology to make it real.

Phone / WhatsApp
096.279.2345
You need

We only use this to get back to you.

Chat on WhatsApp Call +84 96 279 2345