How To

React2Shell in Next.js: Check, Patch and Rotate After React2Keys

On December 3, 2025, the React team disclosed CVE-2025-55182 (CVSS 10.0), the bug now called React2Shell. It is an unauthenticated remote code execution flaw in how React Server Components decode Server Function requests. Next.js tracks it for App Router apps as CVE-2025-66478, and an unpatched app still runs attacker JavaScript from one POST.

Original content from computingforgeeks.com - post 201079

A year on, the bug has an active campaign behind it. On November 30, 2026, CloudSEK reported React2Keys, an automated operation that used React2Shell to take more than 50,000 credentials from over 19,000 victims, then planted its own SSH key so a patch alone does not evict it. Below we check exposure, patch past the follow-on CVEs, hunt for the campaign’s traces and rotate keys in an order that cuts off the pivot.

Every check ran in December 2026 on Ubuntu 26.04.1 LTS with Node.js 22.22.1 and nginx 1.28.3, moving a Next.js app from 15.4.5 to 16.4.6. We used version and lockfile checks only, so no step hits the vulnerable path or runs an exploit payload.

Apps exposed to React2Shell

The exposure is the Server Function endpoint that every App Router app gets once it uses React Server Components. Next.js says Pages Router apps are not affected and neither is the stable 14.x line, while 14.3.0-canary.77 and later canaries are. An auth redirect in front is no proof of safety either: CloudSEK’s write-up says the scanner re-sends its body at each redirect hop, so apps behind auth middleware redirects stay on its list.

You can confirm from outside that a host runs the App Router before you touch its code. The response headers give it away:

curl -sI http://127.0.0.1:3000/ | grep -iE '^(HTTP|x-powered-by|vary)'

The RSC and Next-Router-State-Tree values in Vary mark an App Router build, and X-Powered-By names the framework to anyone who asks:

HTTP/1.1 200 OK
Vary: RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch, Accept-Encoding
X-Powered-By: Next.js

Scanners fingerprint the same way, so treat a match as “this host is on the target list”. Self-hosted products built on Next.js count too. If you run something like a self-hosted Cal.com on Docker, check the Next.js version bundled in the image, not only your own repositories. These conditions put an app in scope:

  • The app uses the app/ directory (App Router) on Next.js 15.x or 16.x, or a 14.3 canary from canary.77 onward.
  • The installed next package is older than the fixed release for its line in the table below.

Writing no 'use server' file of your own does not take you out of scope. React’s advisory says an app that supports Server Components can be vulnerable even without any Server Function endpoints, so App Router plus an affected version is the whole test. If both hold and the app faced the internet unpatched in November 2026, do the patch and the rotation sections below. Skipping the rotation leaves the stolen keys working.

Fixed releases and the follow-on CVEs

The first React2Shell patch was not the last patch you need. Researchers studying it found a denial of service bug (CVE-2025-55184), a source code exposure bug (CVE-2025-55183) and an incomplete DoS fix that needed a second release (CVE-2025-67779). In January 2026 another batch of DoS issues followed (CVE-2026-23864). None of the follow-ons allows code execution, but each one moved the minimum safe release in every line:

Next.js lineReact2Shell fix (CVE-2025-66478)DoS and source exposure (CVE-2025-55184, 55183, 67779)DoS batch (CVE-2026-23864)
15.0.x15.0.515.0.715.0.8
15.1.x15.1.915.1.1115.1.12
15.2.x15.2.615.2.815.2.9
15.3.x15.3.615.3.815.3.9
15.4.x15.4.815.4.1015.4.11
15.5.x15.5.715.5.915.5.10
16.0.x16.0.716.0.1016.0.11
16.1.xincluded from 16.1.0included from 16.1.016.1.5
13.3 to 14.xnot affected14.2.35 (DoS fixes only)affected, no 14.x fix listed
Sources: the Next.js CVE-2025-66478 advisory, the Next.js security update of December 11, 2025, and Vercel’s CVE-2026-23864 summary.

