Threats · Vulnerabilities · Data leaks
React2Keys campaign harvests 50,000+ credentials including AI API keys via Next.js flaw
Attackers exploiting an unpatched React Server Components vulnerability have compromised more than 400 organizations, stealing AI, cloud, and payment credentials.
A large-scale credential harvesting operation is actively exploiting a critical remote code execution vulnerability in Next.js and React Server Components, stealing credentials from AI providers, cloud platforms, databases, and payment services, CSO Online reported.
Research by CloudSEK found the campaign, called React2Keys, has taken more than 50,000 credentials and affected infrastructure tied to more than 400 organizations. The investigation identified over 19,000 affected hosts worldwide, according to the report.
How the attack works
The operation centers on CVE-2025-55182, a vulnerability that allows unauthenticated attackers to execute arbitrary code on exposed servers. CSO Online reported that exploitation requires only a single unauthenticated HTTP POST request to a Next.js Server Actions route, where a crafted React Flight payload triggers prototype pollution and enables JavaScript execution inside the server's Node.js process.
Attackers ran an automated discovery pipeline that monitored six public Certificate Transparency logs every three minutes to identify newly deployed domains almost immediately after their TLS certificates were issued, CloudSEK said. When edge-layer defenses blocked a payload, a dedicated module attempted to locate and target the underlying origin server directly.
Once inside a compromised application, the attacker searched environment variables and configuration files for credentials spanning AWS, Azure and Google Cloud identities, SSH keys, payment tokens, cryptocurrency credentials, and API keys from AI providers including OpenAI, Anthropic, and Google, according to the report.
Credential ranking and persistence
CloudSEK found that stolen credentials were validated and ranked by potential monetary value, with some tested against live services to confirm whether they could access working AI models or cloud resources. Randolph Barr, chief information security officer at Cequence Security, told CSO Online that targeting AI keys alongside cloud and payment credentials shows how attackers are adapting their methods to the value of modern application environments. "If someone steals your AI key, they run their work on your bill, and you only find out when the invoice shows up," Barr said.
The campaign also plants SSH public keys in compromised accounts, preserving access even after the vulnerable application is patched. CloudSEK additionally found that stolen cloud credentials were reused to provision scanning infrastructure, including AWS Lambda workers and virtual machines, effectively turning victim environments into part of the attacker's operational pipeline.
Crystal Morin, senior cybersecurity strategist at Sysdig, noted that patches were released by React and Next.js maintainers shortly after the vulnerability's disclosure, but the React2Keys findings show that many systems remain unpatched. Barr said organizations must also rotate all credentials that were present on compromised servers and audit for any unauthorized SSH keys left behind.
Spectro Cloud launches air-gapped agent governance platform in early preview
Docker Sandboxes flaw let malicious kit updates silently exfiltrate AI API keys