Breaking
Cyber CrimeDeveloping Story

Unpatched React flaw fuels credential heist

CloudSEK reports a campaign called React2Keys used CVE-2025-55182 to steal over 50,000 credentials from more than 400 organizations.

··2 hours ago·6 min read
Close-up of server cooling fans in a vibrant data center
Photo by Winston Chen on Unsplash

Months after a critical React vulnerability was patched, CloudSEK says it has traced a credential-harvesting operation that pulled more than 50,000 credentials from exposed servers. The campaign, which CloudSEK calls React2Keys, targeted Next.js deployments that had not applied the fix for CVE-2025-55182. CloudSEK reported that the operation compromised infrastructure tied to more than 400 organizations, with its investigation identifying over 19,000 affected hosts worldwide.

The findings describe a scanning pipeline built to find and exploit internet-facing applications at scale, then to sort whatever secrets it found by resale or reuse value. Because the underlying flaw was publicly documented and patched, the victims were running systems that could have been updated.

Inside the scanning pipeline

CloudSEK said the operation ran an automated discovery pipeline that checked six public Certificate Transparency logs every three minutes. Those logs record newly issued TLS certificates, so the attacker could spot freshly deployed domains and add them to a scanning queue almost immediately, according to the researchers.

From there, the pipeline fingerprinted deployments to identify Next.js applications and probed the ones that looked potentially vulnerable. CloudSEK found the exploit could be delivered through a single unauthenticated HTTP POST request to a route reachable through Next.js Server Actions. A crafted React Flight payload triggers prototype pollution, which allows arbitrary JavaScript execution inside the server's Node.js process.

CloudSEK also described a workaround for some defensive configurations. When a payload was blocked at the Cloudflare edge, a dedicated module tried to identify the underlying origin server and target it directly.

What the attackers collected

Once inside a vulnerable application, the attacker searched environment variables, configuration files, and other locations for credentials. CloudSEK listed the targets as AWS, Azure, and Google Cloud identities, database logins, SSH keys, payment tokens, cryptocurrency credentials, and API keys for AI providers including OpenAI, Anthropic, and Google.

The stolen material was not simply dumped. CloudSEK said the attacker validated and ranked credentials by potential monetary value, separating usable keys from expired, disabled, rate-limited, or credit-exhausted ones. Some credits were tested against live services to establish whether they provided access to working AI models or cloud resources.

CloudSEK also reported that some compromised cloud resources were reused to finance further scanning. The researchers identified AWS Lambda workers and virtual machines funded with stolen cloud credentials, meaning compromised organizations effectively became part of the attacker's operational infrastructure.

A flaw with a known fix

CVE-2025-55182 is a critical unauthenticated remote code execution vulnerability affecting React Server Components and frameworks such as Next.js. It was disclosed in December 2025, and the React and Next.js maintainers released patches shortly afterward. The React2Keys findings indicate that a portion of internet-facing deployments remained reachable and exploitable anyway.

The flaw carries critical severity because exploitation does not require an authenticated session, which makes internet-facing deployments particularly exposed. The source article reported that threat actors were already exploiting the vulnerability, a detail that underscores the urgency of patching at the time.

Ranking the take by value

CloudSEK's account of how the haul was sorted is one of the more specific parts of its report. The attacker did not treat every discovered string as equally useful. Credentials were checked for validity and then ordered by what they could be worth, with some keys tested against live services to see whether they unlocked working models or cloud capacity.

That process is consistent with a financially motivated operation rather than a simple smash-and-grab. The source article reported that the attacker identified, tested, and ranked credentials, with some compromised cloud resources used to finance further scanning.

  • 50,000+ credentials stolen in the React2Keys campaign, according to CloudSEK
  • 400+ organizations whose infrastructure was compromised
  • 19,000+ affected hosts identified in CloudSEK's investigation
  • Six Certificate Transparency logs monitored every three minutes
  • CVE-2025-55182 disclosed in December 2025

Patching alone isn't enough