The last row is the trap in that table. Stable 14.x never had the remote code execution bug, but the December DoS fixes for 13.3 and later only shipped in 14.2.35, and Vercel lists 13.x and 14.x as affected by CVE-2026-23864 with fixes only on the 15.x and 16.x lines. A 14.x App Router app is out of React2Shell scope and still needs to move to a supported line.

Apps that pull the React Server Components packages directly (react-server-dom-webpack, -parcel or -turbopack, for example under Vite or React Router) follow the React releases instead. Next.js ships its own copy of that code, so a Next.js app is fixed by the next version alone. For the direct packages, take the React2Shell fix below, then move to the newest release on your line for the January CVE, which npm’s latest tag put at 19.3.1.

React RSC packagesReact2Shell fixCVE-2026-23864 too
19.0.x19.0.1latest 19.0.x patch
19.1.x19.1.2latest 19.1.x patch
19.2.x19.2.1latest 19.2.x patch

The tables tell you what was fixed then. They do not tell you what is safe now, because most of these lines stopped getting releases. Ask the registry what each line actually has:

npm view next versions --json | jq -r '.[]' | grep -E '^15\.4\.[0-9]+$' | tail -6; npm view next dist-tags --json | jq -r '.latest, ."backport" // empty'

The 15.4.x line ends at the January fix. The last two lines are the latest tag and the backport tag, which is where any remaining 15.x fixes go:

15.4.6
15.4.7
15.4.8
15.4.9
15.4.10
15.4.11
16.4.6
15.5.29

That gap between “fixed for React2Shell” and “safe today” turned out to be the biggest finding in the lab, as the patch section shows.

The installed version in one project

Check the version npm actually resolved, not the range in package.json. A caret range like ^15.4.0 can resolve to anything in the line, and the lockfile decides what runs in production. From the project root:

npm ls next react react-dom

The lab app resolved next to a release from before the React2Shell fix, with React on the 19.1 line, so it’s exposed on every count in the tables:

npm ls showing next 15.4.5 with react 19.1.0 in a vulnerable Next.js App Router project

Vercel publishes an official React2Shell checker, fix-react2shell-next. According to its README, it walks every package.json in the tree (monorepos included), reads npm, yarn, pnpm and bun projects, and refreshes the lockfile with whichever manager it detects. That matters for workspaces like a Turborepo monorepo, where one app is easy to miss. Run it in check-only mode first:

npx --yes fix-react2shell-next --dry-run

It flagged the app for React2Shell and the three December follow-ons, and proposed a bump within the same line:

fix-react2shell-next dry run flagging next 15.4.5 as vulnerable to CVE-2025-66478 and three follow-on CVEs

Look at the list of four CVEs. CVE-2026-23864 is not there, and the proposed target is the December release, not the January one. The package’s registry metadata explains why:

npm view fix-react2shell-next version time.modified

The checker has not been published since December 12, 2025.

version = '1.1.4'
time.modified = '2025-12-12T03:03:49.408Z'

Use the checker to answer “am I exposed to React2Shell” and nothing more. A clean result from it does not mean the app is current, and the patch section proves that.

Every Next.js install on the host

The checker only sees the tree you run it in. The servers that got hit tend to carry an old admin panel or a staging copy in another directory, and the attacker only needs one of them. Search the whole filesystem for top-level next installs and print each version (it needs jq, which sudo apt install -y jq adds):

sudo find / -xdev -path '*/node_modules/next/package.json' -not -path '*/node_modules/*/node_modules/*' 2>/dev/null | while read f; do printf '%-28s %s\n' "${f%/node_modules/*}" "$(jq -r .version "$f")"; done

On the lab host, the app we had just patched sat next to a forgotten admin app still on the vulnerable release:

Host-wide scan of node_modules finding a forgotten Next.js 15.4.5 app next to the patched one

Note that -xdev keeps find on one filesystem, so an app under a separate mount such as /tmp or a data volume needs its own run. Our first pass missed a copy under /tmp for exactly that reason. Containers need the same check inside each image, because their node_modules do not show up on the host filesystem.

