Skip to main content

React2Keys: is your Next.js app affected by React2Shell (CVE-2025-55182)? Versions, patch order and which secrets to rotate

CloudSEK says an automated campaign is harvesting environment variables from unpatched Next.js servers. What the primary sources state, how to check your versions, and the order to rotate secrets.

Updated 8 min readMarkdown

On November 30, 2026, the security firm CloudSEK published a report on a campaign it calls React2Keys: an automated operation that exploits the React2Shell vulnerability (CVE-2025-55182) to read environment variables and secret files off Next.js servers, then tests which stolen keys still work.

The bug itself is a year old, and patches have existed since December 2025. What's new is the evidence that someone is systematically using it against unpatched apps, and that patching alone doesn't undo a theft that already happened. This is what the primary sources say, how to check your own app, and the order I'd rotate secrets in.

What the primary sources say

The vulnerability. The React team disclosed it on December 3, 2025, reported by Lachlan Davidson on November 29. It is an unauthenticated remote code execution flaw in React Server Components: React decodes payloads sent to Server Function endpoints unsafely. NVD records it as CVSS 10.0 (critical), and lists CISA's Known Exploited Vulnerabilities entry as added December 5, 2025. Vercel's bulletin says public exploits appeared on December 4, 2025.

Next.js. Next.js tracked its own downstream impact as CVE-2025-66478. Per the Next.js advisory, apps are affected when they use React Server Components with the App Router on Next.js 15.x, 16.x, or 14.3.0-canary.77 and later canaries. The advisory says Next.js 13.x, stable 14.x, Pages Router apps and the Edge Runtime are not affected.

The campaign. CloudSEK's report describes how React2Keys works:

  • It watches public Certificate Transparency logs every three minutes, so a new TLS certificate can turn into a scan target within minutes of a deploy.
  • It sends one unauthenticated POST to a Server-Action-reachable route, runs code inside the live Node.js process, and reads environment variables and secret files, including .env* files, cloud credential files and SSH keys.
  • It then tests each stolen key against its provider and ranks them by estimated value. Its list includes AI provider keys, cloud keys, database credentials, payment and registrar credentials, and crypto exchange keys.
  • It plants its own SSH public key in authorized_keys, so, in CloudSEK's words, "patching does not remove access."

The numbers, with a caveat. CloudSEK's headline and summary say "over 50,000 credentials from 19,000+ victims," and the report body says the actor compromised infrastructure tied to "over 400 organizations." CloudSEK says it derived the picture from material it recovered from the actor, including a 1.9-million-line exfiltration log. I could not find a breakdown of how the 50,000 and 19,000 figures were counted in the report text, and they are CloudSEK's own counts. Treat them as the vendor's figures, not an independent audit.

Step 1: Find out whether your app is affected

Per the React team, if your app's React code doesn't use a server, it isn't affected, and neither is an app without a framework, bundler or plugin that supports React Server Components. A plain client-side React app with no server is in that category. Check which framework your AI builder generated before assuming either way.

If it's Next.js, check these versions in package.json, your lockfile, or with npm ls:

npm ls next react-server-dom-webpack react-server-dom-parcel react-server-dom-turbopack

Vercel's bulletin suggests the most reliable check is the deployed version: load a page and run next.version in the browser console. It also points to npx fix-react2shell-next, which checks versions and applies the bumps. On Vercel, a banner in the dashboard flags production deployments that use a vulnerable version.

The vulnerable React packages are react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack at 19.0.0, 19.1.0, 19.1.1 and 19.2.0. The React team says other frameworks that embed them are affected too: react-router (its unstable RSC APIs), Waku, @parcel/rsc, @vitejs/plugin-rsc and RedwoodSDK. The React blog adds that an app may be vulnerable even if it doesn't define any Server Function endpoints, as long as it supports Server Components.

Step 2: Patch and redeploy

React fixed it in 19.0.1, 19.1.2 and 19.2.1. For Next.js, the advisory's minimum fixed versions for this CVE are 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 and 16.0.7. If you are on 14.3.0-canary.77 or later, the advisory says to move to the latest stable 14.x release. It states there is no workaround.

Two cautions:

  • React's blog was later updated for follow-up vulnerabilities in React Server Components (denial of service and source code exposure). It now lists newer minimum versions for the Next.js lines, for example 15.0.8, 15.1.12, 15.2.9, 15.3.9, 15.5.10, 16.0.11 and 16.1.5, and 14.2.35 for 13.3 and 14.x. Install the latest patch in your release line rather than stopping at the first fixed number. Check the React blog for your exact line.
  • Patching is not enough until it's deployed. Commit the lockfile, deploy, and confirm production reports the new version.

