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:
- Target discovery: the tooling checked six Certificate Transparency logs every three minutes for newly issued certificates. It then fingerprinted those domains for Next.js; only about 3% made the cut.
- Initial access: a single unauthenticated POST to any route that can reach a Server Action, carrying a crafted multipart body with a weaponised React Flight object. That runs attacker JavaScript inside the live Node.js process. Results came back in the
digestfield of Next.js's production error responses. - Evasion: the exploit re-sent its payload at every redirect hop, so authentication middleware wouldn't make a host look patched. One module tried to find unprotected origin servers behind a CDN when the edge blocked the payload. Another fell back to SSRF against the cloud metadata endpoint.
- Harvesting: the payload worked out what kind of runtime it was in (Kubernetes pod, AWS Lambda, ECS Fargate, PM2 or a plain container). It then collected environment variables,
.envand non-standard.env.*files, cloud credential files, SSH keys and Kubernetes service-account tokens. It also pulled full git archives and connected live to victims' PostgreSQL, Redis and MongoDB databases. - Triage: each secret got an estimated monetary value and was then tested live in priority order. Results fell into seven states, from "live" and "quota-capped" to "dead". Keys that worked but had run out of credit were kept, not thrown away.
- Persistence and spread: the tooling planted an SSH key labelled
bluelocale-footholdinauthorized_keys. It also built a list of further SSH targets, though the researchers say they did not confirm it was used. Stolen cloud tokens funded more scanning, including a serverless worker running in a victim's AWS account.
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
- Patch React and your framework to the latest patched release, then redeploy every environment, including staging and forgotten preview apps.
- Assume secrets are gone if a host was vulnerable at any point after 9 November. Rotate AI provider keys, cloud credentials, database passwords, payment, registrar, SMTP and messaging tokens, and secrets-manager gateway credentials.
- Hunt for persistence: check every
authorized_keysfile for unknown keys, especially one with thebluelocale-footholdcomment. Review cron jobs and SSH logins.
grep -rn "bluelocale-foothold" /root/.ssh /home/*/.ssh 2>/dev/null
- Review identity-based access even where no static keys existed: Kubernetes service accounts, EKS Pod Identity, IRSA and Azure managed identities.
- Audit cloud and AI-platform logs for unusual API calls, new IAM users, Bedrock model-access changes, new instances and unexpected spikes in model usage or billing.
- Reduce the damage next time: run apps as non-root, give each app its own secrets, and don't share hosts between applications.
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.
