A campaign called React2Keys burned through the credentials of 400 organizations last week, harvesting more than 50,000 cloud and AI API keys in a matter of days. What made it different from the credential stuffing runs that security teams see every week is not the scale. It is that the attack was fully automated end to end by AI, from target discovery through exploitation through exfiltration, with no sustained human operator involvement after initial tasking.
What happened
Threat actors exploited CVE-2025-55182, a critical vulnerability in the React2Shell component used by thousands of Next.js applications. The flaw allows unauthenticated access to environment variable files exposed through the React development server, which in misconfigured or unpatched production deployments gives an attacker a direct read on .env files containing cloud provider credentials, AI platform API keys, database connection strings, and payment processor tokens.
BleepingComputer confirmed the campaign affected more than 400 organizations, with over 50,000 credential pairs exfiltrated before most victims were aware. The majority of affected organizations had not yet applied the patch for CVE-2025-55182 despite it being available for several months.
How AI changed the attack
What is worth pausing on is not that CVE-2025-55182 was exploited. Credential harvesting from misconfigured development server endpoints is not new. The notable part is the AI automation layer. The attackers used AI-assisted tooling to enumerate vulnerable targets at scale across internet-facing Next.js instances, prioritize targets by the credential density visible in their environment files, automate the exfiltration and categorization of harvested secrets by provider and estimated privilege level, and test active credentials in real time against cloud provider APIs before the target organization could rotate them.
The result was a campaign that ran faster than defenders could respond using conventional detection tooling. By the time organizations were alerted, credentials had often already been used to authenticate against cloud APIs and begin reconnaissance or lateral movement in the victim environment.
What this means for defenders
The AI-side-of-the-attack framing is not hype. It captures a real shift in the economics of credential harvesting. When AI automates target enumeration, prioritization, and testing, the human cost of running a credential campaign at scale drops to near zero. The economics that made large-scale exploitation expensive enough to deter opportunistic attackers no longer apply in the same way.
For security teams, this means the assumption that patch lag of a few months on non-critical systems carries acceptable risk needs revisiting. React2Keys-style campaigns will find and exploit that window before the human review cycle catches it. The 400-organization impact is best understood as what happens when AI removes the operational friction from an already well-understood attack class.
What to do now
Patch CVE-2025-55182 immediately if you have not already done so. Rotate all cloud provider credentials, AI platform API keys, and database connection strings on any system running an affected version of Next.js, regardless of whether you have confirmed compromise. Audit your production deployments for environment files accessible via the development server endpoint. Add credential rotation to your incident response playbook for supply chain and framework CVEs, not just confirmed breaches.
For teams running AI-powered services, treat your AI platform API keys as a high-value target class deserving the same rotation cadence as your cloud root credentials. React2Keys demonstrates that attackers are now explicitly targeting AI API keys alongside traditional cloud credentials.
Gigia Tsiklauri is a Security Architect and founder of Infosec.ge. Get in touch if your team is assessing exposure to AI-automated credential harvesting campaigns.