• Home  
  • React2Keys: How One Campaign Turned an Old React Flaw Into 50,000 Stolen Credentials
- Cybersecurity

React2Keys: How One Campaign Turned an Old React Flaw Into 50,000 Stolen Credentials

CloudSEK found React2Keys stole over 50,000 credentials from more than 19,000 hosts through React2Shell. Patching alone will not revoke what was taken.

A ring of metal keys on a dark desk beside a laptop, with a server rack glowing softly in the background, illustrating stolen server credentials.

A year after React2Shell was patched, the flaw is still paying off for attackers. CloudSEK reported on 30 November 2026 that an automated campaign it calls React2Keys used the flaw to steal more than 50,000 credentials from over 19,000 hosts linked to more than 400 organisations. The campaign ran from 9 to 19 November 2026, and the fix that would have stopped it has existed since December 2025. Patching now closes the door, but it does not cancel the keys already taken, and the attackers left their own SSH key behind on compromised servers.

Key takeaways:

  • React2Keys exploited React2Shell (CVE-2025-55182), a flaw disclosed in December 2025 with fixes available since then. The news is the campaign, not the flaw.
  • CloudSEK’s findings from recovered attacker infrastructure: 50,000-plus credentials, 19,000-plus hosts, 400-plus organisations. No organisation has independently confirmed a breach.
  • The haul included cloud keys, AI provider keys, database logins, payment and crypto credentials, plus stolen Claude Code logins used to run AI work billed to victims.
  • The attackers planted an SSH key for persistent access. Patching does not remove it.
  • Anyone running an unpatched React Server Components or Next.js app should patch, rotate every secret on the host, and hunt for unknown SSH keys.

What React2Keys is

React2Keys is CloudSEK’s name for a fully automated credential-harvesting operation built on React2Shell. The firm says it mapped the whole attack lifecycle from the adversary’s own infrastructure: a 1.9-million-line exfiltration log, per-victim result folders, a toolkit of more than 900,000 files, and scan-ledger and inventory databases. That recovered material, not a telemetry estimate, is the source of every number in this article. The operator is unnamed, and CloudSEK attributes the campaign to no group or state.

What CloudSEK counted Figure What it means
Credentials stolen and validated More than 50,000 Individual secrets: API keys, tokens, logins and private keys
Hosts compromised More than 19,000 Individual servers running unpatched Next.js deployments
Organisations linked to affected infrastructure More than 400 Organisations whose CI/CD, cloud or AI infrastructure was associated with it

These are three different units: fifty thousand secrets, nineteen thousand servers, four hundred organisations. They cannot be added together, and nineteen thousand hosts are not nineteen thousand people. Victims span dozens of countries and several cloud providers, enterprise and small business alike; CloudSEK says the campaign was not aimed at a specific sector or region. Reporting of the CloudSEK data puts Brazil first among affected countries, followed by India, Germany, Russia and France.

The campaign ran 9 to 19 November 2026, with mass exploitation 9 to 18 November. SecurityWeek, reporting on the CloudSEK data on 1 December, named SoftBank, Mercell, Fonasa, Senkadagala Finance and Harvard University among the organisations most represented. That is a report about recovered data, not a confirmed breach: none of those organisations has confirmed it was compromised.

React2Shell, the year-old flaw behind the campaign

React2Shell, tracked as CVE-2025-55182, is an unauthenticated remote code execution flaw in React Server Components, and therefore in frameworks that use them, most notably Next.js Server Actions. One specially crafted request lets an attacker run their own code on the server, with no login needed. It carries a CVSS score of 10.0, the maximum.

The flaw is a year old. Researcher Lachlan Davidson reported it to the React team through Meta’s bug bounty on 29 November 2025, and React disclosed it on 3 December 2025, the same day the first fixes shipped: React Server Components 19.0.1, 19.1.2 and 19.2.1, for the affected 19.0.0, 19.1.0, 19.1.1 and 19.2.0 releases. Fixed Next.js releases followed, from 15.0.5 to 16.0.7. CISA added the flaw to its Known Exploited Vulnerabilities catalog on 5 December 2025. Amazon’s security team reported exploitation attempts within hours of the disclosure, in activity it described as China-linked. That attribution belongs to the original December 2025 exploitation; CloudSEK attributes no state actor to React2Keys.

