React2Keys: What to Check After 50,000 Credentials Were Stolen

React2Keys: What to Check After 50,000 Credentials Were Stolen

The React2Keys campaign stole more than 50,000 credentials by exploiting React2Shell, an unauthenticated remote code execution vulnerability affecting React Server Components and frameworks that use them, including vulnerable versions of Next.js. CloudSEK counted infrastructure associated with more than 400 organizations and stolen material from more than 19,000 Next.js hosts; the credentials included keys for AI services, cloud, databases, payments, and cryptocurrency.

Who should check their systems

Organizations hosting applications based on React Server Components or Next.js should take priority, especially if they were exposed to the internet and were not updated after patches were released. React2Shell is identified as CVE-2025-55182. CloudSEK describes its exploitation as an unauthenticated HTTP POST request that allows JavaScript to run in the server's Node.js process.

The scope is not limited to keys stored directly in the application. CloudSEK found credentials for AWS, Azure, and Google Cloud, Kubernetes tokens, SSH keys, access to PostgreSQL, Redis, and MongoDB, keys for AI providers, and secrets for payment services, domain registrars, and cryptocurrency. Repository files and secret manager credentials were also searched for.

For an initial check, CloudSEK offers an exposure checker for work domains or email addresses at exposure.cloudsek.com/react2keys. A query that shows no data does not replace a technical review of servers and accounts: the practical response is to inspect the applications and credentials that were on vulnerable hosts.

What to do, in this order

  1. Inventory affected applications and determine which use React Server Components or Next.js. Include production services and CI/CD environments that build or deploy those applications. CloudSEK found compromised infrastructure in CI/CD, cloud, and AI systems, so do not limit your search to the visible web server.

  2. Update React Server Components to one of the fixed versions listed by CloudSEK or a later version. For Next.js, follow the version that the vendor's advisory identifies as fixed for CVE-2025-55182; do not assume that updating React alone also covers the framework.

    PackageFixed versions listed
    React Server Components19.0.1, 19.1.2, 19.2.1 or later
    Next.jsA version fixed for CVE-2025-55182, according to the vendor's advisory
  3. Treat every secret on the host as exposed if the application may have been vulnerable during the campaign period. Revoke and replace cloud keys, database credentials, AI provider keys, payment and messaging tokens, registrar credentials, and access to secret managers. Also change secrets in environment variables and configuration files: the attack searched both.

  4. Check cloud identities that do not use static keys. CloudSEK describes the use of Kubernetes service account tokens, EKS Pod Identity and IRSA, as well as Azure managed identity tokens. Review their activity and associated roles; the absence of a fixed key on the server is not enough to rule out exposure.

  5. Look for SSH persistence on compromised systems. Inspect the authorized_keys files for accounts and remove keys you do not recognize, after verifying who administers them. CloudSEK identified a specific public key that the campaign added to those files:

    AAAAC3NzaC1lZDI1NTE5AAAAINiNfAw552VRo+E3mBu/MHaVsRDcN0BMGuVCjgIyHbb3

    The search should cover all relevant accounts, not just the web process account. CloudSEK also recommends checking cron jobs and SSH logins.

  6. Audit cloud and AI logs for unusual calls, new IAM users, changes to access to Bedrock models, and instance deployments you did not expect. CloudSEK notes that stolen credentials were used to expand scanning, including with workers on AWS Lambda and virtual machines; also review usage and charges that may correspond to those resources.

  7. Check accounts and services connected to server secrets: databases, repositories, and secret managers, as well as AI providers and payment services. CloudSEK documented searches in Git files and the use of a credential for accessing a secret manager to extract other secrets stored there. If a credential provided access to a centralized service, rotate it and review that service, not just the original application.

  8. Limit the scope of future exposures when you restore the service: CloudSEK recommends running applications without root privileges, isolating secrets by application, and avoiding sharing hosts between applications. Also adjust IAM roles to the permissions required and verify that replaced credentials are no longer valid.

“What worries me is what the attackers walk away with. They’re grabbing environment variables, cloud keys, database logins, and AI keys, and those keep working even after the app gets patched.”

— Randolph Barr, chief information security officer at Cequence Security

React2Keys: qué revisar tras el robo de 50.000 credenciales
© CloudSEK

Mistakes that leave the door open

Patching and considering the incident closed is the most obvious mistake: stolen keys may keep working after the application is fixed. The update removes the vulnerable entry point, but it does not revoke tokens or remove an SSH key that may already have been added to an account.

It is also unwise to check only static keys or look for activity only on the attacked server. The campaign reached cloud identities, databases, repositories, and secret managers, and reused stolen tokens to scan more systems. Review the accounts and services each secret could access.

Finally, do not assume that a credential with no balance or usage limits is necessarily harmless. CloudSEK says the attacker distinguished between active keys, keys with no credit, quota-limited keys, disabled keys, keys tied to a workspace, expired keys, and rate-limited keys; some were kept even if they could not be used at that moment. The check should focus on revoking and replacing exposed credentials, not on whether they seemed useful during a test.

Sources: SecurityWeek, CloudSEK, Hackread - Cybersecurity News, Data Breaches, AI and More, CSO Online