What happened
The server became a collection point for secrets
CloudSEK reports that an automated operator exploited React2Shell, CVE-2025-55182, on unpatched React and Next.js servers. Its investigation of attacker infrastructure found tooling to read environment variables, secret files, cloud identity tokens and source repositories. The operator also tested some keys and planted an SSH public key for persistence on compromised hosts.
CloudSEK estimates that the operation reached more than 19,000 hosts associated with over 400 organizations and collected more than 50,000 credentials. Those figures come from its recovered attacker material; we have not independently verified the full victim count. A collected key also does not prove successful access to every downstream service.
Patch and rotate are separate actions
Defender workflow
Follow the access the server had
- 1
Confirm exposure and fix the stack. Identify React Server Components and Next.js deployments that remained unpatched while reachable. Apply the relevant framework fixes and verify the running deployment, including images and rollback copies.
- 2
Map and rotate secrets. Inventory environment variables, local secret files, cloud identity access, database credentials, source-control tokens, AI provider keys and secrets-manager gateway credentials available to an exposed server. Revoke and rotate according to actual access, then review their use.
- 3
Check persistence and pivots. Inspect authorized_keys for CloudSEK’s published SSH key and other unfamiliar entries. Correlate server process activity with unusual cloud API calls, repository access and database connections.
Defender note
The blast radius follows permissions
A web server can be a short route to cloud, build and AI services if it holds credentials for all of them. The useful exercise is to trace which permissions were available from that one runtime and which logs can confirm whether they were used.