More than 50,000 credentials were reportedly stolen through automated exploitation of vulnerable React and Next.js environments. The React2Keys campaign reached more than 19,000 hosts and compromised the development, cloud, and AI infrastructure of over 400 organizations. Attackers dumped environment variables, searched secret files, validated stolen keys, and ranked them by estimated value. Cloud, database, source-code, payment, cryptocurrency, and AI provider credentials were among the targets.
What Happened
A threat actor reportedly stole more than 50,000 credentials through a highly automated campaign exploiting the React2Shell vulnerability in React Server Components and affected Next.js environments. The campaign, called React2Keys, reached more than 19,000 Next.js hosts and compromised the development, cloud, and AI infrastructure of over 400 organizations.
The campaign began on November 9, when the attacker deployed scanners and dumped environment variables from vulnerable hosts. Mass exploitation was observed between November 9 and 18, with the last exfiltration activity seen on November 19. The attacker sent a malicious request that executed a JavaScript payload inside the live Node.js process.
That payload fingerprinted the environment, examined variables, and searched known secret files as well as non-standard environment files. Additional payloads harvested more material. The stolen credentials were then validated and ranked according to their estimated monetary value.
The targeted material included cloud credentials, Kubernetes service-account tokens, SSH keys, Azure tokens, source-code repository archives, database access, third-party secret managers, payment services, cryptocurrency services, and AI provider keys. Researchers also reported that stolen cloud tokens were used in follow-up scanning, allowing the attacker to expand its scanning resources beyond its original workers.
The underlying vulnerability allows unauthenticated remote code execution. It has been exploited in the wild, and organizations have been urged to patch affected systems, apply web application protections to relevant endpoints, and conduct threat hunting.
Why It Matters
The scale of the campaign is important, but the type of data stolen creates the deeper risk. Environment variables and secret files often contain the credentials that connect an application to cloud platforms, databases, source repositories, deployment systems, and third-party services. Access to one vulnerable web server can therefore open paths into several connected environments.
The campaign’s validation and ranking of credentials suggests that collection was not random. Keys were assessed for usefulness and estimated value. Valid cloud tokens could support additional scanning or other follow-up activity, while repository access or deployment credentials could affect software-delivery systems.
Patching stops the known entry route, but it does not invalidate material already taken. An organization that updates the affected software without rotating exposed secrets may leave attackers with working access. That changes incident response from a narrow server repair into a broader identity and cloud investigation.
The campaign also demonstrates how automation compresses the time between discovery, exploitation, collection, and reuse. Organizations with internet-facing React or Next.js environments need to assume that vulnerable systems may have been checked at scale rather than waiting for a targeted warning.
What to Watch
Organizations should watch for evidence that stolen credentials are being used after the original web compromise. Relevant signs may include unexpected cloud activity, new scanning infrastructure, unfamiliar access to repositories, abnormal database connections, or use of service-account tokens outside expected systems.
The reported last exfiltration activity was observed on November 19, but that does not prove stolen credentials stopped being useful on that date. If secrets remained active, follow-up access could occur later. Investigation should therefore cover both the vulnerable host and every connected service represented by credentials stored there.
Defenders should also determine whether the affected application had access to third-party secret managers or deployment systems. If so, the potential exposure may extend beyond values directly visible in environment files.
Further reporting may clarify which organizations experienced confirmed misuse beyond credential theft. Until then, teams should distinguish between confirmed exposure, evidence of credential validation, and confirmed downstream access.
What Defenders Should Do
Exposure review: Identify affected React Server Components and Next.js deployments, especially internet-facing systems, and apply the available fixes.
Threat hunting: Review application, web, process, and cloud logs for suspicious requests, unexpected JavaScript execution, environment-variable access, secret-file discovery, and outbound exfiltration during the reported campaign period.
Secret rotation: Replace cloud credentials, service-account tokens, SSH keys, repository credentials, database passwords, AI provider keys, and other secrets that were accessible to a vulnerable host. Revoke old values rather than only creating new ones.
Cloud and development review: Examine cloud audit activity, deployment pipelines, source repositories, and connected databases for unauthorized use. Pay particular attention to tokens that could create resources or expand scanning capacity.
Containment: Treat a compromised application as a possible bridge into connected systems. Limit privileges, remove unnecessary secrets from runtime environments, and verify that service accounts have only the access required.
The Larger Lesson
Modern web applications often sit at the intersection of code, cloud services, databases, AI platforms, and deployment pipelines. That connectivity makes them productive, but it also increases the consequence of a server compromise.
The campaign shows why secret management is inseparable from vulnerability management. Fast patching reduces the window for new exploitation. Short-lived, narrowly scoped, and well-monitored credentials reduce what attackers can do after exploitation succeeds.
The lasting lesson is that recovery cannot stop at the vulnerable component. When attackers can read runtime secrets, defenders must follow those identities into every system where they could still provide access.
