React2Keys is the name CloudSEK gave to an automated campaign that stole more than 50,000 credentials from at least 19,000 servers in ten days. Every one of those servers ran a Next.js app with a flaw that has had a fix for a year. If your company runs a Next.js site, this post shows how to check the version, how to tell whether someone left a way back in, and which keys to replace.

Updating Next.js does not undo a theft. If your server was unpatched during the campaign, treat every secret on it as stolen and rotate it.

The short answer

  • React2Keys ran from 9 to 19 November 2026 and hit about 400 organisations.
  • It used React2Shell (CVE-2025-55182), a flaw in React Server Components rated 10 out of 10. One web request with no login is enough to run code on the server.
  • Fixed since December 2025. Affected: the React 19.0, 19.1.0, 19.1.1 and 19.2.0 server packages, and the Next.js versions that include them.
  • The attackers took cloud keys, database passwords, AI service keys and crypto keys, and they planted an SSH key so they could return.

How React2Keys worked

CloudSEK got into the attackers’ own infrastructure and read their logs. According to its report and BleepingComputer’s summary, the process ran like this:

  1. The attackers watched public certificate logs. So a site that got a new HTTPS certificate became a target within minutes.
  2. A scanner checked whether each site ran Next.js.
  3. Vulnerable servers were exploited through React2Shell, and the secrets in their environment were copied.
  4. AI services then tested each stolen key and ranked it by value.
  5. Working cloud keys were used to reach databases, code repositories and secrets managers, and to scan for more victims.

The fourth step is the new part. Sorting 50,000 keys by hand would take a team weeks, but here software did it. Stolen AI tokens were also used to run AI requests at the victims’ cost.

Step 1: check your Next.js and React versions

Run this in the project folder on your own server or build machine:

grep -A1 '"node_modules/next"' package-lock.json | head -2
grep -A1 '"node_modules/react-dom"' package-lock.json | head -2

We ran it in our lab on 4 December 2026 on a test project that we pinned to old versions on purpose:

    "node_modules/next": {
      "version": "15.1.0",
    "node_modules/react-dom": {
      "version": "19.0.0",

Both numbers are in the affected range. The React team lists these fixed releases:

If you runUpdate to
React server packages 19.0.x19.0.1
React server packages 19.1.x19.1.2
React server packages 19.2.x19.2.1
Next.js 13.3 to 14.x14.2.35
Next.js 15.0.x15.0.8
Next.js 15.1.x15.1.12
Next.js 15.2.x15.2.9
Next.js 15.3.x15.3.9
Next.js 15.5.x15.5.10
Next.js 16.0.x16.0.11
Next.js 16.1.x16.1.5

For Next.js 15.4.x the React page names 15.4.10 in one place and 15.4.11 in another, so take the newest 15.4 release. The page also covers later, smaller flaws that the same updates fix.

To update, the React team gives this form of command:

npm install next@15.1.12

Then rebuild and redeploy the app. An app that uses React only in the browser, with no server components, is not affected. Other frameworks that support React Server Components, such as Waku and React Router’s RSC mode, are on the React team’s list too.

Step 2: look for a planted SSH key

CloudSEK says the attackers added an SSH key to servers they got into, so they could come back after a patch. First, find authorized_keys files that changed recently:

sudo find /root /home -name authorized_keys -mtime -30 -exec ls -l --time-style=long-iso {} \;

In our lab, where we planted a key in a test user’s folder:

2026-12-04 08:15 home/deploy/.ssh/authorized_keys

Then list the keys in each file it finds:

ssh-keygen -l -f /home/deploy/.ssh/authorized_keys
256 SHA256:f2eIdik9Xaglm/DvBuSponYInE4MDtix0G2zNgLX4s4 ravi@office-laptop (ED25519)

You should be able to name the owner of every line. Remove any key you cannot explain. Also check the user that runs the Node.js process, because that is the account an attacker would land in. Our hacked server checklist covers cron jobs and other hiding places.

Step 3: rotate every secret the app could read

The stolen data came from the app’s environment. So list what your app has in its .env files and its hosting dashboard, and replace each item. CloudSEK’s list of what the attackers took is a good checklist:

  • AWS access keys and session credentials, Azure tokens and Google Cloud service-account keys
  • database passwords for PostgreSQL, MongoDB and Redis
  • GitHub access tokens
  • AI service keys for Anthropic, OpenAI and Google Gemini, and Claude Code tokens
  • payment keys, crypto exchange API keys and wallet private keys

Replace the key at the provider first, then update the app, then confirm the old key no longer works. A key that you only delete from a file is still valid.

Step 4: check for use of the stolen keys

Next, look at what the keys did during and after 9 to 19 November:

  • Cloud: read the audit log (CloudTrail on AWS) for logins from unknown addresses, new users, new access keys and new virtual machines.
  • AI services: open the usage page of each AI provider and compare November with October. A jump you cannot explain may be someone else’s requests on your bill.
  • Git: look for new deploy keys, new webhooks and pushes you do not recognise.
  • Database: check for new users and for exports.

If you confirm that someone used your keys, and customer data sits behind them, the CERT-In six-hour rule may apply. Our CERT-In guide explains what to report.

Why this matters for small teams

Many Indian startups and agencies build on Next.js and then leave a project running for months without updates. React2Keys shows what that costs now. The scan is automatic, the theft is automatic and even the sorting of the loot is automatic. So the only defence that scales is the boring one: update within days, keep few secrets on the server and give each key the smallest rights that work.

Free check: our website safety check grades your site’s HTTPS and security headers from the outside in 30 seconds.

Related guides

Sources

Not sure which of your apps are affected? Our Emergency Exposure Check (₹2,999) looks at up to five sites, hosts or product versions and gives a written verdict for each within 48 hours, with what to patch first and how to verify the fix.

Post author avatar

Bhaskar Soni

Bhaskar Soni is a Security Engineer and the founder of Youngster Company, based in Ahmedabad, Gujarat. He works hands-on with Linux server hardening, vulnerability assessment and penetration testing (VAPT), ISO 27001 compliance and OSINT investigations. He writes practical, tested guides for IT professionals and Indian businesses, and every article on this site is written or reviewed by him.

Leave a Reply