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


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.
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
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_keysfile 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.