Be first to know. Be ready to defend.

React2Keys: a year-old React flaw let one attacker steal 50,000 credentials in ten days

Illustration headed React2Keys: a year-old React flaw yields 50,000 secrets. A terminal box describes one exploited server: one unauthenticated POST request; environment variables, .env files and SSH keys dumped; pivot to cloud, databases and git; keys ranked by value; an SSH key planted in authorized_keys. A footer warns that patching alone does not remove the access. Chips read CVE-2025-55182, CVSS 10, Patch, then rotate.Illustration headed React2Keys: a year-old React flaw yields 50,000 secrets. A terminal box describes one exploited server: one unauthenticated POST request; environment variables, .env files and SSH keys dumped; pivot to cloud, databases and git; keys ranked by value; an SSH key planted in authorized_keys. A footer warns that patching alone does not remove the access. Chips read CVE-2025-55182, CVSS 10, Patch, then rotate.
On this page
  1. Who is exposed
  2. How the campaign worked
  3. What was taken
  4. Why patching isn’t enough
  5. What to do

A single attacker used a year-old React flaw to strip secrets from thousands of web servers in ten days, according to threat intelligence firm CloudSEK. Its report, published on 30 November, says the campaign, which it calls React2Keys, took more than 50,000 credentials from over 19,000 victims. It says CI/CD, cloud and AI infrastructure linked to more than 400 organisations was compromised.

The attacker used React2Shell, CVE-2025-55182, a maximum-severity flaw in React Server Components. It lets anyone run code on a server with one unauthenticated request. React fixed it on 3 December 2025, and CISA added it to its KEV catalogue two days later, noting known use by ransomware groups. Plenty of servers were still unpatched almost a year on.

Who is exposed

The flaw affects the React Server Components packages react-server-dom-webpack, react-server-dom-turbopack and react-server-dom-parcel in versions 19.0.0, 19.1.0, 19.1.1 and 19.2.0. Frameworks that bundle them are affected too, including Next.js, React Router’s server components, Waku and RedwoodSDK. React says an app can be vulnerable even if it doesn’t define any server functions, as long as it supports React Server Components.

CloudSEK says victims span dozens of countries. Brazil had the largest share at 22.9%, followed by India, Germany, Russia and France. Its list of the most significant affected organisations includes SoftBank, Mercell, Chile’s public health insurer FONASA, Senkadagala Finance, Harvard University and Charité Berlin. These are CloudSEK’s findings. We haven’t seen confirmation from any of the organisations.

How the campaign worked

CloudSEK says it gained access to the attacker’s own infrastructure. It recovered a 1.9-million-line exfiltration log, per-victim folders and a toolkit of more than 900,000 files.

How the React2Keys campaign worked, according to CloudSEK. Step 1, watch certificate logs, so new domains become targets within minutes. Step 2, exploit React2Shell: one POST request runs code, and the output comes back inside an error digest. Step 3, harvest the host: environment variables, .env files, cloud and Kubernetes tokens, and SSH keys. Step 4, pivot and persist: cloud metadata services, databases, git history and an SSH backdoor. Step 5, validate and rank: live-test the keys, score them by value and reuse them to scan for more victims.How the React2Keys campaign worked, according to CloudSEK. Step 1, watch certificate logs, so new domains become targets within minutes. Step 2, exploit React2Shell: one POST request runs code, and the output comes back inside an error digest. Step 3, harvest the host: environment variables, .env files, cloud and Kubernetes tokens, and SSH keys. Step 4, pivot and persist: cloud metadata services, databases, git history and an SSH backdoor. Step 5, validate and rank: live-test the keys, score them by value and reuse them to scan for more victims.

The attacker watched six public Certificate Transparency logs, so a server could be probed within minutes of getting a new TLS certificate. A single crafted POST ran JavaScript inside the Node.js process. The output came back in the digest field of an error, so Next.js’s own error handling carried the data out.

Once inside, the payload read every environment variable, .env files, cloud credential files, SSH keys and the Kubernetes service-account token. Follow-up scripts then went further:

  • They swapped Kubernetes tokens for live AWS credentials and took Azure managed-identity tokens, so servers with no stored keys were still exposed.
  • They opened connections to the victims’ PostgreSQL, Redis and MongoDB databases.
  • They copied whole git repositories, with history, and used stolen GitHub tokens to search entire organisations for more secrets.
  • They used one stolen gateway credential to pull every secret from a third-party secrets manager.

Every key was tested against its provider and ranked by estimated value. Stolen cloud tokens then paid for more scanning.

What was taken

Credentials stolen in React2Keys by category, according to CloudSEK. Other app secrets: 20,636. Auth secrets such as JWT, OAuth and session secrets: 9,581. Database credentials for Postgres, MySQL, Mongo and Redis: 7,778. Cloud credentials for AWS, Azure, GCP, Cloudflare and Vercel: 7,777. Communications tokens for SMTP, Twilio, Slack, Telegram and Discord: 3,100. LLM and AI keys for OpenAI, Anthropic, Gemini and Groq: 2,989. Payment keys for PayPal and Stripe: 2,091. DevOps tokens for GitHub, GitLab and npm: 166. 54,118 credentials in total.Credentials stolen in React2Keys by category, according to CloudSEK. Other app secrets: 20,636. Auth secrets such as JWT, OAuth and session secrets: 9,581. Database credentials for Postgres, MySQL, Mongo and Redis: 7,778. Cloud credentials for AWS, Azure, GCP, Cloudflare and Vercel: 7,777. Communications tokens for SMTP, Twilio, Slack, Telegram and Discord: 3,100. LLM and AI keys for OpenAI, Anthropic, Gemini and Groq: 2,989. Payment keys for PayPal and Stripe: 2,091. DevOps tokens for GitHub, GitLab and npm: 166. 54,118 credentials in total.

CloudSEK also describes how the attacker used AI. It took victims’ Claude Code login tokens and ran inference billed to their subscriptions, and it tested stolen keys against about ten model providers. Where a stolen AWS account hadn’t been approved for Claude models on Bedrock, a script filled in Anthropic’s use-case form with the victim’s credentials.

Why patching isn’t enough

The attacker appended its own SSH public key to compromised accounts’ authorized_keys files. CloudSEK’s Sigma rule gives the exact key, which carries the comment bluelocale-foothold. A patched server can still have that backdoor, and stolen credentials keep working until you rotate them.

What to do

  • Upgrade the React Server Components packages to 19.0.1, 19.1.2, 19.2.1 or later, and Next.js to the latest patch in your release line, such as 14.2.35, 15.5.10 or 16.1.5. Include preview and staging deployments.
  • If any app was unpatched in November, assume every environment variable and secret file on it was stolen. Rotate cloud, AI provider, database, payment, messaging and secrets-manager credentials.
  • Search every authorized_keys file for unknown keys, including the one in CloudSEK’s Sigma rule, and review cron jobs and SSH logins.
  • Check AWS CloudTrail and other cloud audit logs from 9 November for new IAM users, Bedrock model-access changes and unexpected instances. Review Kubernetes service-account, EKS Pod Identity and Azure managed-identity activity too.
  • Set spending alerts on AI provider keys, where misuse often shows up first.
  • CloudSEK offers an exposure check that takes your domain or work email.
  • Run apps as non-root and keep each app’s secrets separate, so one compromised server can’t expose another’s keys.