Threat level: ElevatedLatest scam alert: Scam Alert: ‘Money Is Coming to You’ Calls That Steal PINs and OTPs
Cybersecurity

React2Keys: 50,000 Secrets Stolen From Unpatched Next.js Apps

CloudSEK says an automated campaign exploited the year-old React2Shell flaw to break into more than 19,000 Next.js hosts in ten days and steal over 50,000 cloud, AI, database and payment credentials. Patching is not enough: secrets must be rotated and a planted SSH key removed.

Read in 3 countries🇺🇸🇳🇬🇭🇰5 views
Developer at a desk with two monitors reviewing code and a security alert
AI-generated image (Claude)
In this article
  1. Key takeaways
  2. What happened
  3. How the attack worked
  4. What was stolen
  5. Why a year-old bug still works
  6. Who is at risk
  7. What you should do
  8. Sources

A flaw that was patched a year ago has just been used to empty the secret stores of thousands of websites. Security firm CloudSEK has published research on a campaign it calls React2Keys, which used the React2Shell vulnerability in Next.js to break into more than 19,000 hosts and steal over 50,000 credentials in about ten days. If your business, your developers or your web agency run a Next.js or React Server Components application, read on.

This piece is for developers, IT leads and business owners who commission web apps, including the many Nigerian and African startups that build on Next.js and deploy to cloud platforms.

Key takeaways

Hands typing on a laptop showing a terminal window
AI-generated image (Claude)
  • React2Shell (CVE-2025-55182) is a maximum-severity (CVSS 10) remote code execution flaw in React Server Components used by Next.js Server Actions. It was disclosed on 3 December 2025.
  • CloudSEK says the React2Keys campaign ran from 9 to 19 November 2026 and touched more than 400 organisations in dozens of countries.
  • Stolen secrets included cloud keys, AI service keys, database logins, payment tokens and source code.
  • Attackers planted their own SSH key on hosts, so patching alone does not remove them. You must also rotate secrets and check for that key.

What happened

CloudSEK disclosed the campaign on 30 November after recovering a large theft log, about 1.9 million lines, along with scan databases and the attacker’s toolkit. According to reports from Dark Reading and SecurityOnline, the logs show roughly 19,000 vulnerable Next.js hosts compromised and more than 50,000 secrets taken. Brazil, India and Germany saw the most hits, but victims span many countries, cloud providers and company sizes.

These figures come from the attacker’s own records. As of the latest reports, none of the organisations named in the logs had publicly confirmed a breach, and researchers note that 19,000 hosts does not mean 19,000 separate companies.

How the attack worked

  1. Finding new sites fast. The operator watched six public Certificate Transparency logs every three minutes. Each time a new TLS certificate appeared, the domain became a target, often within minutes of going live.
  2. Fingerprinting. Scanners checked whether each site ran Next.js. Only about 3% passed the attacker’s filters.
  3. One request to take over. A single unauthenticated POST request to a route reaching a Server Action made the server run the attacker’s JavaScript inside the live Node.js process.
  4. Harvesting. Payloads collected environment variables, .env files, cloud credential files, SSH keys and Kubernetes tokens, then moved into cloud roles, databases and key vaults.
  5. Ranking and testing. Stolen secrets were sorted by likely cash value and tested live. Stolen cloud credentials were used to pay for more scanning.

What was stolen

SecurityOnline’s breakdown of CloudSEK’s data lists app tokens, authentication keys, database logins, cloud keys, chat and mail tokens, AI keys, payment tokens and DevOps tokens, plus private Git repositories and vault keys. AI keys were a notable target: the logs show stolen keys tested against services such as OpenAI, Anthropic, Google Gemini and OpenRouter, and some usage billed to victims. For a small business, that can mean a surprise bill, not just a data leak.

Why a year-old bug still works

React2Shell was fixed in December 2025, and attackers began exploiting it within hours of disclosure. Yet a year later thousands of servers were still exposed. Common reasons include apps built once by a contractor and never updated, forgotten staging sites, and projects that pinned old package versions. Because the attacker targeted new certificates, freshly deployed sites built from outdated templates were also caught.

There is a lesson here for buyers of web development, not just developers. A website or app is not finished when it launches. Somebody has to own updates for its whole life.

Who is at risk

  • Any internet-facing app using React Server Components or Next.js Server Actions that has not been updated since late 2025.
  • Apps that keep secrets such as cloud, AI, database or payment keys in environment variables or .env files on the same server.
  • Apps running as root or sharing one set of secrets across several projects, which makes a single break-in far more damaging.

What you should do

  1. Patch. Update React Server Components packages to 19.0.1, 19.1.2 or 19.2.1 or later; later fixes for related issues are 19.0.4, 19.1.5 and 19.2.4. For Next.js, move to a fixed release for your line, such as 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 or 16.0.7, or newer.
  2. Rotate every secret that lived on an exposed host: cloud keys, AI API keys, database passwords, vault tokens and payment keys. Assume they are known to the attacker.
  3. Check for the planted SSH key. Review authorized_keys files, SSH access and cron jobs on every affected server and remove anything you did not add.
  4. Review cloud activity. Check AWS CloudTrail or your provider’s equivalent for unusual identity changes, new keys or unexpected AI usage.
  5. Use CloudSEK’s exposure checker for your domain or work email, but remember that a clean result does not prove you were not hit.
  6. Reduce the blast radius for next time: run apps as a non-root user, give each app its own narrowly scoped secrets, and set spending limits on AI and cloud accounts.

If an agency built your site, send them this article and ask for written confirmation of the version you run and the date secrets were last rotated.

Sources

Featured image: Photo: “Cool Reflecting Source Code Screen at GGJ Berlin 2015” by qubodup, CC BY 2.0, via Openverse — source

Was this article helpful?

Embed this on your website

Run a website, school, church or company intranet? Paste this code to show this article as a card. It stays up to date automatically.

Or show your visitors the latest scam alerts, updated automatically:

Written by

Verified expert

Cybersecurity Analyst

Federal Capital Territory (Abuja)

  • Phising
  • Fraud Prevention
  • Cybersecurity Awareness and Training
  • Cloud Security
  • IT Risk Management

Credentials: MCPN, MNCS, IAENG | System Analyst · Web Developer · CEH · CC · CDST

Got expertise to share? Write for us →

Leave a Reply

Your email address will not be published. Required fields are marked *