Skip to content
Brief Security & Trust ·

CloudSEK finds automated campaign stealing keys from Next.js servers

The React2Keys campaign treats a Next.js flaw as a door, then takes every secret the app can read.

In brief
  • CloudSEK says an automated attacker used the React2Shell flaw (CVE-2025-55182) to take secrets from servers tied to over 400 organizations. The app is only the entry point.
  • Patching alone is not enough, because stolen keys work on their own. Leaders should ask what the app's process can read.

CloudSEK said on 30 November 2026 that it found an automated campaign it calls React2Keys. The attacker abuses a Next.js flaw named React2Shell (CVE-2025-55182). One unauthenticated request to a Server Action route is enough to run the attacker's code inside the live server. The results leave through Next.js's own production error digest. CloudSEK says servers tied to over 400 organizations lost environment variables, cloud and database logins, and API keys. The attacker checks public certificate logs every three minutes for new sites.

Environment variables are the prize, because they often hold every key the app uses. CloudSEK says the attacker also trades a Kubernetes token for temporary AWS credentials, and takes Azure identity tokens, even when no static key exists. In one case, the app could read a login for an outside secrets manager, and the attacker used it to download everything stored there. It also adds its own SSH key to compromised accounts, so a patch does not remove access. CloudSEK did not confirm that a later stage uses a 74-entry target list built from stolen SSH logins.

The app is only the entry point. The exposure is whatever its process can read. Leaders can ask what that process can read, which keys they could rotate within a day, and whether anyone reviews authorized_keys files. For the fix, CloudSEK advises moving React Server Components to version 19.0.1, 19.1.2, 19.2.1 or newer, and treating every secret on an affected host as stolen and changing it. It has launched an exposure validation tool that asks for a domain or work email.

A WebPulse Brief: a short report of an important event, written by the WebPulse Newsroom with AI assistance and checked against the reporting below. When there is more to explain, we follow up with a full story. How we use AI.

Reporting: CloudSEK.