The Brotli Flaw (CVE-2026-111497): Why ngx_brotli Is Fine and Your libbrotli Isn’t
CVE-2026-111497 is an out-of-bounds write in the Brotli decoder, affecting Google Brotli 1.0.3 through 1.2.0 and fixed in 1.0.10, 1.1.1 and 1.2.1. It has been in CISA's exploited-vulnerability catalog since 27 October 2026 and carries an EPSS of 82.6% — the highest of the four big autumn flaws after PHP2Shell. It also travels under three other names: HTTP2Shell, Node2Shell and Brotli2Shell.
And if you run nginx with the Brotli module, there is a good chance you are not affected by it at all — while being affected through four other packages you never associated with Brotli. That inversion is the whole story, and it is why "does the server have Brotli on it?" is the wrong question.
82.6%
EPSS probability as of 18 Nov 2026 — 99.7th percentile
27 Oct
added to CISA KEV; federal remediation was due 10 Nov 2026
Decoder
only decompression is vulnerable — compression never runs the code
What the flaw actually is
Per the NVD record, it is a buffer overflow in c/dec/decode.c that lets a remote, unauthenticated attacker "corrupt adjacent decoder state memory, disclose sensitive memory contents, cause a denial of service, or potentially execute arbitrary code using a crafted Brotli-compressed stream." It carries two weakness classes — CWE-252 (unchecked return value) and CWE-787 (out-of-bounds write) — which is why CISA's catalog lists it under the unfamiliar name "Google Brotli Unchecked Return Value Vulnerability" rather than any of the 2Shell brands.
Severity depends on who scored it: Google rates it CVSS 4.0 9.2 CRITICAL (with AT:P — attack requirements present), while NVD assigns CVSS 3.1 9.8 CRITICAL. Unlike Java2Shell, where the measured exploitation probability argues against the headline, here the data agrees with it: KEV listing, 82.6% EPSS, 99.7th percentile. This is the one to patch first.
Why ngx_brotli is not affected
The vulnerable code is the decoder. ngx_brotli compresses responses and serves pre-compressed .br files — it never decompresses, so it never calls the vulnerable routine. Danila Vershinin's analysis confirms it at the linker level: the filter module links only libbrotlienc and libbrotlicommon, and the static module links no Brotli library at all. F5 says the same about the NGINX Plus Brotli module — no module update is required for a decoder-only vulnerability.
So the obvious reading — "my nginx has Brotli, Brotli has a critical RCE, my nginx has a critical RCE" — is wrong. Which is precisely why a version-matching scanner that stops at "Brotli present, version in range" produces a finding your team will burn a weekend on and then correctly ignore. The second time that happens, they stop trusting the scanner, and that is more expensive than the false positive.
What actually decodes Brotli on your server
Everything in this list runs the vulnerable code, and most of it has nothing to do with your web server configuration:
| Component | Why it decodes | Exposed to |
|---|---|---|
nginx unbrotli module | Decompresses Content-Encoding: br responses from upstreams | A hostile or compromised backend |
curl / libcurl | Accepts Brotli-encoded responses | Any server it connects to |
| OpenSSL builds linking libbrotli | Certificate compression | The other side of the TLS handshake |
| Node.js | zlib.brotliDecompress and any request decompression | Patched in the October 2026 security releases |
| Python brotli bindings | Compile Brotli into their own extension | Not fixed by a system library update — replace the package |
| PHP on Windows | Bundled Brotli library | PHP shipped rebuilt Windows binaries (8.5.12-1, 8.4.27-1, 8.3.36-1, 8.2.35-1) on 26 Oct purely for this |
On an RPM-based host, one command answers the question properly:
rpm -q --whatrequires 'libbrotlidec.so.1()(64bit)'
Querying --whatrequires libbrotli prints nothing useful — packages depend on the soname, not the package name. On a test CentOS 7 box the correct query returned brotli, openssl35-libs, libcurl-latest, curl-latest and nginx-module-unbrotli.
The good news is that everything linking the system library is fixed by one package update. The bad news is the two categories that are not: anything that vendors its own copy (Node.js, Firefox, Python bindings, PHP's Windows builds, the Go port) needs its own update, and a self-built nginx that bundles Brotli from before 22 October 2026 carries an unfixed 1.1.0 rather than 1.2.1.
Three traps worth knowing
- "Block
Content-Encoding: br" mostly doesn't help. It only covers the case where your server decompresses request bodies. It does nothing forunbrotli, curl or OpenSSL, which all receive Brotli from the far side of a connection they initiated. - CentOS 7 and Amazon Linux 2 may be a dead end. Both commonly took Brotli from EPEL 7, which is archived — its final build,
libbrotli-1.0.9-10.el7, sits inside the affected range and will never be updated. RHEL, Rocky and AlmaLinux 8–10 shipped fixes within days. If you are on an EOL base image with a KEV-listed flaw in a library you cannot patch from your distribution, that is not a patching task, it is a migration decision with a number attached. - Updating the package is not enough. A running process keeps the old library mapped. Find the stragglers with
grep -l 'libbrotlidec.*(deleted)' /proc/[0-9]*/mapsand restart them — the same restart discipline that PHP2Shell demanded of PHP-FPM.
How this compares to the other autumn flaws
Four big vulnerabilities landed in six weeks, and the press attention does not match the measured risk. All figures are our own queries against FIRST and CISA on 18–19 November 2026:
| Vulnerability | EPSS | In CISA KEV? | Reachability |
|---|---|---|---|
| PHP2Shell | 99.999% | Yes — 26 Oct 2026 | Any PHP install serving web requests |
| Brotli (this one) | 82.6% | Yes — 27 Oct 2026 | Anything that decompresses Brotli |
| NGINX2Root | unscored | No | Config-dependent: HTTP/2, proxying, mail module |
| Java2Shell | 0.734% | No | JDK 17.0.6+ on AVX-512 x86-64 only |
The one with the least branding and the quietest coverage — a compression library — is second on the list, and has had a federal remediation deadline that already passed (10 November). Java2Shell, which got the New York Times, is bottom. That ordering is available to anyone who queries two public APIs, and it is the ordering a remediation budget should follow.
What to do
- Update the system Brotli library to 1.0.10, 1.1.1 or 1.2.1, or your distribution's backported build.
- Find what links it (
rpm -q --whatrequiresabove, orapt-cache rdepends libbrotli1on Debian-family hosts), then restart those processes. - Separately update everything that vendors Brotli: Node.js, Python bindings, PHP's Windows builds, self-built nginx, browsers.
- Check whether you actually run
unbrotli. If you do not, your nginx Brotli module is an encoder and is out of scope — document that decision rather than re-litigating it at the next audit.
The EU angle
A KEV-listed, actively exploited flaw in a library embedded across your estate is the clearest possible case for NIS2 Article 21(2)(e): vulnerability handling means knowing where a component lives, not just whether a product name appears in an inventory. Brotli is a textbook transitive dependency — it arrives through curl, through OpenSSL, through a base image — which is exactly what an SBOM exists to answer. If yours cannot tell you which running processes link libbrotlidec today, it is a document rather than a control.
Sources
- Record and catalogs we queried ourselves: NVD CVE-2026-111497; CISA KEV; FIRST EPSS.
- nginx specifics: Danila Vershinin (GetPageSpeed) and the full write-up; F5 K000163902.
- Downstream: Node.js October 2026 security releases; PHP Windows rebuilds; andybalholm/brotli (Go); Qualys on finding vulnerable Node runtimes; oss-security thread.
The other nginx story this month is NGINX2Root, which needs an actual nginx upgrade. To see which of these your own perimeter exposes, run the free external scan, or price it in euros with the CRQ simulation.
Frequently asked questions
Is the nginx Brotli module affected by CVE-2026-111497?
No. The vulnerability is in the Brotli decoder (c/dec/decode.c), and ngx_brotli only compresses responses and serves pre-compressed .br files — it never decompresses, so it never calls the vulnerable code. At the linker level the filter module links only libbrotlienc and libbrotlicommon, and the static module links no Brotli library at all. F5 states the same for the NGINX Plus Brotli module. The one nginx module that does decode is unbrotli, which decompresses Content-Encoding: br responses from upstreams and is exposed through the system library.
Which Brotli versions are affected and which fix it?
Google Brotli 1.0.3 through 1.2.0 on all platforms are affected. The fixed versions are 1.0.10, 1.1.1 and 1.2.1, or your distribution’s backported build. RHEL, Rocky Linux and AlmaLinux 8 to 10 shipped fixes within days. CentOS 7 and Amazon Linux 2 installations that took Brotli from EPEL 7 are a dead end: EPEL 7 is archived and its final build, libbrotli-1.0.9-10.el7, sits inside the affected range and will never be updated.
What on my server actually decodes Brotli?
On an RPM-based host, run: rpm -q --whatrequires 'libbrotlidec.so.1()(64bit)'. Querying --whatrequires libbrotli prints nothing useful because packages depend on the soname, not the package name. On a typical CentOS 7 box the correct query returns brotli, openssl35-libs, libcurl-latest, curl-latest and nginx-module-unbrotli. All of those link the system library, so one package update fixes them all — but anything that vendors its own copy needs a separate update: Node.js, Firefox, Python brotli bindings, PHP’s Windows builds, the Go port, and self-built nginx that bundled Brotli before 22 October 2026.
Does blocking Content-Encoding: br protect me?
Only in the narrow case where your server decompresses request bodies. It does nothing for the nginx unbrotli module, curl or OpenSSL, because all of those receive Brotli-encoded data from the far side of a connection they initiated. Updating the library and restarting the processes that link it is the actual fix. A running process keeps the old library mapped, so find stragglers with: grep -l 'libbrotlidec.*(deleted)' /proc/[0-9]*/maps.
How urgent is this compared with Java2Shell and NGINX2Root?
More urgent than either, on the measured data. As of 18–19 November 2026, Brotli carries an EPSS of 82.6% (99.7th percentile) and has been on CISA KEV since 27 October with a federal remediation deadline of 10 November that has already passed. Java2Shell sits at 0.734% EPSS and is not in KEV; NGINX2Root has no EPSS score yet and is not in KEV. Only PHP2Shell ranks higher, at 99.999%. The flaw with the least branding is the second most exploited of the four.