React2Keys: Automated Campaign Used React2Shell (CVE-2025-55182) to Steal 50,000+ AI, Cloud and Database Keys From 19,000 Unpatched Next.js Hosts — Patch, Rotate Every Secret, Hunt for SSH Keys

Cyber · 2026-12-02 · By Reef Administrator - H.A

React2Keys: Automated Campaign Used React2Shell (CVE-2025-55182) to Steal 50,000+ AI, Cloud and Database Keys From 19,000 Unpatched Next.js Hosts — Patch, Rotate Every Secret, Hunt for SSH Keys

Researchers say a fully automated React2Shell campaign breached more than 19,000 unpatched Next.js hosts from 9 to 19 November, then priced and live-tested over 50,000 stolen AI, cloud, database, payment and crypto secrets linked to 400+ organisations.

A year after React2Shell (CVE-2025-55182) was disclosed, the CVSS 10.0 flaw in React Server Components is still paying off for attackers. Security researchers have described a fully automated campaign they call React2Keys. It used the bug to break into more than 19,000 unpatched Next.js hosts and steal over 50,000 secrets. The haul included AI provider keys, cloud credentials, database logins, payment and registrar tokens, and cryptocurrency exchange keys. According to the researchers, CI/CD, cloud and AI infrastructure linked to more than 400 organisations in dozens of countries was affected.

The flaw itself is not new. What's new is how industrialised the follow-up has become. The operation found victims, broke in, collected secrets, priced them and tested them with almost no human involvement. AI access appears to have been one of the main things it was after.

What Happened

According to the researchers, the campaign started on 9 November 2026. Mass exploitation ran from 9 to 18 November, and the last data theft they observed was on 19 November. Their report, published on 30 November, is based on material they recovered from the attacker. It includes a toolkit of more than 900,000 files, scan-ledger and inventory databases, folders of results for each victim, and an exfiltration log of 1.9 million lines.

Victims ranged from small companies to large enterprises and universities. The researchers list Brazil as the most affected country, followed by India, Germany, Russia and France. They did not attribute the activity to any named group.

Technical Details

React2Shell comes from how React decodes payloads sent to React Server Function endpoints. One crafted, unauthenticated HTTP request can run code on the server. React's advisory warns that apps can be vulnerable even if they don't define Server Functions, as long as they support React Server Components.

The researchers describe a pipeline with these stages:

The AI Angle

The researchers say the attacker went after AI access deliberately. Stolen keys were tested against roughly ten LLM providers, including Anthropic, OpenAI and Google Gemini. They were also tested against gateways such as OpenRouter, Azure AI Foundry deployments and multi-model services. According to the report, the tooling also stole and refreshed Claude Code OAuth login tokens, so it could run inference billed to the victim's own subscription. Another script used stolen AWS credentials to submit the model-access use-case form for Anthropic models on Amazon Bedrock.

The researchers say the operation was "automated with assistance from AI". They point to an import path that hints at an AI-agent framework. The report does not show the attacker's prompts or agents, so that part is the researchers' assessment, not a confirmed fact. What is clear is the motive: AI API keys and subscriptions can now be resold or burned for compute, much as stolen cloud keys have long been used for cryptomining.

Who Is Affected

Any internet-facing app that still runs a vulnerable React Server Components build is at risk. That includes Next.js and other frameworks and bundlers that support RSC, such as React Router, Waku, @parcel/rsc, @vitejs/plugin-rsc and rwsdk. 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.

Self-hosted Next.js servers face the worst consequences. These are often long-running containers or VMs that hold every production secret in environment variables, which is exactly what this campaign collected.

Patch Status

Fixes have been available since December 2025: React Server Components 19.0.1, 19.1.2 and 19.2.1. React has since disclosed more RSC denial-of-service and source-code-exposure bugs, so move to the latest patch release on your line, not just the first fix. The advisory lists current safe Next.js releases, including 14.2.35, 15.5.10, 16.0.11 and 16.1.5.

What To Do Now

Check which versions you actually have deployed:

npm ls next react-server-dom-webpack react-server-dom-turbopack react-server-dom-parcel
grep -rn "bluelocale-foothold" /root/.ssh /home/*/.ssh 2>/dev/null

Why It Matters

React2Keys shows how short the gap has become between "a public bug is still unpatched" and "every secret on the box is being priced and resold". Discovery from Certificate Transparency logs means a newly deployed app can be probed within minutes of getting its certificate. AI keys are now a target in their own right: they sit in the same .env files as everything else and turn into money immediately. Patching closes the door, but on a server that was already exposed, only rotating every secret makes it safe again.

Sources

REEF SENTINEL