Repositories that were never installed on the box have no node_modules at all, yet their lockfile decides what the next build or image ships. This loop finds npm, pnpm, Yarn and Bun lockfiles under /home and /srv and prints the next version each one resolves to. Save it as lockscan.sh and run it with bash lockscan.sh, or with sudo to read other users’ home directories, which Ubuntu creates as 0750:

find /home /srv -name node_modules -prune -o -type f \( -name package-lock.json -o -name pnpm-lock.yaml -o -name yarn.lock -o -name bun.lock \) -print 2>/dev/null | while read f; do
  case "$f" in
    *package-lock.json) v=$(jq -r '.packages["node_modules/next"].version // empty' "$f") ;;
    *pnpm-lock.yaml) v=$(grep -oE '^  next@[0-9][^:(]*' "$f" | head -1 | cut -d@ -f2) ;;
    *yarn.lock) v=$(grep -A1 -E '^"?next@' "$f" | grep -oE 'version "[^"]+"' | head -1 | cut -d'"' -f2) ;;
    *bun.lock) v=$(grep -oE '"next@[0-9][^"]*"' "$f" | head -1 | tr -d '"' | cut -d@ -f2) ;;
  esac
  [ -n "$v" ] && printf '%-42s next %s\n' "$f" "$v"
done

For Yarn, the loop reads the version line under the entry rather than the key, because a key like next@^16.0.0 holds the range from package.json, not the release that was locked. In the lab, the scan found a pnpm admin portal pinned below every fix in the table, which no node_modules search would have caught.

Know the loop’s limits before you trust a short list. It parses npm lockfiles from version 2 on, the pnpm lockfile v9 that pnpm 9 and 10 write, Yarn Classic and the text bun.lock. A file it cannot parse is skipped without a line, and that covers Yarn Berry (version: 16.4.6 without quotes), lockfiles from pnpm 8 and earlier (keys with a leading slash), npm 6 lockfiles and Bun’s older binary bun.lockb, which the search does not look for at all. It also prints only the first next it meets, so a workspace lockfile holding two versions shows one, or none when npm did not hoist next to the root. The bun.lock branch went untested in this lab, because no Bun repository was on the host. Compare the number of lines against the number of repositories, and check any missing one by hand.

Inside one installed project, the package managers answer the same question directly with pnpm why next and yarn why next. Both read the installed tree, so we ran an install in each lab repository first:

Lockfile scan printing the resolved Next.js version from package-lock.json, yarn.lock and pnpm-lock.yaml, plus pnpm why next

Yarn Classic printed info => Found "[email protected]" for the marketing site, so that one was already current. Only the pnpm repository went on the patch list.

Patching past the checker’s target

The quickest fix is to let the checker apply its own bump with --fix, which edits package.json and reinstalls:

npx --yes fix-react2shell-next --fix

A second dry run reported the project clean. Read the npm output above it, though: the same install that the checker called a success left three vulnerabilities, one of them critical:

fix-react2shell-next --fix bumping next to 15.4.10 while npm still reports 3 vulnerabilities

This is where most teams would have stopped, and the lab shows why that’s a mistake. Run the audit the checker skipped:

npm audit

The next entry alone listed more than thirty advisories published since the checker’s last update, including unauthenticated remote code execution in the Image Optimization API and a middleware bypass. The first lines are enough to see the severity:

npm audit listing critical Next.js advisories still open on 15.4.10 after the React2Shell checker reported clean

npm’s own suggested fix pointed at the 15.x backport release, outside the app’s original line. We installed it, let npm fix what it could and audited again:

npm install [email protected]
npm audit fix
npm audit

React2Shell and its follow-ons were gone, but the postcss copy that Next.js pins still raised a high advisory that npm audit fix could not clear:

postcss  <=8.5.22
Severity: high
2 vulnerabilities (1 moderate, 1 high)

