# React2STEAL: GitHub Actions Campaign Exploits React2Shell (CVE-2025-55182) and Next.js Middleware Bypass (CVE-2025-29927) and Publishes Stolen Secrets to Public Repos

> OpenSourceMalware (via GitGuardian) documented 45 repositories across 44 hijacked or reused GitHub accounts running a manually dispatched GitHub Actions workflow (scan.yml) that scans for Next.js servers, exploits React2Shell (CVE-2025-55182) and CVE-2025-29927, and commits stolen environment variables, cloud and Kubernetes credentials to the same public repos. At least 1,281 unique victim hostnames (about 1,100 domains) were reported; no threat actor is named.

- **Published:** 2026-11-20T22:59:17Z
- **Last reviewed:** 2026-11-20T22:59:17Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6629
- **ID:** TL-2026-6629
- **Severity:** CRITICAL (CVSS 10)
- **Category:** SUPPLY_CHAIN
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 18 (3 shown free below)
- **CVEs:** CVE-2025-55182, CVE-2025-29927, CVE-2025-66478

## Description

React2STEAL is a campaign named by OpenSourceMalware (OSM) and amplified by GitGuardian on 2026-11-20. Operators commit large hostname lists to public GitHub repositories living in hijacked or reused accounts, then manually dispatch a workflow (.github/workflows/scan.yml, trigger workflow_dispatch with a 'chunk' input, contents: write, ubuntu-latest, up to 350 minutes) so that GitHub-hosted runners perform the scanning and exploitation. Each repo contains four files: scan.yml, bin/prefilter_nextjs.py (finds Next.js hosts at high concurrency), bin/batch_output.py (exploit script with hard-coded Telegram configuration; sending is off by default) and bin/fast_recon.js (payload executed inside the victim Node.js process). No AI tokens are needed and no second stage or persistence is installed on victims.

Exploit chain: batch_output.py tries seven React2Shell variants in order against Server Function endpoints (plain, dual-header, boundary morph, chunked Transfer-Encoding, 8 KB padding prefix, spaces in Content-Type, null byte before Content-Type), all using a 'Next-Action: x' header and multipart/form-data with the boundary string bissa_cve_boundary (one variant randomizes it). It then attempts the CVE-2025-29927 middleware authorization bypass by sending a repeated x-middleware-subrequest header, and finally an SSRF through /_next/image?url= pointing at the AWS instance metadata address 169.254.169.254 to fetch the IAM role name and then that role's credentials. Two scanners run in parallel with up to 250 concurrent targets each.

Post-exploitation: fast_recon.js collects process environment variables, cloud credential files, Kubernetes tokens, .env files, network interfaces, listening ports, running processes, writable paths, CPU/RAM and Node version. A newer variant also captures the full contents of every .env*/config file (capped at 300,000 characters aggregate). The payload tests harvested AI provider keys (28 environment variable names across ten providers: OpenRouter, DeepSeek, OpenAI, Anthropic, Groq, Mistral, Perplexity, Together, Qwen/Alibaba, Gemini) directly from the victim server with minimal requests (max_tokens 20, 'Reply with exactly: OK') and a Chrome 126 user agent. Loot returns in the exploit response and is saved as plaintext, JSON and ZIP on the runner, then committed with git add/commit/push (identity w <w@w>, commit messages 'chunk' and 'results <epoch>') back to the same public repo, where victim records appear under vulnerables/valid_target_<host>_<timestamp>.txt. An 11-repo snapshot held about 9,100 ZIP archives, 3,800 JSON files and 3,000 plaintext records, roughly 7.4 GB. Commits were still landing about every 11 minutes on 2026-11-17.

Scale and timing: OSM counts 45 repos and 44 owners, with at least 1,281 unique victim hostnames (a floor) across about 1,100 domains; one researcher cited over 20,000 hosts targeted and about 277 compromised across 38 repos. Repos appeared in waves: wave 1 (at least 26 repos) on 2026-10-22, wave 2 (8 repos) on 2026-11-11, wave 3 (5 repos, staged only) on 2026-11-14. Code comments carry dates from 2026-09-10 (author-claimed, unverified). Commonly exposed secrets were database URLs, Stripe keys and AI provider keys. OSM had not tested whether exposed credentials remain valid.

Attribution: unknown. The GitHub account dascxzcw (now 404) is OSM's best lead, linked through the w <w@w> result commits. OSM treats the 44 owners as victims whose tokens were stolen (method unknown; an OAuth third-party-app leak is speculation with no evidence) while not ruling out that some rented out access. Overlap exists with the wfx-loot campaign (25 React2STEAL repos carry a wfx-docs branch and the wfx-audit probe file; 25 of 38 owners searched have wfx-loot probe PRs dated Nov 10-13) and one owner was also hit by PolinRider and GhostAction. OSM found no shared code or infrastructure with wfx-loot and leans slightly toward separate operations; operator linkage is unconfirmed. Five repos also carry unattributed ci-sync-<6 chars> branches (2026-10-31) adding a sync-check workflow that prints repo secrets base32-encoded to the Actions log, a technique documented for wfx-loot.

