Summary
React2STEAL is an unattributed campaign that turns 45 hijacked GitHub repositories into a free, distributed exploitation platform. GitHub Actions workflows mass-scan for Next.js servers, exploit React2Shell (CVE-2025-55182) and the Next.js middleware bypass (CVE-2025-29927), then run fast_recon.js inside the victim's Node.js process. The payload pulls IAM credentials through SSRF to the cloud metadata service, validates stolen AI provider keys against live APIs, and commits the loot back to the same public repositories. At least 1,281 hostnames across about 1,100 domains are compromised.
| CVE | Name | Affected product |
|---|---|---|
| CVE-2025-55182 | React2Shell (React Server Components Remote Code Execution Vulnerability) | Meta React Server Components |
| CVE-2025-29927 | Next.js Middleware Authorization Bypass Vulnerability | Vercel Next.js |
Attack Details
React2STEAL runs from 45 public GitHub repositories named ci-wk-{number}, owned by 44 accounts; of 26 profiles reviewed, 20 had no followers. The account owners appear to be victims rather than operators, and how their tokens were stolen is not established. The repositories were created in three waves on October 22, November 11 and November 14, 2026, with code comments dating back to September 10, 2026.
Initial access comes from exploiting React2Shell (CVE-2025-55182), a CVSS 10.0 pre-authentication remote code execution flaw caused by prototype chain pollution in the React Server Components Flight protocol. The scanner also probes for CVE-2025-29927, a Next.js middleware authorization bypass triggered via the x-middleware-subrequest header.
Each run starts when the operator commits a list of 20,000 hostnames and dispatches a GitHub Actions scan workflow on an ubuntu-latest runner with a 350-minute timeout. prefilter_nextjs.py narrows the list to probable Next.js hosts at a concurrency of 400, then batch_output.py fires seven React2Shell request variants, each built to evade WAF signatures.
On success, the JavaScript KIT payload fast_recon.js runs inside the victim's Node.js process. It installs nothing, downloads no second stage and sets no persistence. It harvests environment variables, host and network details, cloud credential files, Kubernetes service account tokens and .env files, and a variant added on October 23, 2026 captures full configuration file contents.
In parallel, batch_output.py abuses the Next.js /_next/image endpoint as an SSRF primitive to reach the instance metadata service at 169.254.169.254 and pull IAM role credentials. The payload also checks 28 environment variable names across ten AI providers, including OpenAI, Anthropic and Gemini, and validates each stolen key through live inference calls capped at 20 tokens.
Exfiltration uses GitHub itself as the drop site. Results are committed and pushed to the same public repository as plaintext, JSON and ZIP files, and the push step runs unconditionally so partial results are never lost. A Telegram delivery path with a hard-coded bot token exists but is disabled by default.
Roughly 7.4 GB of stolen data, including more than 9,100 ZIP archives, has been committed publicly, exposing secrets of organizations from small firms to large institutions, often via dev, staging and admin hosts. As of November 17, 2026, new results were landing about every 11 minutes, and because clones, forks and Git history keep the data, deleting the repositories does not remediate the exposure.
Recommendations
- 01
Patch React Server Components and Next.js
Upgrade the react-server-dom packages to 19.0.3, 19.1.4, 19.2.3 or later, and move Next.js to a release patched for both
CVE-2025-55182andCVE-2025-29927(such as 15.5.7 or 16.0.7 and later). - 02
Strip the x-middleware-subrequest Header at the Edge
Until every Next.js deployment is patched, configure the reverse proxy, load balancer or WAF to drop inbound requests carrying the x-middleware-subrequest header.
- 03
Deploy React2Shell Detection Signatures
Block POST requests with a Next-Action: x header and a multipart boundary containing bissa_cve_boundary, abnormal padding, or null bytes in the Content-Type header.
- 04
Rotate Every Secret Reachable by Affected Servers
On any exposed host, rotate environment and .env secrets, database credentials, Stripe keys, Kubernetes tokens, cloud IAM credentials and AI provider keys.
- 05
Enforce IMDSv2 and Restrict Metadata Access
Require IMDSv2 session tokens on AWS instances and apply equivalent metadata hardening on GCP and Azure so that SSRF requests cannot retrieve instance role credentials.
- 06
Contain Hijacked GitHub Accounts
Treat any account hosting matching artifacts as compromised: revoke tokens, SSH keys and OAuth grants, reset credentials and enforce phishing-resistant MFA.
- 07
Restrict GitHub Actions Usage and CI Egress
Set default workflow token permissions to read-only, limit which workflows may run, and restrict runner egress to approved destinations.
Indicators of Compromise (IoCs)
| Type | Value |
|---|---|
| Git Object ID | ee6e5addfe591923fc385553cb66cf0d25634a6b823e8824acb61aa036a3e0c8945a63d4a2e0cf64418bf778648c9f5fa4fd95340e07a05dca797e37fda8b5097a5223a5afcbc0c346a8af55faa4fd07 |
| IPv4 | 156[.]67[.]221[.]96 |
| Filename | scan.ymlprefilter_nextjs.pybatch_output.pyfast_recon.jswfx-audit.mdscanned.dbscan_00.dbscan_01.dbcands_00.txtcands_01.txtpf_00.errpf_01.errscan_00.logscan_01.loghosts_{date}_{time}.txt |
| File Path | .github/workflows/scan.ymlbin/prefilter_nextjs.pybin/batch_output.pybin/fast_recon.jsdocs/wfx-audit.mdvulnerables/valid_target_{host}_{timestamp}.txt |
| HTTP Request | Next-Action: x (multipart boundary containing bissa_cve_boundary)x-middleware-subrequest header repeated five times/_next/image?url= targeting 169[.]254[.]169[.]254 (meta-data/iam/security-credentials/) |
| User Agent | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/126.0.0.0 Safari/537.36 |
| GitHub Account | dascxzcw |
| GitHub Repository | ci-wk-{number} |
| Git Branch | wfx-docsci-sync-{6 characters} |
Potential MITRE ATT&CK TTPs
T1595Active ScanningT1595.002Vulnerability ScanningT1584Compromise InfrastructureT1584.006Web ServicesT1608Stage CapabilitiesT1608.001Upload MalwareT1190Exploit Public-Facing ApplicationT1059Command and Scripting InterpreterT1059.007JavaScriptT1036MasqueradingT1082System Information DiscoveryT1016System Network Configuration DiscoveryT1049System Network Connections DiscoveryT1057Process DiscoveryT1083File and Directory DiscoveryT1552Unsecured CredentialsT1552.001Credentials In Files T1552.005: Cloud Instance Metadata APIT1005Data from Local SystemT1560Archive Collected DataT1102Web ServiceT1567Exfiltration Over Web ServiceT1567.001Exfiltration to Code RepositoryReferences & Patch Links
Patch links
- CVE-2025-55182https://react.dev/blog/2025/12/03/critical-security-vulnerability-in-react-server-components
- CVE-2025-55182https://nextjs.org/blog/CVE-2025-66478
- CVE-2025-29927https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw
References
- https://opensourcemalware.com/blog/react2steal-github-actions
- https://www.hivepro.com/threat-advisory/nextjs-under-siege-as-cve-2025-29927-opens-the-floodgates-for-attackers
- https://www.hivepro.com/threat-advisory/react2shell-flaw-in-react-server-components-under-active-attack
What Next?
At Hive Pro, it is our mission to detect the most likely threats to your organization and to help you prevent them from happening.