Only the current major line came back fully clean, so that is the target we recommend. Move the framework and React together. npm accepts the new next on the old React, but the React Server Components fixes for apps outside Next.js ship in react releases, and keeping both current keeps the audit clean:

npm install next@latest react@latest react-dom@latest
npm audit

A major upgrade on a large app can break things (route handlers, caching defaults, config keys), so test it on a branch first. If you cannot take the major jump this week, install the backport release with the commands above, accept the PostCSS finding for now and plan the major upgrade, which still leaves you far better off than the checker’s target. Either way, the running process keeps the old code until you rebuild and restart it. Our lab ran the app as a systemd unit called shop-app, so swap in your own unit, PM2 process or container:

npm run build
sudo systemctl restart shop-app

Confirm all three things at once: the installed versions, a clean audit and the running server’s own startup banner in the journal. The journalctl filters pull that banner out quickly if the unit logs a lot:

Next.js upgraded to 16.4.6 with React 19.3.1, npm audit at 0 vulnerabilities and the app answering 200

The banner is the check that counts. A patched node_modules behind an unrestarted process is still exploitable, and the restart only happens if someone does it.

Containerized apps rebuild from the lockfile

Most production Next.js apps run in a container, and there the fix lives in the image, not on the host. We ran the same shop app under Docker Compose with a fake .env, to show where the secrets end up. Open the project’s .env:

vim .env

Every value in the lab file is made up, but the shape matches what CloudSEK says React2Keys harvests: a cloud key pair, a database URL and an AI provider key:

AWS_ACCESS_KEY_ID=AKIAEXAMPLEDUMMY0000
AWS_SECRET_ACCESS_KEY=dummy-secret-not-real-0000000000000000
DATABASE_URL=postgres://shop:[email protected]:5432/shop
ANTHROPIC_API_KEY=dummy-not-a-real-key

The lab’s .dockerignore lists .env, so that file never lands in an image layer. Use .env* in your own, because COPY . . would still bake in a .env.production or .env.local, and CloudSEK says the harvester sweeps those too. Keeping secrets out of the image still does not protect you here. Compose’s env_file loads every line into the container’s process environment at start, and React2Shell runs code inside that same Node.js process. Anything that runs in that process can read process.env, so by those semantics every value Compose loaded, all four in this file, sits within reach of the vulnerable path. These are the exact compose.yaml and Dockerfile the lab ran:

services:
  shop-app:
    build: .
    env_file: .env
    ports:
      - "127.0.0.1:3000:3000"
    restart: unless-stopped

Because the image runs npm ci, the lockfile alone decides which next it bakes in.

FROM node:22-alpine
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
ENV NODE_ENV=production
EXPOSE 3000
CMD ["npm", "start", "--", "-H", "0.0.0.0", "-p", "3000"]

Inside a container, Next.js has to listen on 0.0.0.0, so the port mapping does the origin lockdown instead: 127.0.0.1:3000:3000 publishes it on the host’s loopback only. To patch, update the lockfile on the host without installing anything, then rebuild and replace the container. Like the systemd path above, next@latest moves a 15.x app to the 16.x major line. A host without Node.js can run the first command in a throwaway container with sudo docker run --rm -v "$PWD":/app -w /app node:22-alpine in front of it:

npm install next@latest react@latest react-dom@latest --package-lock-only
sudo docker compose up -d --build

Check the versions from inside the running container, not from the host’s checkout. Run this from the project directory:

sudo docker compose exec shop-app npm ls next react react-dom --depth=0
sudo docker compose ps --format "table {{.Service}}\t{{.Status}}\t{{.Ports}}"
sudo docker compose logs shop-app 2>&1 | grep -E "Next.js|Ready"

Before the rebuild it reported the vulnerable release. Afterwards it reported the current one, still on loopback only, and the container log printed the new banner:

Docker Compose shop-app container on Next.js 15.4.5, then rebuilt on 16.4.6 with React 19.3.1 and bound to 127.0.0.1:3000

