React2Keys is a campaign that stole more than 50,000 credentials from unpatched Next.js servers through React2Shell (CVE-2025-55182). Updating is not enough: check the server and rotate secrets. Status: researcher data (CloudSEK, November 30, 2026), as reported by the press; checked December 3, 2026.
What happened in the React2Keys campaign
Security company CloudSEK published its findings on November 30, 2026, after recovering files from the operator's side: an exfiltration log, folders with results per victim and the toolkit itself. The figures below come from that research as reported by SecurityWeek, Hackread and CSO Online.
| What | Reported figure |
|---|---|
| Campaign start | November 9, 2026 |
| Mass exploitation | November 9–18 |
| Last data theft observed | November 19 |
| Credentials collected | More than 50,000 |
| Next.js hosts (some outlets say “victims”) | More than 19,000 |
| Organizations in the operator's records | More than 400 |
The haul is what makes this serious. The reports list cloud credentials for AWS, Azure and Google Cloud, Kubernetes service account tokens, SSH keys, database logins for PostgreSQL, MongoDB and Redis, Firebase keys, payment service and domain registrar credentials, cryptocurrency platform keys, copies of git repositories and API keys for OpenAI, Anthropic and Google Gemini. The operation was automated, and stolen keys were tested to see which ones still worked and what they were worth.
How the attackers got in
The entrance was React2Shell, CVE-2025-55182, rated CVSS 10.0 and disclosed on December 3, 2025, exactly a year ago. A single unauthenticated HTTP request to a Next.js app that uses React Server Components could run arbitrary JavaScript inside the Node.js process. That process can read everything your application can read: environment variables, .env files, mounted cloud credentials and tokens.
Two details from CSO Online change how you should defend yourself:
- New certificates are watched. The operation polled six public Certificate Transparency logs every three minutes. A freshly issued TLS certificate put the domain into the scan queue almost immediately, so a forgotten staging server is found as soon as it gets HTTPS.
- A CDN was not the end of it. When a request was blocked at the Cloudflare edge, a separate module tried to find the origin server and attack it directly.
The attacker also added their own SSH public key to authorized_keys in compromised accounts. An update of Next.js does not remove that key, and it does not cancel a single stolen token.
Are you affected? Versions of Next.js and React
| You run | Affected by React2Shell | First fix | Install now |
|---|---|---|---|
| Next.js 16.0.x, App Router | Yes, below 16.0.7 | 16.0.7 | 16.4.5 |
| Next.js 15.x, App Router | Yes | 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 | 15.5.29 |
| Next.js 14.3.0-canary.77 and later canaries | Yes | Go back to 14.x stable | Plan a move to 15 or 16 |
| Next.js 16.1 and newer, stable | No (released with the fix) | — | 16.4.5 or newer |
| Next.js 13.x, 14.x stable | No | — | 14.2.35 at least, then plan a move |
| Pages Router only | No | — | Latest patch of your line |
react-server-dom-* 19.0.0, 19.1.0, 19.1.1, 19.2.0 | Yes | 19.0.1, 19.1.2, 19.2.1 | 19.0.9, 19.1.10, 19.2.9, 19.3.1 or newer |
Sources: the React advisory and the Next.js advisory. The “first fix” versions only close the original hole. React and Next.js published further security fixes afterwards, which is why the last column is higher. The React package versions there come from the 2026 advisory GHSA-xqc2-xf4c-x3h3, explained in our guide to the React Server Components vulnerability of 2026. The 14.2.35 figure is from the December 2025 update; Next.js 14 and older no longer receive regular security releases.
Check 1: which Next.js version is really running
The repository may say one thing and the server another. A build that failed quietly, an old container or a forgotten demo site all keep the vulnerable code online. Run this on every host, not only on the main one.
# in the repository
npm ls next react react-dom
npm ls react-server-dom-webpack react-server-dom-turbopack react-server-dom-parcel
# on the server, inside the directory that actually serves traffic
node -p "require('next/package.json').version"
# if the app runs in Docker
docker ps --format "table {{.Names}}\t{{.Image}}\t{{.CreatedAt}}"
docker exec my-app node -p "require('next/package.json').version"In a Next.js project, npm ls react-server-dom-webpack often prints nothing. Next.js carries its own compiled copy of these packages, so the version of next is what counts. Also write down when the patched version was deployed: if the app was exposed with a vulnerable version at any point, continue with the checks even though it is patched today.
Check 2: unknown SSH keys
# every authorized_keys file on every mounted disk, with the date it was last changed
sudo find / -path /proc -prune -o -name "authorized_keys*" -type f -exec ls -l --time-style=long-iso {} +
# fingerprints and comments of the keys inside one file
sudo ssh-keygen -lf /root/.ssh/authorized_keys
sudo ssh-keygen -lf /home/deploy/.ssh/authorized_keysGo through the keys one by one and name the owner of each. A comment such as deploy@ci proves nothing, because anyone can type any comment: compare fingerprints with the keys your team actually holds. A recently changed file deserves attention, but an old date does not clear it, since timestamps can be rewritten. When you issue new keys, see which post-quantum options OpenSSH and your web server already have in our guide to post-quantum TLS.
Check 3: successful logins
# successful SSH logins since the campaign began
sudo journalctl -t sshd -t sshd-session --since "2026-11-09" | grep "Accepted"
# the same on systems that write plain log files
sudo zgrep -h "Accepted" /var/log/auth.log* /var/log/secure* 2>/dev/null
# login history since November 9 ("last" is missing on some new distributions)
last -ai --since 2026-11-09Look for source addresses and users you cannot explain, especially root and logins by public key at odd hours. Keep a copy of the output on your own machine. If the logs are shorter than the campaign window or have gaps, treat that as missing evidence, not as a clean result.
Check 4: cron jobs and systemd services
These two places are the usual way to survive a reboot and a redeploy.
# crontabs of all users
for u in $(cut -d: -f1 /etc/passwd); do
echo "== $u"; sudo crontab -u "$u" -l 2>/dev/null
done
# system cron: file names, then the contents
ls -la /etc/cron.d /etc/cron.hourly /etc/cron.daily /etc/cron.weekly /etc/cron.monthly
sudo cat /etc/crontab /etc/cron.d/*
# systemd services, timers and drop-ins added or changed since November 9
sudo find /etc/systemd /usr/lib/systemd/system /home /root \
\( -name "*.service" -o -name "*.timer" -o -path "*.d/*.conf" \) \
-newermt "2026-11-09" -ls 2>/dev/null
systemctl list-timers --allWarning signs: commands that download and run something (curl … | sh), base64 strings, paths in /tmp or /dev/shm, and services with generic names nobody on your team created. Check the crontab of the user that runs the web app first. Package updates also touch files under /usr/lib/systemd, so compare dates with your update history before raising the alarm.
Check 5: new users and sudo rights
# accounts that can log in
awk -F: '$7 !~ /(nologin|false)$/ {print $1, $3, $7}' /etc/passwd
# accounts with UID 0: normally only root
awk -F: '$3 == 0 {print $1}' /etc/passwd
# who has root rights (the docker group is as good as root)
getent group sudo wheel docker
sudo cat /etc/sudoers /etc/sudoers.d/*Every account with a login shell should have a known purpose. Pay the same attention to the application user: if it suddenly belongs to sudo or wheel, find out why.
Check 6: processes, temporary files and containers
# process tree: look for node starting sh, bash, curl or wget
ps -eo user,pid,ppid,lstart,cmd --forest
# files dropped into temporary directories since November 9
sudo find /tmp /var/tmp /dev/shm -type f -newermt "2026-11-09" -ls
# outbound connections that are open right now
sudo ss -tupn state established
# what changed inside a running container compared with its image
docker diff my-appA web application normally has no reason to start a shell. A node process with sh, curl or an unknown binary underneath it is a strong signal. Save the output before killing anything or rebuilding: once the server or container is gone, so is the evidence.
Web server logs help less than you might expect. The default nginx format does not record the Next-Action header or request bodies, so the absence of anything odd there proves nothing.
Check 7: cloud logs and bills
Stolen cloud keys are used outside your server, so a clean host says nothing about them. According to the reports, stolen tokens were used for follow-up scanning from AWS Lambda functions and virtual machines. Look for resources you did not create, in regions you never use, and for spending that jumped after November 9. For AI providers, open the usage page and compare it day by day.
# AWS: when and where was each access key last used?
aws iam list-access-keys --user-name deploy
aws iam get-access-key-last-used --access-key-id AKIAEXAMPLE
# management events made with this key since the campaign began (one region at a time)
aws cloudtrail lookup-events \
--lookup-attributes AttributeKey=AccessKeyId,AttributeValue=AKIAEXAMPLE \
--start-time 2026-11-09 --region us-east-1
# new identities? repeat with CreateAccessKey, CreateRole, AssumeRole, GetSessionToken
aws cloudtrail lookup-events \
--lookup-attributes AttributeKey=EventName,AttributeValue=CreateUser \
--start-time 2026-11-09 --region us-east-1
aws iam list-users
# deactivate the old key after the new one is deployed
aws iam update-access-key --user-name deploy --access-key-id AKIAEXAMPLE --status InactiveAKIAEXAMPLE is a placeholder. CloudTrail event history covers management events for the last 90 days, so the whole campaign window is still visible today; do not postpone this check by months. It does not show everything: reading objects in S3 is not in it, and actions made with temporary credentials obtained from a stolen key appear under a different key ID. Deactivating one key does not remove users, keys or roles an intruder created, so look for those separately.
What to rotate, and in what order
First make a list. Anything the Node.js process could read has to be treated as copied. These commands help you collect names rather than values:
# variable names from .env files. A line of a multi-line key can slip in,
# so do not paste this output into chats or tickets
sudo grep -rhoE "^(export )?[A-Za-z_][A-Za-z0-9_]*=" /var/www /srv /home /opt /root \
--include=".env*" --exclude-dir=node_modules | sort -u
# find the web process, then put its PID in place of 12345.
# This shows the startup environment, not what Next.js loaded from .env files
pgrep -af "next|node"
sudo sed -z 's/=.*//' /proc/12345/environ | tr '\0' '\n' | sort
# credential files that often sit next to the app
sudo ls -ld /root/.aws /home/*/.aws /root/.kube /home/*/.kube \
/root/.git-credentials /home/*/.git-credentials /home/*/.npmrc 2>/dev/null| Order | Secrets | Why now |
|---|---|---|
| 1 | Cloud access keys, service accounts, Kubernetes tokens | They open everything else and can create costs |
| 2 | Payment provider and webhook keys | Direct money risk |
| 3 | Database passwords and connection strings | Customer data |
| 4 | SSH keys, deploy keys, git, npm and CI tokens | A way back in and into your releases |
| 5 | AI provider keys | Can be used on your bill; set a hard spend limit |
| 6 | Domain registrar and DNS tokens, mail service keys | Takeover of the domain, phishing in your name |
| 7 | Session signing keys, AUTH_SECRET and similar | Forged logins; users will have to sign in again |
Rotating means creating a new secret and revoking the old one. A new key next to a live old key changes nothing. Order matters too: patch first or take the app offline, then rotate, otherwise the new secrets are as readable as the old ones. If you found an unknown key, user or job, do not clean the machine by hand: build a new server from a clean image and give it only new secrets.
Also think about repositories. Copies of git history were among the stolen items, so any password ever committed there counts as leaked. Our guide on the 1Password breach lists GitHub settings that limit what one stolen token can reach.
Found something? The first hour
- Preserve evidence. Take a disk snapshot, save the output of the checks above and copy logs to another machine.
- Cut the network to the affected host with your provider's firewall, leaving access only from your own address. Block outgoing connections too: many provider firewalls filter only incoming ones by default.
- Revoke from a clean computer. Do not type new passwords or generate new keys on the compromised server.
- Build a replacement from a clean image with the patched Next.js version and newly issued secrets. Take code from your repository after reviewing recent commits, not from the old disk.
- Check what the secrets opened. Database audit logs, cloud trails, payment dashboards and package registry publish history show whether anyone used them.
- Ask about notification duties. If personal data could have been read, laws such as the GDPR set short deadlines, counted from when you learn of the breach.
Write down times as you go: when the vulnerable version was deployed, when it was patched, when each key was revoked. Clients, insurers and lawyers will ask for exactly this, and a week later nobody remembers it. If you maintain sites for others, tell them what you checked and what you could not check.
Update Next.js and prepare for December 15
# Next.js 16 below 16.4.5 (already on 16.5? do not downgrade)
npm install next@16.4.5 eslint-config-next@16.4.5
# Next.js 15
npm install next@15.5.29 eslint-config-next@15.5.29
npm run build
node -p "require('next/package.json').version"Redeploy and restart the process; a running Node.js server keeps the old code in memory. You may have seen npx fix-react2shell-next in the December 2025 advisories: it targets the versions of that time and does not replace installing 16.4.5 or 15.5.29 or newer.
Next.js has also announced its next security release for Tuesday, December 15, 2026, with eight high, one medium and one low severity issue in Next.js, which will ship on the 16.5 line. Version 16.5.0 came out on December 2, before those fixes. Check the release post on the day for the version to install, including what it offers for 15.x, and put the date in your calendar now.
How not to end up in the next campaign
Close the way around your CDN
A WAF only helps if traffic cannot skip it. Allow web ports on the origin only from your CDN's address ranges, or use an outbound tunnel so the server needs no open web port at all.
sudo ufw status verbose # active? default should be "deny (incoming)"
sudo ufw allow OpenSSH # first of all, or you can lock yourself out
# repeat for every range your CDN publishes, IPv4 and IPv6
sudo ufw allow proto tcp from 203.0.113.0/24 to any port 80,443
# find every other rule that opens the web ports ("Nginx Full", http, 80)
sudo ufw status numbered
sudo ufw delete 3 # by number, one at a time; numbers shift
sudo ufw enable # if it was inactive
# from another machine, straight to the server's own IP: must time out
curl -m 10 -kI https://198.51.100.10Keep your current SSH session open until a second one connects. One more trap: ports published by Docker with -p bypass ufw rules, so filter those in your provider's firewall or bind them to 127.0.0.1. The test with the server's IP is what tells you whether it worked.
Give the app less to lose
- Short-lived credentials instead of permanent cloud keys: instance roles or workload identity.
- Minimal rights. A key that only uploads images should not be able to create virtual machines.
- One secret per service and environment, so revoking one does not stop everything.
- Spend limits and alerts on cloud and AI accounts.
- A non-root user for the web process, with no SSH keys in its home directory that reach other machines.
Know every server you own
The projects that get caught a year later are usually the ones nobody maintains: a demo, a staging copy, a client site handed over long ago. Search the Certificate Transparency logs (for example on crt.sh) for your own domains, and either patch or switch off every host you find. Turn on automatic dependency pull requests, and read our guide on npm supply chain attacks before you let them merge on their own.
Frequently asked questions
What is React2Keys?
React2Keys is the name CloudSEK gave to an automated credential theft campaign, described in its report of November 30, 2026. It broke into unpatched Next.js servers through the old React2Shell bug and collected cloud, database, payment, AI and SSH secrets. According to the report, it gathered more than 50,000 credentials.
How is React2Keys different from React2Shell?
React2Shell is the vulnerability, CVE-2025-55182, disclosed on December 3, 2025. React2Keys is a campaign that used that vulnerability almost a year later to steal secrets at scale. Fixing React2Shell closes the entrance, but it does not undo anything the campaign already took or planted.
I updated in December 2025. Am I safe?
Probably safe from this entry point, provided the patched version really reached production. Two caveats: if the app was online and unpatched as of December 4, 2025, 13:00 PT, Next.js advises rotating its secrets, and newer Next.js security releases have shipped since, so check that you run at least 16.4.5 or 15.5.29.
I only updated after November 19, 2026. What now?
Assume the server could have been read. Rotate every secret the application could access, starting with cloud, payment and database credentials, check SSH keys, cron and systemd for entries you do not recognise, and review cloud logs and bills. If you find traces, do not clean the machine by hand: rebuild it from a clean image.
Does this affect Vercel hosting or static sites?
A static export has no React code running on a server, so this bug has nothing to execute there. On managed hosting, the provider may have blocked known payloads, but React says not to rely on that. The SSH and cron checks apply to your own servers, while secret rotation applies anywhere an unpatched version ran.
Is the Pages Router affected?
According to the Next.js advisory for React2Shell, no: the remote code execution concerns App Router apps on Next.js 15 and 16 and on 14.3.0 canary releases from canary.77. Stable 13.x and 14.x and the Pages Router are not affected by that bug. They still have other fixes to install.
Which keys should I rotate first?
Start with the ones that can cost money or open other systems: cloud access keys, payment provider keys and database passwords. Then SSH keys and deploy tokens, AI provider keys, domain registrar and DNS tokens, and finally application secrets such as session signing keys and webhook secrets.