React2Keys also points to a persistence problem for organizations that treat patching as the finish line. CloudSEK found the attacker planting its own SSH public key in compromised accounts' authorized_key files. That can preserve access even after the vulnerable application has been patched.

“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,” Barr said. “You also must rotate everything that was sitting on that server and check for anything they left behind, like SSH keys you don’t recognize.”

— Randolph Barr, chief information security officer at Cequence Security

Barr's point is that the secrets harvested from a server retain their value to an attacker regardless of whether the entry point is later closed. Rotating those credentials and checking for unfamiliar access are separate tasks from applying the patch.

Why the haul is bigger than it looks

CloudSEK's blog post, which described the campaign, tied the scale of the operation to automation rather than to any single high-value target. The pipeline watched certificate logs continuously, fingerprinted new deployments, and attempted exploitation through a single request. That design is built to cover many targets at once instead of pursuing one organization in depth.

The inclusion of AI provider keys alongside cloud and payment credentials also drew comment from security practitioners. Barr said the mix reflects how attackers are adapting their harvesting operations 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.

— Randolph Barr, chief information security officer at Cequence Security

Crystal Morin, senior cybersecurity strategist at Sysdig, compared the campaign's impact to that of the Shai-Hulud npm worm, while drawing a distinction in how the two operate.

“React2Keys isn’t just plausible, it happened,” Morin said. “CloudSEK recovered the attacker’s exfiltration logs, so the 400+ figure is the count from the operator’s records.”

— Crystal Morin, senior cybersecurity strategist at Sysdig

“React2Keys’ impact is comparable to that of Shai-Hulud, the self-replicating npm worm that infected hundreds of packages in its first wave in 2025 and leaked credentials from over 25,000 GitHub repositories in its second,” Morin said. “React2Keys doesn’t self-propagate — it’s an operator-run scanning campaign — but both threats are big, automated, and fueled by stolen secrets.”

— Crystal Morin, senior cybersecurity strategist at Sysdig

Defensive steps named by practitioners

Asked what defenders should do, Barr outlined a set of measures that go beyond patching. He recommended rotating everything that sat on an affected server and checking for unrecognized SSH keys. He also suggested keeping secrets out of environment variables where possible, using short-lived credentials, locking down cloud roles, and setting hard spend limits and alerts on AI usage.

“If I were a defender, I’d patch fast, keep secrets out of environment variables where I can, use short-lived credentials, lock down cloud roles, and set hard spend limits and alerts on AI usage so a stolen key can’t run up an open tab,” Barr added.

— Randolph Barr, chief information security officer at Cequence Security

The researchers' description of the attack path also suggests where exposure checks should focus. Because the exploit arrives as an unauthenticated request to a Next.js Server Actions route, organizations running Next.js in internet-facing roles need to confirm their deployed version and whether the relevant route is reachable from outside.

The bill after the breach

For organizations that find themselves in CloudSEK's tally, the practical problem is that the credentials taken from a compromised host can remain valid long after the vulnerable application is patched. Barr's recommendation to rotate everything that was sitting on the server, and to look for SSH keys that nobody recognizes, addresses that gap directly.

The campaign's use of stolen cloud credentials to fund additional scanning also means a compromised organization may discover its own cloud account has been used to look for more victims. Checking cloud spend and access logs for activity the organization did not initiate is part of understanding the full scope of an incident described in CloudSEK's report.

For the wider industry, the React2Keys findings suggest that the value of a compromised server is increasingly measured by the credentials it holds rather than the data it stores. That interpretation is an inference from the credential types CloudSEK listed and the ranking process it described, not a claim the researchers made. Organizations that run internet-facing Next.js deployments would do well to treat secrets rotation and access review as part of remediation, not as an optional follow-up.

#react2shell#credential theft#nextjs#cloud security#cve-2025-55182

Sources

Iliyas

Founder & Editor, Xploitwire

This article was written and reviewed against the sources listed above before publication, under editorial policies set by Iliyas. Read our Editorial Policy →

← Back to all stories