rotateit

All incidents

React2Shell, React Server Components RCE used to harvest app secrets

Disclosed Dec 3, 2025 · updated Oct 28, 2026 · critical · Historical

A React and Next.js flaw was used to steal app secrets and cloud keys.

Are you affected?

The free scanner that answers this opens soon. Until then, the steps below work by hand.

What happened

React server flaw let attackers steal app secrets. CVE-2025-55182 is a pre-authentication remote code execution flaw in React Server Components 19.0.0, 19.1.0, 19.1.1 and 19.2.0 (react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack), fixed in 19.0.1, 19.1.2 and 19.2.1 and disclosed on 2025-12-03. It reaches Next.js 15.0.0 through 16.0.6 as CVE-2025-66478. Vercel says public exploits emerged on 2025-12-04 and asks anyone whose app was online and unpatched as of 1:00 PM PT that day to rotate every secret it uses. Cisco Talos reports that the cluster it tracks as UAT-10608 exploited the flaw to compromise 766 Next.js hosts within 24 hours and harvest environment secrets, database credentials, SSH private keys, AWS credentials, live Stripe secret keys, GitHub tokens, OpenAI and Anthropic keys, SendGrid keys, Kubernetes tokens and cloud metadata credentials.

Exposure starts
2025-12-04
Exposure ends
Not known yet (exposure ends when each app is patched, redeployed and its secrets rotated)
Confidence
medium
Scope
every secret readable by a server running a vulnerable React Server Components or Next.js version that was online and unpatched after the exploits appeared, including its environment variables, database URLs, SSH keys and cloud instance credentials

What to do, in this order

  1. Upgrade React Server Components and Next.js to a fixed release and redeploy

    Vercel says to rotate once you have patched and redeployed; rotating first hands new secrets to a still-vulnerable server.

  2. Cloud credentials the app could reach, starting with AWS keys and instance roles

    Talos found AWS credentials on about a quarter of compromised hosts and saw cloud metadata credentials collected; Vercel says to start with the most critical secrets.

    aws_access_key_id, aws_secret_access_key

  3. Database credentials and connection strings

    Talos found database credentials on about 91 percent of compromised hosts, including connection strings with cleartext passwords.

    anything else stored there

  4. Stripe, GitHub, OpenAI, Anthropic and SendGrid keys and every other API key in the app's environment

    Talos names these among the harvested secrets, including live Stripe secret keys on 87 hosts and GitHub tokens on 66.

    stripe_secret_key, github_pat, github_oauth_token, github_fine_grained_pat, openai_api_key, anthropic_api_key, sendgrid_api_key, anything else stored there

  5. SSH key pairs present on the server

    Talos found SSH private keys on about 78 percent of compromised hosts and advises against reusing key pairs across systems.

    private_key

Notes

  • Fixed Next.js releases (Vercel): 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.10, canaries 15.6.0-canary.58 and 16.1.0-canary.12; Next.js 14 canaries after 14.3.0-canary.76 should downgrade to 14.3.0-canary.76.
  • Talos also names NVIDIA NIM, OpenRouter and Tavily keys, Azure credentials, GitLab tokens, Brevo keys, Telegram bot tokens, Kubernetes service account tokens and npm and pip registry auth among the harvested data.
  • React later disclosed CVE-2025-55184, CVE-2025-67779, CVE-2025-55183 and CVE-2026-23864 in the same packages; Vercel says the first RCE patches did not fully fix the denial of service, so install the latest patched release.

How to tell if you’re affected

  • react-server-dom-webpack, react-server-dom-parcel or react-server-dom-turbopack 19.0.0, 19.1.0, 19.1.1 or 19.2.0
  • Next.js 15.0.0 through 16.0.6 below the fixed release on its line
  • Processes started with nohup from randomly named dot-prefixed shell scripts in /tmp
  • Files environ.txt, jsenv.txt, ssh.txt, aws_full.txt, cloud_meta.txt, k8s.txt, docker.txt or pkgauth.txt
  • Outbound connections on port 8080 to 144.172.102.88, 172.86.127.128, 144.172.112.136 or 144.172.117.112

Sources

Rotating the keys

Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.

One email when it opens. Stored: your email, whether you confirmed, and when you signed up. We send a confirmation link first.

By hand, free: the steps above.