Two details from the original advisory matter for anyone checking their own estate. First, an app could be affected even if it never defines a Server Function, as long as it supports React Server Components. Second, Next.js first tracked its exposure under a separate identifier, CVE-2025-66478, later rejected as a duplicate; CVE-2025-55182 is the canonical identifier. The flaw has been exploited in the wild since December 2025; React2Keys is what a year of unpatched servers looks like once exploitation is industrialised.

How the campaign worked

CloudSEK describes a seven-stage pipeline, automated with assistance from AI. The report does not publish the attacker’s prompts or agent configurations, so the exact role of AI is the researchers’ assessment rather than a shown fact. One detail hints at an AI-agent framework: imports from a .hermes/skills path.

Discovery and entry. The actor polled six public Certificate Transparency logs every three minutes, so a new certificate could become a target within minutes. Domains were deduplicated, then fingerprinted for Next.js. Only about 3 percent passed. Entry took a single unauthenticated POST request to any route reaching a Server Action, carrying a crafted multipart body with a weaponized React Flight object. Prototype pollution made the server execute attacker JavaScript inside the live Node.js process, and the output returned inside the digest field of a thrown error, so Next.js’s own production error handling became the exfiltration channel.

Harvesting and pivot. The payload fingerprinted the runtime — a Kubernetes pod, a Lambda function, an ECS Fargate task, a PM2 host or a generic container — then matched every environment variable against a credential pattern and read secret files such as .env files, cloud credential files and SSH keys. Follow-on payloads then ran inside the victim environment. On AWS, the tooling queried the container metadata endpoint and exchanged a Kubernetes or IRSA token through EKS Pod Identity for live temporary credentials, even when no static key existed; 225 captured STS session files show validation running near real time. On Azure it stole managed-identity tokens from the metadata service. On Google Cloud it minted OAuth tokens from stolen service-account keys to inventory Firebase apps and keys. Drivers for PostgreSQL, Redis and MongoDB were installed at runtime and live connections opened to the victim’s own databases. Full git archives were exfiltrated with history, and a gateway credential pulled every secret from a third-party secrets manager. Centralising secrets did not protect victims whose vault credential was readable from the app.

Persistence, triage and reinvestment. The actor’s SSH public key was appended to a compromised account’s authorized_keys file, so patching does not remove access. CloudSEK labels the key “bluelocale-foothold” and publishes the key blob as an indicator to search for. A companion pipeline built a 74-entry lateral-movement target list, although CloudSEK did not confirm a separate stage used it. Every secret was scored by estimated monetary value, then live-validated in priority order across seven states: live, no-credit, quota-capped, organization-disabled, workspace-scoped, dead and rate-limited. A key that was valid but out of credit was tracked rather than discarded. Stolen cloud tokens then funded more scanning: a serverless worker on AWS Lambda, a VM fleet with 1,483,686 additional target lines, and Hetzner servers provisioned as scan workers. Stolen credentials were also put to work directly: stolen Claude Code OAuth tokens were refreshed to run inference billed to the victim’s subscription, stolen keys were tested against roughly ten large language model providers, and Bedrock use-case forms were submitted with stolen credentials where accounts were gated. Binance keys were validated with real signed account calls routed through Tor.

Google’s threat researchers reported a similar pattern this year — AI frameworks turning patches into working exploits without a human in the loop — in Google Finds AI Agents Turning Patches Into Exploits Alone.

What the attackers stole

Category What CloudSEK lists Why it matters
Cloud identity AWS access keys and session credentials, Azure managed-identity tokens, Google Cloud service-account keys Each one can open the victim’s own cloud account
AI provider keys Anthropic, OpenAI and Gemini API keys, Claude Code OAuth tokens Usable immediately, and billable to the victim
Databases PostgreSQL, Redis and MongoDB logins Live connections were opened to the victim’s databases
Source code and developer tokens GitHub tokens, full git archives Exposure spread from one server to the whole organisation
Payment and registrar Payment, registrar and SMTP credentials Money movement and domain control
Crypto Exchange API keys and wallet private keys Classified by whether funds could actually be moved

Why patching alone does not fix it

CloudSEK states the core problem plainly: stolen credentials work independently of the vulnerable app, so patching alone is insufficient. A patched server stops new exploitation through React2Shell. It does nothing about the credentials that already left the building, and it does not remove the planted SSH key. Three consequences follow.

First, every secret on an affected host must be treated as compromised, whether or not it was ever used — including keys that look safe because they are not static. Temporary AWS session credentials were captured and validated near real time, and managed-identity tokens were stolen from the metadata service. Rotating only the keys in a .env file misses the ones harvested from the runtime.