Vercel says it deployed WAF rules for all projects it hosts, but states you should not rely on them and that "immediate upgrades to a patched version are required."

Step 3: Rotate secrets, in this order

Vercel's guidance is to rotate your application's secrets if the app was online and unpatched as of December 4, 2025 at 1:00 PM PT, starting with the most critical. CloudSEK is blunter: "Assume every environment variable and secret file is compromised." The order below is my suggestion built on those two, putting the things that cost money or expose data first.

  1. Patch and redeploy first, so the new secrets aren't read straight off the same hole.
  2. Cloud credentials and identities. AWS, Azure and GCP keys, plus the cloud roles your host uses. CloudSEK says the actor also takes tokens through the container metadata service and managed identities, so review role activity too, not just static keys.
  3. Database credentials. Postgres, Redis and Mongo connection strings. CloudSEK says the tooling opens live connections to the victim's own databases. For a Supabase backend, the service_role or secret key belongs on this list: https://proofforge.live/leaked-keys/supabase-service-role
  4. Payment keys. Stripe secret and webhook signing secrets: https://proofforge.live/leaked-keys/stripe
  5. AI provider keys. OpenAI, Anthropic, Gemini and others. CloudSEK says harvested keys are tested against roughly ten LLM providers: https://proofforge.live/leaked-keys/openai, https://proofforge.live/leaked-keys/anthropic and https://proofforge.live/leaked-keys/gemini
  6. Source control and secrets-manager credentials. CloudSEK says a GitHub token in the environment was used to search whole organizations, and that a vault gateway credential readable from the app exposed every secret in the vault. Rotate those, not just the secrets they guard: https://proofforge.live/leaked-keys/github
  7. Email, SMS, registrar and other tokens the app could read.

For each one, use the order from Vercel's rotation docs: create the new credential, update the environment variable, redeploy, confirm it works, then revoke the old one. Database passwords that invalidate immediately are the exception. Walk-through for providers: https://proofforge.live/guides/i-leaked-an-api-key-what-now

Step 4: Check for persistence and misuse

CloudSEK says the campaign appends its SSH public key to authorized_keys, tagged with the comment label bluelocale-foothold. Its report publishes the exact key in a Sigma rule. Search each host's authorized_keys files for that label and for any key you don't recognize, and review cron jobs and recent SSH logins. Also check AWS CloudTrail, cloud audit logs and your AI providers' usage pages for calls you didn't make. CloudSEK also publishes an exposure checker at exposure.cloudsek.com/react2keys.

If you can't tell whether a host was touched, assume it was: rebuild it from a clean image as well as rotating.

What a scan can and can't tell you here

ProofForge's free scan is outside-in and read-only. It never sends exploit payloads, so it cannot tell you whether your app is vulnerable to React2Shell or was already compromised, and it can't see your server's environment variables, authorized_keys or cloud logs. Your lockfile and the checks above answer the version question.

What it can do is a separate job: it checks whether a secret is sitting in the JavaScript your visitors download, or in an exposed .env or source map. That matters because a key in the browser bundle is exposed to everyone whether or not the server was ever breached. After you rotate, a scan confirms the new key didn't end up in the public bundle: https://proofforge.live/fix/vite-env-secrets

Why the $9 helps

A rotation is a long list, and asking an AI builder to chase each leftover key tends to burn credits on every retry. Run the free scan on your live URL first: you get your grade, each finding's severity and impact, and the top fix in full. $9 once unlocks every finding with exact code fixes and prompts for your builder, with a 14-day refund and no subscription: https://proofforge.live/pricing

Start with the free scan: https://proofforge.live

Sources, checked December 1, 2026:

  • CloudSEK, "React2Keys" report (November 30, 2026), cloudsek.com/blog/react2keys-react2shell-ai-powered-credential-theft
  • React Team, "Critical Security Vulnerability in React Server Components," react.dev/blog/2025/12/03/critical-security-vulnerability-in-react-server-components
  • Next.js, "Security Advisory: CVE-2025-66478," nextjs.org/blog/CVE-2025-66478
  • Vercel, "Summary of CVE-2025-55182," vercel.com/changelog/cve-2025-55182, and "React2Shell Security Bulletin," vercel.com/kb/bulletin/react2shell
  • NVD, CVE-2025-55182, nvd.nist.gov/vuln/detail/CVE-2025-55182
  • GitHub Advisory Database, GHSA-fv66-9v8q-g76r, github.com/advisories/GHSA-fv66-9v8q-g76r
  • Vercel docs, "Rotating environment variables," vercel.com/docs/environment-variables/rotating-secrets
  • ProofForge tiers, proofforge.live/pricing.json

No comments yet. Be the first to comment.

More from this blog