React2STEAL: Hijacked GitHub Actions Fuel React2Shell Credential Theft

Red | Attack
React2STEAL: Hijacked GitHub Actions Fuel React2Shell Credential Theft | Hive Pro Threat Advisory
Date of publication
November 20, 2026
Admiralty code
A1
TA number
TA2026348
First Seen
October 2026
Targeted Regions
Worldwide
Targeted Platforms
Linux, Cloud (AWS, GCP, Azure), Kubernetes, GitHub Actions
Targeted Products
Meta React Server Components, Vercel Next.js
Campaign Name
React2STEAL
Malware
fast_recon.js (JavaScript credential stealer)

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.

CVENameAffected product
CVE-2025-55182React2Shell (React Server Components Remote Code Execution Vulnerability)Meta React Server Components
CVE-2025-29927Next.js Middleware Authorization Bypass VulnerabilityVercel Next.js

Attack Details

#1

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.

#2

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.

#3

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.

#4

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.

#5

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.

#6

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.

#7

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

  1. 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-55182 and CVE-2025-29927 (such as 15.5.7 or 16.0.7 and later).

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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)

TypeValue
Git Object IDee6e5addfe591923fc385553cb66cf0d25634a6b823e8824acb61aa036a3e0c8945a63d4a2e0cf64418bf778648c9f5fa4fd95340e07a05dca797e37fda8b5097a5223a5afcbc0c346a8af55faa4fd07
IPv4156[.]67[.]221[.]96
Filenamescan.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 RequestNext-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 AgentMozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/126.0.0.0 Safari/537.36
GitHub Accountdascxzcw
GitHub Repositoryci-wk-{number}
Git Branchwfx-docsci-sync-{6 characters}

Potential MITRE ATT&CK TTPs

Reconnaissance
T1595Active Scanning
T1595.002Vulnerability Scanning
Resource Development
T1584Compromise Infrastructure
T1584.006Web Services
T1608Stage Capabilities
T1608.001Upload Malware
Initial Access
T1190Exploit Public-Facing Application
Execution
T1059Command and Scripting Interpreter
T1059.007JavaScript
Defense Evasion
T1036Masquerading
Discovery
T1082System Information Discovery
T1016System Network Configuration Discovery
T1049System Network Connections Discovery
T1057Process Discovery
T1083File and Directory Discovery
Credential Access
T1552Unsecured Credentials
T1552.001Credentials In Files T1552.005: Cloud Instance Metadata API
Collection
T1005Data from Local System
T1560Archive Collected Data
Command and Control
T1102Web Service
Exfiltration
T1567Exfiltration Over Web Service
T1567.001Exfiltration to Code Repository

References & Patch Links

Patch links
References

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.

Reduce real exposure. Not just vulnerability volume.