Defender impact: any secret reachable by a vulnerable Next.js server process must be treated as exposed. The GitGuardian write-up ties this to a wider pattern of CI-based credential theft via stolen GitHub credentials (GhostAction, wfx-loot).

## MITRE ATT&CK

- T1595.002 Vulnerability Scanning
- T1586 Compromise Accounts
- T1190 Exploit Public-Facing Application
- T1078 Valid Accounts
- T1059.007 JavaScript
- T1552.001 Credentials In Files
- T1552.005 Cloud Instance Metadata API
- T1082 System Information Discovery
- T1057 Process Discovery
- T1005 Data from Local System
- T1119 Automated Collection
- T1567.001 Exfiltration to Code Repository

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**React2STEAL - Next.js Exploit Request Signatures (React2Shell CVE-2025-55182, Middleware Bypass CVE-2025-29927, IMDS SSRF)** (`TL-2026-6629-SPL-001`)

Hunts web and load-balancer access telemetry for the request fingerprints React2STEAL's batch_output.py sends to Next.js servers: the repeated x-middleware-subrequest header (CVE-2025-29927 authorization bypass), the multipart boundary bissa_cve_boundary or a 'Next-Action: x' multipart POST (React2Shell, CVE-2025-55182), and /_next/image?url= requests aimed at 169.254.169.254 to steal AWS IAM role credentials. Any hit means a mass scanner is probing or exploiting the host; treat reachable secrets as exposed if the server is unpatched.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1595.002, T1552.005
- **Data sources:** web_access_logs, stream:http, nginx:plus:access, apache:access, aws:elb:accesslogs
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

````spl
index=web (sourcetype="stream:http" OR sourcetype="nginx:plus:access" OR sourcetype="apache:access" OR sourcetype="aws:elb:accesslogs") ("bissa_cve_boundary" OR "x-middleware-subrequest" OR "Next-Action" OR "/_next/image") ```React2STEAL Next.js exploit signatures - CVE-2025-55182, CVE-2025-29927, IMDS SSRF```
| eval indicator=case(match(_raw,"(?i)x-middleware-subrequest"),"CVE-2025-29927 middleware bypass header", match(_raw,"(?i)/_next/image[?]url=[^ &]*169[.]254[.]169[.]254"),"IMDS SSRF via _next/image", match(_raw,"(?i)bissa_cve_boundary"),"React2Shell boundary bissa_cve_boundary", match(_raw,"(?i)next-action.{1,4}x([^a-z0-9]|$)") AND match(_raw,"(?i)multipart/form-data"),"React2Shell Next-Action x multipart", true(),null())
| where isnotnull(indicator)
| eval client=coalesce(src_ip,clientip,src), target=coalesce(dest_host,dest,host)
| stats count min(_time) as first_seen max(_time) as last_seen dc(indicator) as distinct_indicators values(indicator) as indicators values(uri_path) as uri_path by client target
| convert ctime(first_seen) ctime(last_seen)
| sort - count
````

### Microsoft KQL

```kql
let lookback = 24h;
CommonSecurityLog
| where TimeGenerated > ago(lookback)
| extend Blob = tolower(strcat(RequestURL, ' ', RequestContext, ' ', AdditionalExtensions, ' ', Message))
| extend Indicator = case(
    Blob contains 'x-middleware-subrequest', 'CVE-2025-29927 middleware bypass header',
    Blob contains '/_next/image' and Blob contains '169.254.169.254', 'IMDS SSRF via _next/image',
    Blob contains 'bissa_cve_boundary', 'React2Shell boundary bissa_cve_boundary',
    Blob matches regex @'next-action.{1,4}x([^a-z0-9]|$)' and Blob contains 'multipart/form-data', 'React2Shell Next-Action x multipart',
    '')
| where Indicator != ''
| summarize Hits=count(), FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated), Indicators=make_set(Indicator), Urls=make_set(RequestURL, 20) by SourceIP, DestinationIP, DestinationHostName, DeviceVendor, DeviceProduct
| order by Hits desc
```

### Sigma

