An automated credential-harvesting campaign has leveraged a critical remote code execution vulnerability in Next.js to steal tens of thousands of sensitive development and infrastructure keys. First uncovered by cybersecurity firm CloudSEK, the campaign, dubbed React2Keys, compromised developer CI/CD environments and cloud pipelines across more than 400 organizations worldwide.

According to reporting from SecurityWeek, the attacker extracted over 50,000 credentials after breaching more than 19,000 Next.js hosts. The operation targeted high-value assets, focusing heavily on AI provider API keys, cloud service tokens, database passwords, and cryptocurrency service access.

Rapid Target Discovery and Mass Exploitation

The root cause of the widespread compromise is React2Shell, tracked as CVE-2025-55182. Assigned a maximum CVSS score of 10, the flaw is an unauthenticated remote code execution vulnerability affecting React Server Components and Next.js Server Actions, first made public in early December 2025.

As detailed by Dark Reading, the threat actor engineered a rapid reconnaissance pipeline to find new attack targets. The operation polled six public Certificate Transparency (CT) logs every three minutes, allowing newly provisioned TLS certificates to be queued for scanning within moments of deployment.

After deduplicating domains, the actor deployed fleets of virtual machines and Lambda workers to fingerprint the hosts for vulnerable Next.js instances. CloudSEK observed that approximately 3% of the fingerprinted hosts met the attacker's criteria for live exploitation.

The primary exploitation wave began on November 9, with mass exploitation observed through November 18 and final exfiltration concluding on November 19. Investigators recovered an extensive attacker infrastructure, including a 1.9-million-line exfiltration log, individual victim folders, scan ledgers, and a toolkit containing over 900,000 files.

How the React2Keys Payload Harvested Secrets

Once a target passed filtering, the attacker sent a single unauthenticated HTTP POST request containing malicious JavaScript. Because of the CVE-2025-55182 flaw, the code executed directly within the context of the live Node.js process.

The initial payload fingerprinted the runtime environment and dumped active environment variables. It systematically scanned for known secrets files, including standard and non-standard .env.* configurations. Subsequent payloads were then injected to dig deeper into the compromised file systems.

The attackers harvested a broad range of sensitive artifacts, including:

  • AWS access credentials and Azure tokens
  • Kubernetes service-account tokens and SSH keys
  • Git repository archives and third-party secrets manager data
  • Database credentials for PostgreSQL, Redis, and MongoDB, alongside Firebase configuration keys
  • Proprietary AI provider API keys

After collecting the secrets, the threat actor ranked them by estimated monetary value and tested them via automated live validation. Notably, CloudSEK found that the attacker immediately used valid stolen cloud tokens to spin up secondary scanning infrastructure, expanding the reach of the campaign beyond their original worker pools.

Widespread Global Fallout

The attack hit both public and private entities across dozens of countries. The top five most affected organizations identified by researchers include SoftBank, Harvard University, Mercell, Senkadagala Finance, and Chilean public health organization Fonasa. Geographically, Brazil experienced the highest volume of compromised hosts, followed by India, Germany, Russia, and France.

Security analysts warn that patching the software vulnerability only stops initial access and does not neutralize the post-exploitation damage. Because the attacker systematically archived authentication keys, any compromised token remains functional indefinitely unless explicitly revoked.

What You Should Do

Organizations hosting Next.js or React Server Components applications must ensure their internet-facing environments are clean and secured against the underlying flaw.

  • Upgrade immediately: Ensure React Server Components packages are updated to versions 19.0.1, 19.1.2, 19.2.1, or later releases, and migrate Next.js to a vendor-patched version addressing CVE-2025-55182.
  • Rotate all host secrets: Any server exposed prior to applying the patch must be treated as fully compromised. Immediately rotate all database credentials, SSH keys, cloud provider tokens, Git credentials, and third-party AI API keys present on those systems.
  • Audit infrastructure logs: Inspect cloud provider authentication logs, database connection records, and AI platform usage for unexpected API activity originating from unknown external IP addresses.
  • Apply least privilege: Configure production Node.js applications to execute under non-root service accounts, isolate secrets per application, and limit the access permissions assigned to environment tokens.
  • Check domain exposure: Utilize CloudSEK's publicly released exposure validation tool to verify whether corporate domains or work email addresses appeared in the threat actor's exfiltration logs.