Rebuilding the image is half the job. Every other place that image tag runs (a Kubernetes deployment, another Compose host, a staging copy) keeps the old build until it pulls the new one, so redeploy everywhere the tag runs. Then rotate the values in .env, because a rebuild does nothing about secrets that were already read.

The request shape and what it leaves in logs

CloudSEK describes the React2Keys exploit as one unauthenticated POST to any route that can reach a Server Action. The body is a crafted multipart form that holds a malicious React Flight object, and prototype pollution turns it into JavaScript running inside the Node.js process. The output comes back in the digest field of a thrown error, so the app’s own production error handling becomes the exfiltration channel. We will not reproduce that payload. The detection does not need it, because the requests that carry it share a shape with harmless traffic you can generate yourself.

Server Action calls carry a Next-Action header, and nginx’s default combined format drops it. Log it now, along with Cloudflare’s CF-Connecting-IP, so you can tell later which POSTs came through the edge and which hit the origin directly. Create a dedicated config:

sudo vim /etc/nginx/conf.d/shop-app.conf

This is the exact file the lab ran in front of the app, with a custom rsc_audit format and a plain reverse proxy to port 3000:

log_format rsc_audit '$remote_addr cf=$http_cf_connecting_ip [$time_local] '
                     '"$request" $status $body_bytes_sent '
                     'action="$http_next_action" ct="$content_type" ua="$http_user_agent"';

