In partnership with

In 30 seconds: Karina Reaño, a threat intelligence lead, found a campaign that OpenSourceMalware then documented as React2STEAL. It goes after Next.js servers missing either of two 2025 patches, copies their secrets and commits them to public GitHub repos. OpenSourceMalware counted at least 1,281 victim hostnames. If you run Next.js, check both bugs, then search your logs.

Lachlan Davidson reported React2Shell (CVE-2025-55182), and the React team disclosed it on December 3, 2025 and shipped the fix the same day, so that patch is almost a year old. Allam Rachid and Allam Yasser found the middleware bypass (CVE-2025-29927) earlier that year. On November 17, 2026, OpenSourceMalware saw new results posted to GitHub about every 11 minutes. I wanted to see what AWS WAF and a small Node shield catch while teams patch.

Recon 032: Unpatched Next.js servers are leaking keys to GitHub

WEEKLY RECON

Recon 032: Unpatched Next.js servers are leaking keys to GitHub

00:00
00:00

What happened

Karina Reaño shared the first 38 repos she found with OpenSourceMalware, which published "React2STEAL Uses GitHub Actions to Exploit React2Shell" on November 18, 2026.

OpenSourceMalware counted 45 repos named ci-wk-<number>, most holding a workflow set up to run on GitHub's own runners. OpenSourceMalware says the workflow picks Next.js hosts from a list and tries seven versions of the React2Shell request, one with 8 KB of padding in front of the body. If those fail, it tries the middleware bypass, which skips login checks done in Next.js middleware. It also asks the image endpoint, /_next/image, to fetch the cloud metadata address, which can return the server's AWS role credentials.

When React2Shell works, a script looks for the process environment, cloud credential files, Kubernetes tokens and .env files, tests any AI keys it finds, and the workflow commits the results to its own public repo. Database URLs, Stripe keys and AI provider keys were the most common.

Do this today

  1. Check the version running in production, from the deployed build or image, and upgrade if it's below these. React2Shell hits App Router apps on 15.x, 16.x and 14.3 canaries (go back to the latest stable 14.x), and the first fixes are 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 and 16.0.7. The middleware bypass matters if you self-host and do auth in middleware, and 15.x needs 15.2.3 or later (older lines: 14.2.25, 13.5.9, 12.3.5). So on 15.0, 15.1 or 15.2, move to at least 15.2.6.

  2. Search your request and WAF logs for the markers in Chainguard's table: any x-middleware-subrequest header (Chainguard lists it repeated five times), /_next/image?url= pointing at 169.254.169.254, and Next-Action: x with the boundary bissa_cve_boundary (one variant randomizes it). A match means something probed your app. In my sandbox, WAF logs showed all three test markers, but ALB access logs only had the /_next/image one, since they don't record headers. An empty search doesn't clear a host.

  3. Rotate every credential the server process could read if the host was reachable while unpatched, after you patch. Do it right away if a search matched. On EC2, require IMDSv2 after checking the workload supports it. It blocks the image-endpoint trick, though not code already running on the box. In my sandbox, Next.js 15.5.6 refused the metadata URL by default. With a wildcard image pattern, which I set up on purpose, it fetched it, and once I required IMDSv2 the metadata service answered 401. This lists running instances in one account and Region that still accept IMDSv1, then switches one:

aws ec2 describe-instances \
  --filters 'Name=instance-state-name,Values=running' \
            'Name=metadata-options.http-endpoint,Values=enabled' \
            'Name=metadata-options.http-tokens,Values=optional' \
  --query 'Reservations[].Instances[].InstanceId' --output text

aws ec2 modify-instance-metadata-options \
  --instance-id YOUR_INSTANCE_ID --http-tokens required

An untested agent prompt that flags old Next.js versions across your repos is on the web post.

What I tested

These ran in my own AWS sandbox with harmless requests shaped like the exploit. I didn't reproduce the remote code execution itself, and I didn't test the campaign's own padded request.

  • AWS WAF: AWS's managed Known Bad Inputs rule blocked my 76-byte test request. Behind about 9 KB of filler, the same request reached the app, because at the ALB default WAF reads only the first 8,192 bytes. Raising the limit to 16 KB blocked it, and a 17,079-byte version still got through. An oversize-body rule for Server Action requests caught both padded requests at 8 KB and the 17,079-byte one at 16 KB, and left my small normal calls alone. I'd raise the limit, add that rule in Count mode first, and still patch. The WAF log lines, cost and tooling notes

  • A small Node shield: it blocked my test probes, including a 9,026-byte padded one, and let 3,000 normal Server Action calls through. Two AI code reviews then found that a Multipart/Form-Data request got past its Content-Type check, and it has HTTPS and HTTP/2 gaps. I haven't fixed those, so treat it as a stopgap until you patch. How it works and what it misses

Your biggest deal just asked for a SOC 2 report. Can you send one?

Your champion is sold. Then procurement sends the security questionnaire, and line one asks for your SOC 2 report. No report, no signature.

Sprinto gets you audit-ready in 14 days, so the report lands before the deal goes cold. You give three working sessions; AI agents collect the evidence and ISO-certified experts guide the audit.

No consultants. No compliance hire. No engineers pulled off the roadmap.

Also this week

One question

Hit reply with one word, your Next.js version in production: 16, 15, 14, older, or none. I'll share the count next Tuesday.

Until next Tuesday,
R.K.

State of Product reveals what AI still hasn’t solved

80% of product professionals say AI helps them ship faster, but customers aren’t seeing value any sooner. Atlassian’s State of Product 2027 explores the gains AI is delivering and the challenges that remain, from decision-making that hasn’t kept pace to gut instinct overriding customer evidence.