> ## Content Index
> Fetch the complete content index at: https://dampsnag.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Your Ghost Blog Runs on Node.js. The Brotli Bug CISA Says Is Being Exploited Lives Inside It
- URL: https://dampsnag.com/blog/node2shell-brotli-node-update/
- Published: 2026-10-28T23:48:38.000Z
- Updated: 2026-10-28T23:48:38.000Z
- Description: CVE-2026-111497 is a Brotli decoder bug Node.js ships inside itself. CISA put it on the KEV list on 27 October. Fixed Node lines, a Docker check loop, Ghost notes, and an nginx stopgap.
- Author: DampSnag
- Tags: Security, Self-Hosting, Patching

If you self-host Ghost, n8n, Uptime Kuma, Bun, or pretty much anything else that ships with Node.js, the interesting part of this week is not a new app CVE. It is a bug in Google's Brotli decoder that Node bundles and that [CISA](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field%5Fcve=CVE-2026-111497) put on the Known Exploited Vulnerabilities catalogue on 27 October (US date). The due date for US federal agencies is 10 November. You and I are not those agencies, but the listing is a useful signal that someone is already poking at it.

**In short:** [CVE-2026-111497](https://nvd.nist.gov/vuln/detail/CVE-2026-111497) is an out-of-bounds write in Brotli's decoder. Fixed Brotli builds are 1.0.10, 1.1.1 and 1.2.1 (tagged 21 October). Node.js fixed it in **22.23.4**, **24.22.1** and **26.12.1**. Bun fixed it in **1.4.4**. A public proof of concept showed up quickly, Aikido got code execution against stock Node 24.22.0 (not every attempt), and ELLIO saw exploit traffic from the same Netherlands IP that showed up in [PHP2Shell](https://dampsnag.com/blog/php2shell-php-update-self-hosters/). Check the Node version inside each container, bump anything below those lines, and if you need a short stopgap at the reverse proxy, reject `Content-Encoding: br` request bodies until you can upgrade.

**Jump to:** [What broke](#what-broke) · [How an attacker reaches it](#how-an-attacker-reaches-it) · [Is anyone being hit](#is-anyone-being-hit) · [Check your Node](#check-your-node) · [Ghost, Debian, and a stopgap](#ghost-debian-and-a-stopgap)

## What broke

Brotli is Google's compression format. The bug sits in `c/dec/decode.c`. NVD says versions **1.0.3 through 1.2.0** are affected. Google's CNA rates it 9.2 (Critical) on CVSS 4.0\. Node rates its own copy "high". A crafted Brotli stream can corrupt decoder memory, leak process memory, crash the process, or potentially run code. That is the NVD and Node.js advisory wording, not my dramatisation.

Node does not link the system `libbrotli` in the official builds. It ships its own copy, so `apt upgrade` on the host does not fix a Node container. Distro Node packages that *do* link system Brotli are a different story: those pick up the fix when the distro's Brotli package lands. On Debian 13 (trixie) the fixed package I saw is `libbrotli1` **1.1.0-2+deb13u1**, and the local changelog names this CVE.

End-of-life Node lines (25.x, 23.x, 20.x and older) get no fix from the project. If you are still on one of those, the answer is a supported line, not a config tweak.

Microsoft also shipped emergency .NET fixes for the same Brotli bug, and the pure-Go port `andybalholm/brotli` released v1.2.7\. I am not covering those stacks here beyond noting the blast radius is wider than Node.

## How an attacker reaches it

A bare Node `http` server does not decode incoming Brotli on its own. The interesting paths, from the Node.js advisory and [Aikido's write-up](https://www.aikido.dev/blog/node2shell-nodejs-brotli-rce-cve-2026-111497), are:

1. **Incoming request bodies.** Express 5 and body-parser 2.x will decompress a body sent with `Content-Encoding: br`. Any client can send one.
2. **Outgoing `fetch()`.** Node's fetch automatically decompresses Brotli responses, so a malicious or compromised server can hit you through its reply. Webhooks, link previews and "fetch this URL" features are the usual suspects.
3. **Direct `node:zlib` use** on untrusted data (`brotliDecompress`, `createBrotliDecompress`).

So "I don't accept uploads" is not a full answer if your app fetches URLs or unpacks Brotli itself.

## Is anyone being hit

Attempts, yes. How widespread, unclear.

- Researchers at Aikido reported code execution against the official, unmodified Node.js **24.22.0** image on Linux arm64 on 22 October. It did not work every attempt.
- [ELLIO](https://ellio.tech/en/blog/node2shell-cve-2026-111497-rce-on-stock-nodejs-builds/), quoted by [The Hacker News](https://thehackernews.com/2026/10/adobe-commerce-polyshell-attacks-breach.html), says its sensors saw in-the-wild exploit traffic carrying the public exploit from **94.154.43.7** (Netherlands). That is the same IP seen in PHP2Shell exploitation. One scanner poking at both stacks is not proof of a single campaign, but it is a reason to patch both.
- Previdian telemetry recorded one exploitation attempt against honeypots from a US IP as of 27 October. Scale unknown.

CISA's KEV entry frames it as "Unchecked Return Value" (CWE-252, CWE-787). Node.js describes the mechanism as an invalid block switch treated as "needs more input". Same bug, different labels.

## Check your Node

On the host:

```bash
node --version

```

You want **22.23.4+**, **24.22.1+** or **26.12.1+** on a supported line. For Bun: **1.4.4+**.

Inside each running container (put `sudo` in front of both `docker` commands if your user is not in the `docker` group):

```bash
for c in $(docker ps --format '{{.Names}}'); do
  v=$(docker exec "$c" node --version 2>/dev/null) || v="no node"
  echo "$c: $v"
done

```

That prints one clean line per container and discards the noise from containers that do not have Node. Older one-liners that pipe `docker ps` into `xargs docker exec` tend to fail without sudo and dump OCI "node not found" errors for every non-Node container.

To check an image without starting your real app:

```bash
docker run --rm --entrypoint node <image> --version

```

On throwaway pulls from Docker Hub I got **v22.23.4** from `node:22`, and **v24.22.1** from both `node:24` and `node:24-alpine`. Those match the fixed lines.

Pinned tags stay vulnerable until you rebuild. `docker compose restart` on an old image does nothing useful here.

## Ghost, Debian, and a stopgap

I pulled a throwaway `ghost:6` on a Debian 13 VPS test box. It resolved to Ghost **6.73.0** on Node **v22.23.4**. Depth-0 deps in that image were `express@4.22.3` and `body-parser@1.20.9`. That means the Express 5 / body-parser 2.x incoming `br` body path does **not** apply to the official Ghost image as shipped.

Other paths (`fetch()`, direct `node:zlib`) are unconfirmed for Ghost, so I am still treating Ghost as needing a patched Node. If your compose file pins an older tag, a `pull` alone will not move you. Bump the tag to a build on patched Node, then `docker compose pull && docker compose up -d`, and re-check `node --version` inside the container.

Ghost-CLI installs (non-Docker): update Node via NodeSource or your package manager to 22.23.4 / 24.22.1 or later, then `ghost restart`.

System Brotli on Debian/Ubuntu:

```bash
apt list --installed 2>/dev/null | grep -i brotli
sudo apt update && sudo apt upgrade

```

On Debian 13 the fixed `libbrotli1` is **1.1.0-2+deb13u1**. Prefer the local changelog over `apt changelog` if the latter 404s:

```bash
zcat /usr/share/doc/libbrotli1/changelog.Debian.gz | head

```

Stopgap at nginx while you patch, inside the `server` block:

```nginx
if ($http_content_encoding ~* "br") { return 415; }

```

I tested that on a scratch nginx: `nginx -t` passed, a request with `Content-Encoding: br` got **415**, a normal request got **200**. It does **not** protect outgoing `fetch()` calls. Only a runtime upgrade fixes those.

Same week as [Tailworm](https://dampsnag.com/blog/tailworm-tailscale-ssh-update/) and the PHP mess, this is another "know what your containers actually run" day. The check is one loop. The fix is a version bump. Do both before you argue about whether your particular app decompresses Brotli.

*DampSnag*