Second, the planted SSH key survives the patch. Until every authorized_keys file is audited and unknown keys removed, the attackers keep a way back in. CloudSEK publishes the key blob as a search indicator: the key begins AAAAC3NzaC1lZDI1NTE5AAAAINiNfAw552VRo+E3mBu/MHaVsRDcN0BMGuVCjgIyHbb3 and carries the comment label “bluelocale-foothold”. Search for that blob, and for any key you cannot account for.

Third, the campaign’s own discipline makes the damage durable. Keys valid but out of credit were tracked, not discarded, so a topped-up account becomes usable again. A secrets-manager gateway credential gave the attackers every secret in the vault, and stolen cloud tokens funded further scanning, so the campaign grew from its own victims.

The same toolkit also targets WordPress and Odoo

React2Shell was the main entry point, but the same worker code can switch targets. An Odoo mode targets CVE-2026-25137, an unauthenticated database manager flaw. A separate chain targets WordPress flaws CVE-2026-63030 and CVE-2026-60137 and shares the harvesting and alerting layer; of 2,939 WordPress hosts scanned, only four were confirmed vulnerable. The campaign’s centre of gravity is React and Next.js, but the harvesting machinery is reusable, and a team running WordPress alongside Next.js should not assume the React patch ends the story. The FBI warned in November that a different campaign, Gootloader, had infected more than 1,000 WordPress sites; read FBI Warns Gootloader Is Using SEO Poisoning and Hacked WordPress Sites.

What to check now

CloudSEK’s remediation list is short and worth following in order, assuming the worst about any host that was reachable and unpatched during the campaign window.

  1. Check exposure. Enter your domain or work email at CloudSEK’s exposure validation tool, exposure.cloudsek.com/react2keys.
  2. Patch. Upgrade React Server Components to 19.0.1, 19.1.2, 19.2.1 or later, and Next.js to a patched release: 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 or 16.0.7. The checker npx fix-react2shell-next confirms whether a deployment is still exposed.
  3. Rotate everything on the host. Assume every environment variable and secret file is compromised: cloud keys, AI provider keys, database credentials, registrar, payment and messaging tokens, and gateway credentials.
  4. Audit persistence. Review every authorized_keys file for unknown keys, including the published “bluelocale-foothold” key, plus cron jobs and SSH logins.
  5. Do not rely on “no static keys found.” Review Kubernetes service-account use, EKS Pod Identity and IRSA activity, and Azure managed-identity token usage. Scope IAM roles tightly.
  6. Audit logs. Check AWS CloudTrail, cloud audit logs and AI-platform usage for unusual calls, new IAM users, Bedrock access changes and unexpected deployments.
  7. Reduce the blast radius. Run apps as non-root, isolate secrets per app, and avoid sharing hosts across applications. The WordPress security hardening checklist covers the same discipline for WordPress estates.

What is still unknown

The operator is unnamed, and CloudSEK attributes the campaign to no group or state. No organisation named in the recovered data has independently confirmed a breach, so the 400-organisation figure remains CloudSEK’s finding, not a confirmed victim count. The report shows stolen credentials validated and used for AI inference billed to victims, but confirms no downstream compromise beyond that. The last exfiltration CloudSEK observed was 19 November; the report does not say whether the operation has stopped. The honest position is the one CloudSEK takes: assume exposure until the checks above prove otherwise.

Frequently asked questions

Is React2Shell a new vulnerability?

No. React2Shell (CVE-2025-55182) was disclosed on 3 December 2025, and fixes have been available since then. React2Keys is the campaign that exploited the year-old flaw at scale in November 2026, against servers that were never patched.

I patched my app. Am I safe now?

Patching closes the entry point, but it does not revoke stolen credentials or remove the planted SSH key. Rotate every secret on the host, audit authorized_keys for unknown keys including “bluelocale-foothold”, and check cloud and AI-platform audit logs for unusual activity.

How do I know if my organisation was affected?

Check CloudSEK’s exposure validation tool at exposure.cloudsek.com/react2keys with your domain or work email, then search every authorized_keys file for the published attacker key, review cloud audit logs for new IAM users and unexpected deployments, and check AI-platform usage for calls you did not make.

Sources and Further Reading

More cybersecurity coverage is in the Cybersecurity archive.

Leave a comment

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