```yaml
title: React2STEAL Next.js Exploit Request Signatures
id: 3b7e1c52-8d4a-4f19-9a6e-2c5d70b1e601
status: experimental
description: Detects React2STEAL exploit requests against Next.js servers - the x-middleware-subrequest bypass header (CVE-2025-29927), the bissa_cve_boundary multipart boundary or Next-Action x header (React2Shell CVE-2025-55182), and _next/image SSRF to the AWS metadata address.
references:
  - https://blog.gitguardian.com/react2steal-hijacked-github-accounts-exploit-react2shell-and-publish-stolen-secrets/
  - https://nvd.nist.gov/vuln/detail/CVE-2025-55182
  - https://nvd.nist.gov/vuln/detail/CVE-2025-29927
author: Threadlinqs Team
date: 2026/11/20
tags:
  - attack.initial-access
  - attack.t1190
  - attack.reconnaissance
  - attack.t1595.002
  - attack.credential-access
  - attack.t1552.005
  - cve.2025-55182
  - cve.2025-29927
logsource:
  category: webserver
detection:
  keywords_exploit:
    - 'bissa_cve_boundary'
    - 'x-middleware-subrequest'
    - 'Next-Action: x'
  selection_imds:
    c-uri|contains|all:
      - '/_next/image'
      - '169.254.169.254'
  condition: keywords_exploit or selection_imds
falsepositives:
  - Authorized vulnerability scanners or red-team exercises testing Next.js
  - Security blog or incident-report content echoed in logs
level: high

```

**Known false positives:**

- Authorized vulnerability scanners or red-team exercises that replay the public React2Shell / CVE-2025-29927 proof-of-concept requests
- Security blogs, WAF test suites or incident-response tickets that quote the header or boundary strings and appear in logged request bodies

**Tuning notes:** Request headers are only searchable if the sourcetype captures them (Splunk Stream, WAF or reverse-proxy custom log format with $http_x_middleware_subrequest and $http_next_action). Exclude approved scanner source IPs. A single bissa_cve_boundary or repeated x-middleware-subrequest hit from the internet is high fidelity; if the target is unpatched (React 19.0.1/19.1.2/19.2.1, Next.js fixed releases), rotate every secret the server process can reach.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- React2STEAL - React2Shell Server Function Exploit Variant Burst at WAF (locked: unlock with TL Creds)
- React2STEAL - First-Seen Node.js Process Contact to AWS Instance Metadata Service (IMDS Credential Theft) (locked: unlock with TL Creds)
- React2STEAL - Manually Dispatched 'scan' GitHub Actions Workflow Used for Scanning and Secret Exfiltration to Public Repos (locked: unlock with TL Creds)
- React2STEAL - Next.js x-middleware-subrequest Bypass and _next/image IMDS SSRF in Web Logs (locked: unlock with TL Creds)
- React2STEAL - Execution of Campaign Toolkit Scripts (batch_output.py, prefilter_nextjs.py, fast_recon.js) and w@w Git Identity (locked: unlock with TL Creds)
- React2STEAL Overlap - ci-sync Secret-Printing Workflow and wfx-docs Probe Branch in GitHub Audit Logs (locked: unlock with TL Creds)
- React2STEAL - Node.js Process Spawning Recon and Secret-File Reads (fast_recon.js Behavior) (locked: unlock with TL Creds)
- React2STEAL - Stolen AI Provider Key Validation from Servers (Chrome 126 User Agent) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 18)

Defanged, TLP:CLEAR.

- File hash: `fda8b5097a5223a5afcbc0c346a8af55faa4fd07`
- File hash: `823e8824acb61aa036a3e0c8945a63d4a2e0cf64`
- File hash: `418bf778648c9f5fa4fd95340e07a05dca797e37`

Full set of 18 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [React2STEAL: Hijacked GitHub Accounts Exploit React2Shell and Publish Stolen Secrets (GitGuardian)](https://blog.gitguardian.com/react2steal-hijacked-github-accounts-exploit-react2shell-and-publish-stolen-secrets/)
- [OpenSourceMalware: React2STEAL research](https://opensourcemalware.com/blog/react2steal-github-actions)
- [NVD: CVE-2025-29927](https://nvd.nist.gov/vuln/detail/CVE-2025-29927)
- [NVD: CVE-2025-55182](https://nvd.nist.gov/vuln/detail/CVE-2025-55182)
- [React: Critical Security Vulnerability in React Server Components](https://react.dev/blog/2025/12/03/critical-security-vulnerability-in-react-server-components)
- [Next.js: Security Advisory CVE-2025-66478](https://nextjs.org/blog/CVE-2025-66478)
- [GitGuardian: wfx-loot CI secret stealer pushed with stolen GitHub credentials](https://blog.gitguardian.com/wfx-loot-a-ci-secret-stealer-pushed-with-stolen-github-credentials/)
- [GitGuardian: GhostAction GitHub Actions supply chain attack returns](https://blog.gitguardian.com/ghostaction-github-actions-supply-chain-attack-returns/)
- [GitHub Advisory GHSA-f82v-jwr5-mffw (Next.js middleware authorization bypass)](https://github.com/advisories/GHSA-f82v-jwr5-mffw)
- [CISA Known Exploited Vulnerabilities Catalog (CVE-2025-55182 added 2025-12-05)](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6629
