Act nowVulnerabilities

React2Keys: an automated campaign used the year-old React2Shell flaw to steal more than 50,000 secrets from Next.js servers, including AI and cloud keys; patching is not enough, rotate every secret (CVE-2025-55182)

CloudSEK reported on 30 November 2026 a fully automated campaign it calls React2Keys. Between 9 and 18 November it exploited React2Shell (CVE-2025-55182, CVSS 10.0, fixed in December 2025) on more than 19,000 Next.js hosts, read their environment variables and secret files, and took more than 50,000 credentials, from AI provider keys to cloud, database and payment keys. It also left its own SSH key behind. What to patch, what to rotate and what to check.

How urgent

Act now

Who is affected

Apps that use React Server Components, mainly Next.js 15.x and 16.x with the App Router (and 14.3 canaries), still running a React or Next.js version from before the December 2025 fixes. Pages Router apps, Next.js 13.x and 14.x stable, and React apps without a server are not affected by this flaw

What to do

Update React Server Components packages to 19.0.1, 19.1.2 or 19.2.1 or later and Next.js to the patched release of your line; then rotate every secret the server could read (AI, cloud, database, payment keys), check authorized_keys, cron jobs and SSH logins for anything you did not add, and review cloud and AI account logs

Published 1 Dec 2026 · Sources last checked 1 Dec 2026No. 145 / 168

Watch the short video

The video loads from YouTube (privacy-enhanced mode) only when you press play.

What happened

On 30 November 2026 the research firm CloudSEK published what it calls React2Keys: a fully automated campaign that exploited React2Shell (CVE-2025-55182) on internet-facing Next.js servers. React2Shell is a critical flaw (CVSSCVSS score A number from 0 to 10 that rates how serious a flaw is in general. From 9.0 up it is called Critical. Tap again to open the glossary 10.0) in React Server Components that lets anyone run code on the server without logging in. React fixed it on 3 December 2025, and CISA added it to its catalog of exploited flaws on 5 December 2025. A year later, many servers were still unpatched.

According to CloudSEK, the campaign scanned from 9 November, exploited servers in bulk until 18 November, and took more than 50,000 credentials from more than 19,000 Next.js hosts; more than 400 organizations had cloud, CI/CD or AI infrastructure compromised.

What it took

Once inside, the code read environment variables and secretSecret (API key, token, password) Any piece of text that proves to a service that you are allowed in, such as an API key, a database password or an access token. Tap again to open the glossary files (including .env-style files) and moved on to cloud accounts and databases. CloudSEK lists AI provider keys (Anthropic, OpenAI, Google Gemini), AWS, Azure and GCP credentials, Kubernetes tokens, database and Firebase keys, payment, messaging and crypto exchange keys, and git archives. It says the operation checked which stolen keys worked and ranked them by value.

Why patching alone is not enough

CloudSEK says the attackers added their own SSH key to the servers' authorized_keys, so they keep access after you update. And every secret the server could read must be treated as stolen. Next.js already advised in December 2025 to rotate application secrets if a server stayed online unpatched.

What to do

  1. Update: React Server Components packages to 19.0.1, 19.1.2 or 19.2.1 or later; Next.js to the patched release of your line (React's updated post lists 14.2.35, 15.0.8, 15.1.12, 15.2.9, 15.3.9, 15.4.11, 15.5.10, 16.0.11 and 16.1.5). Next.js offers npx fix-react2shell-next to do it.
  2. Rotate every secret the server could read: AI, cloud, database, payment and messaging keys.
  3. Check for persistence: unknown keys in authorized_keys, new cron jobs, unexpected SSH logins.
  4. Review logs of your cloud and AI accounts (for example CloudTrail and your AI provider's usage) for activity since early November.
  5. Going forward (our advice and CloudSEK's): run apps as a non-root user and give each app only its own secrets.

What we could not confirm

The victim counts come from CloudSEK's analysis of the attackers' logs and tools; we cannot check them, and CloudSEK sells security services. It names affected organizations; we do not repeat them. CloudSEK also offers its own exposure checker; we have not tested it. We do not know who runs the campaign.

Glossary: vulnerabilityVulnerability A weakness in software, a setting or a process that an attacker could use to get in or do harm. Tap again to open the glossary, patchPatch (security update) A fix released by the maker of a piece of software to close a flaw or a bug. Tap again to open the glossary, secret. See also our free tool trust check.

Keep reading

More stories on the same topic or from the same area.

Comments

No account needed. Add a nickname if you like, or leave it empty to comment anonymously. Comments are reviewed before they appear. Links are not allowed.

    We store your comment, your nickname and a scrambled form of your connection that we use only to limit spam. We do not store your IP address or set cookies. Cloudflare Turnstile checks that you are not a bot.

    Sources and verification

    We use primary sources first and say when we rely on a news report. Dates are the day we last checked each source.

    Spotted a mistake? Email [email protected] and we will correct it and note the change.

    Newsletter · every Friday · free

    Get the weekly security briefing

    One email every Friday: what to act on now and what to plan this week, in plain words. The free one-page runbooks come in your welcome email. You confirm your address first.

    Subscribe for free

    Press / to search from any page