server {
    listen 80 default_server;
    server_name _;
    access_log /var/log/nginx/shop-app-rsc.log rsc_audit;

    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

Ubuntu’s nginx package enables a default site that also claims default_server on port 80, and nginx -t rejects two of them as a duplicate. Remove that symlink (the file stays in sites-available), then validate and reload. A failed nginx -t leaves the old config serving, so do not skip reading its output:

sudo rm -f /etc/nginx/sites-enabled/default
sudo nginx -t
sudo systemctl reload nginx

We then sent three requests through it: a normal page load and a POST with a made-up action ID, both with a Cloudflare header, and one more POST with another made-up action ID, an empty multipart body and no Cloudflare header, the way a scanner that found the origin would arrive. This filter pulls Server Action POSTs that skipped the edge, where nginx logs the missing header as -:

sudo awk '/"POST / && /action="[^"]+"/ && / cf=- /' /var/log/nginx/shop-app-rsc.log

Next.js logs a matching error for every action ID it does not recognise, which is what probing scanners produce in bulk:

journalctl -u shop-app --since '-30 min' --no-pager | grep -E 'Server Reference ID|failed-to-find-server-action'

Only the direct-to-origin probe survived the nginx filter, while the journal recorded both bogus action IDs:

nginx log hunt for Server Action POSTs that reached the origin without a Cloudflare header, plus the matching Next.js errors

Treat these lines as leads, not proof. Anyone can send a fake CF-Connecting-IP header straight to the origin, so cf= is only trustworthy once the Cloudflare allow list below is in place, and then $remote_addr is the field to check. A real exploit can also carry a valid action ID and will not always trip the error, and logs written before you added the format have no action field at all. For those older logs, look for bursts of POSTs to page routes from non-browser user agents, especially any that reached the origin’s own address. The same behaviour-first approach is behind our ARTEX AI pentest traffic detection rules, which you can adapt to these logs.

The React2Keys SSH key

Persistence is why patching is not enough. CloudSEK reports that the actor appends its own ed25519 public key to the compromised account’s authorized_keys, with the comment bluelocale-foothold, so access survives the upgrade. That key is the only published host indicator. The report does not list file hashes, domains or IP addresses, and the one other artifact it mentions (imports from a .hermes/skills path) lives in the actor’s tooling, not on your server.

Start with an inventory, since an unfamiliar key without the comment matters just as much. This lists every authorized_keys file with its modification time and key count:

sudo find / -xdev -path '*/.ssh/authorized_keys*' 2>/dev/null | while read f; do printf '%-34s %s  keys=%s\n' "$f" "$(sudo stat -c %y "$f" | cut -d. -f1)" "$(sudo grep -cE '^(ssh-|ecdsa-|sk-)' "$f")"; done

Then search for the campaign’s key by its comment and by the base64 key material from CloudSEK’s Sigma rule. The comment is easy to change, but the key blob is not:

sudo grep -rnE 'bluelocale-foothold|AAAAC3NzaC1lZDI1NTE5AAAAINiNfAw552VRo\+E3mBu/MHaVsRDcN0BMGuVCjgIyHbb3' /root/.ssh /home/*/.ssh /etc/ssh 2>/dev/null; echo "exit=$?"

On the lab host, exit=1 means grep found nothing, and every timestamp fell within the few minutes we spent provisioning the VM and its users. The grep paths cover root and normal users only. If Node runs as a service account whose home is under /var/www, /opt or /srv, or sshd uses a custom AuthorizedKeysFile, grep every file the inventory lists. Run the inventory again without -xdev if /home is a separate mount:

authorized_keys inventory and a grep for the React2Keys bluelocale-foothold key returning no match

A hit means the host is compromised. Remove the line, but take the rest of this guide as mandatory, because by the time the key was planted the secrets were already gone. A miss does not clear the host either: the actor could have used a different key or none, so check any key you can’t attribute, cron entries and recent SSH logins as CloudSEK advises. Two caveats apply to the published Sigma rule. It matches on a FileContents field that common Linux file-event sources such as auditd do not record, so test it against your own sensor before you rely on it. Its date of 2026/11/24 is when the rule was written, not when keys were planted, so do not use it as the start of your log window.

Rotation order after exposure

If an exposed app ran unpatched while the campaign was active, assume everything the Node.js process could read is in someone else’s hands. That covers every environment variable, every .env* file in the app directory, cloud credential files, SSH keys and the Kubernetes service account token. CloudSEK reports that the actor validates stolen keys in near real time and spends live cloud tokens on more scanning, so order matters. Rotate what can create new access first:

  1. Cloud identities: AWS, Azure and GCP keys, plus the roles behind IRSA, EKS Pod Identity and managed identities, revoking active sessions and not just static keys.
  2. Secrets manager gateway credentials, since one vault token readable by the app exposes every secret behind it.
  3. Database passwords and connection strings, then the sessions they opened.
  4. Git hosting tokens and deploy keys, because a stolen token lets the actor search your whole organization’s code for more secrets.
  5. AI provider keys (Anthropic, OpenAI, Gemini, OpenRouter) and any AI tool logins stored on the host.
  6. Payment, domain registrar, email and messaging tokens such as Slack, Telegram bots and SMTP credentials.
  7. Crypto exchange API keys and wallet or custody credentials, which CloudSEK lists among the targets.
  8. Host SSH keys and every authorized_keys entry you can’t attribute.

Cloud identity comes first because CloudSEK found the actor pulling live AWS credentials from the container metadata endpoint, EKS Pod Identity and IRSA, and Azure managed identity tokens from instance metadata, even where no static key existed, so “we only use roles” is not a defence. After each step, check the provider’s audit logs (CloudTrail, Azure activity logs, GCP audit logs, AI platform usage) for new IAM users, model access changes and instances you didn’t launch. The same discipline applies after any supply-chain incident, and our agent-framework PyPI malware key rotation walks through the cleanup for a Python stack.

One fear you can drop: the source code exposure bug (CVE-2025-55183) returns compiled Server Function code, not the process environment. Next.js says secrets read from environment variables at runtime aren’t exposed through it. Only values hardcoded into a Server Function can leak that way, and those need rotating no matter what.

An origin reachable around Cloudflare

A CDN in front does not protect an origin that answers anyone. CloudSEK says React2Keys includes a module that infers an undocumented Cloudflare IP range from patterns in its failed probes, aimed at reaching origins when the edge blocks the payload. Our lab app had that gap even with nginx in front, because next start listens on every interface by default:

sudo ss -ltnp | grep -E ':3000|:80 '

Port 3000 showed up as *:3000, so anyone who could reach the host could skip nginx entirely. Bind Next.js to loopback in the service’s start command. This is the start command we restarted the lab app with:

npm start -- -H 127.0.0.1 -p 3000

Next, make nginx refuse anything that didn’t come through Cloudflare. Build an allow list from Cloudflare’s published ranges and end it with a deny:

{ for ip in $(curl -s https://www.cloudflare.com/ips-v4) $(curl -s https://www.cloudflare.com/ips-v6); do echo "allow $ip;"; done; echo "deny all;"; } | sudo tee /etc/nginx/cloudflare-only.conf >/dev/null

Include it in the server block. Open the site config again:

sudo vim /etc/nginx/conf.d/shop-app.conf

The tested result adds a single include line under access_log:

log_format rsc_audit '$remote_addr cf=$http_cf_connecting_ip [$time_local] '
                     '"$request" $status $body_bytes_sent '
                     'action="$http_next_action" ct="$content_type" ua="$http_user_agent"';

server {
    listen 80 default_server;
    server_name _;
    access_log /var/log/nginx/shop-app-rsc.log rsc_audit;
    include /etc/nginx/cloudflare-only.conf;

    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

Run sudo nginx -t and reload as before, then test from a source that is not Cloudflare. After the change, Next.js listened only on 127.0.0.1:3000 and nginx answered our direct request with a 403 that names the rule:

ss showing Next.js moved from all interfaces to 127.0.0.1:3000 and nginx returning 403 to a non-Cloudflare client

The file held 22 ranges when we built it. Cloudflare changes the list now and then, so regenerate it on a schedule. In a scheduled job, use curl -sf, write to a temporary file and only move it into place when it has more than a deny all; line, because a failed download leaves a file that passes nginx -t and blocks every visitor. Back it with a cloud firewall rule so ports 80 and 443 only accept Cloudflare at the network edge as well. Static sites have nothing to lock down here: a fully static export, such as one on Cloudflare Pages, has no Server Function endpoint to attack.

React2Shell exposure audit

Close the incident only when every item below holds on every host that ran an App Router app. Each one maps to a check shown above, and the vendor details are in CloudSEK’s React2Keys report and Vercel’s CVE-2026-23864 summary:

  1. Neither the host-wide find scan nor the lockfile scan lists a next version below the January 2026 fix for its line, and every repository the lockfile scan skipped was checked by hand.
  2. npm audit in each app shows no critical or high advisory against next.
  3. The journal’s startup banner for each service names the upgraded Next.js release.
  4. Every container image that bundles Next.js was rebuilt and redeployed, and the running containers use the new tag.
  5. The grep for bluelocale-foothold and its key blob exits 1 on every host.
  6. Every authorized_keys entry belongs to a known person or system.
  7. Every secret the app process could read has been rotated, in the order above, and the old values fail.
  8. Cloud and AI platform audit logs show no IAM users, keys or model access changes that nobody can explain.
  9. ss -ltnp shows the Next.js port bound to 127.0.0.1 only.
  10. A request to the origin from outside Cloudflare’s ranges gets a 403 or no answer.
  11. The access log records Next-Action and CF-Connecting-IP for every request.

If item 1 or 9 fails, go back to the patch or origin section before you rotate anything else, because new keys leaked through an open app are just as lost. For a same-week example of another stack, the Argo CD security release check follows the same check, patch and verify loop.

Keep reading

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs Security Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Security UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch Security nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch WP Rocket CVE-2026-125812: Check, Patch and Hunt Planted Files Security WP Rocket CVE-2026-125812: Check, Patch and Hunt Planted Files ty Python Type Checker: Install and Benchmark vs mypy, Pyright Programming ty Python Type Checker: Install and Benchmark vs mypy, Pyright Best CRISC Books and Study Guides for the 2025 Job Practice Books Best CRISC Books and Study Guides for the 2025 Job Practice

Leave a Comment

Press ESC to close