r/reactjs • u/kantorcodes1 • 10h ago
News One Year After React2Shell Patch, Thousands Of Servers Are Reported To Have Had Keys Stolen
CloudSEK has published a report on November 30, detailing a campaign they are calling React2Keys. Tens of thousands of credentials from thousands of hosts, per CloudSEK.
They got the keys, tested them, used them and charged victims for using AI/Cloud under their stolen keys. They also added new SSH keys to the servers without the server owner's permission.
Upgrade to 19.0.1, 19.1.2, 19.2.1+, or patched Next.js version. Take all the secrets that were stored on the server, cycle them through. Revoke the old keys. Check the authorized_keys of your accounts, and toss any SSH key which you can't associate with a person or system. You should look at the November bills for the accounts that you can access with those keys and see if there is any usage you don't recognize.
Also reported this week by SecurityWeek and CSO Online. The fact the flaw exists, the fixes and the CISA KEV listing are all public knowledge. So the "patch & rotate" part is worth doing even just based on that.
https://hol.org/blog/cve-2025-55182-react2shell-react2keys-campaign
View all comments
0
u/codariadev 5h ago
Worth adding for Next.js folks, because this is where people think they patched and didn't. Next doesn't use the react-server-dom package from your node_modules, it ships its own compiled copy inside
next. So bumping react and react-dom to 19.2.1 does nothing for an App Router app, you have to bumpnextitself to the patched release for your minor. Check what the lockfile actually resolves (or runnpx next --versionwhere it's deployed), not what package.json says.On rotation, two things that bite. On Vercel and most PaaS the env vars are read at build or boot, so after rotating you need a redeploy, otherwise the app keeps the old values and breaks the moment you revoke them. And think beyond .env: a Firebase or GCP service account JSON sitting on the box, deploy keys, cloud CLI credentials in the home dir of whatever user runs node. If the process could read it, treat it as leaked.
If you self-host, check crontab and systemd units for that user too, not just authorized_keys. Persistence rarely stops at one place.