Log date · Thu
How to verify your app ships a patched Brotli decoder
Published on · Updated
Reconcile distributor backports, delivered artifacts and running instances; a functional test alone cannot prove a vulnerability is fixed.
How do we verify the Brotli fix reached an app?
Connect the distributor’s fix record to the decoder actually delivered and running, then run compatibility checks. With Brotli 1.1.0 bundled in Node 20.19.5, our own 128-byte fixture compressed to 11 bytes. The complete input decoded to 128 bytes; truncation produced Z_BUF_ERROR and a 64-byte output limit produced ERR_BUFFER_TOO_LARGE.
This is a functional check of the local bundled decoder, not a test of the 2026 security releases; we worked without reproducing the vulnerability. A successful functional check cannot prove a patch is present, and a version string alone does not establish backport lineage.
| Case | Result or recommendation |
|---|---|
| Did the fixture decode? | Complete input returned 128 bytes. |
| What happened on truncation? | The result was Z_BUF_ERROR. |
| What did the output cap do? | A 64-byte cap produced ERR_BUFFER_TOO_LARGE. |
| Does this prove a fix? | No; reconcile release evidence and the deployed artifact. |
The releases and the backport
Brotli released v1.0.10, v1.1.1 and v1.2.1 at 19:26:58, 19:27:20 and 19:27:34 UTC on October 21, or 03:26–03:27 on October 22 in Beijing. All three records list CVE-2026-111497. [1][2][3] The Node.js October 21 advisory rates the related decoder out-of-bounds write high; the advisory itself was not first published on October 22. [4]
The Node.js 24.22.1 release notes record cherry-pick 0ed4268a4401abcb44720963. [5] Requiring every supported branch to display 1.2.1 would miss documented backports, while an updated lockfile alone cannot establish safety. Identify the distributor, exact build and scope of its advisory, then verify that the running instance comes from that build. Investigate differing version strings in the backport notes instead of guessing by sorting strings.
A release number is a lookup clue, not proof of executable contents. Pay particular attention to custom builds, system shared libraries and embedded desktop runtimes: they may use a decoder different from the one on a developer workstation. Keep distributor notes, build records and artifact digests together so the chain can be reviewed.
Complete input, truncation and an output limit
We used Node’s built-in node:zlib synchronous interface to compress 128 ASCII A characters. We then decoded the complete data, data with its last byte removed, and the complete data with a 64-byte output cap. The following is the output from our run; other runtimes or settings can produce different results.
Node 20.19.5; Brotli 1.1.0
input=128 compressed=11
valid: output=128 matches=true
truncated: Z_BUF_ERROR
limit: ERR_BUFFER_TOO_LARGEThe output cap limits output from convenience methods. [7] It is not a time or memory limit for the whole process and cannot repair a decoder defect. The 128 bytes compressing to 11 shows why compressed input size alone is a poor bound on decoded size. Set limits appropriate to your data format and test error handling in an isolated environment.
This truncation is an ordinary compatibility fixture. Recording the error category helps identify changes after an upgrade, but one fixture cannot cover all inputs. Include valid, truncated and oversized cases in your application’s own tests, and confirm that a failure does not turn partial data into a successful result.
Three records to reconcile
Keep separate records for the builder, delivered artifact and running instance. The builder version describes the tools used; the artifact digest identifies the file or image actually released; the instance record captures the current startup generation and observable runtime version. When these disagree, resolve the mismatch before continuing rollout.
| Case | Result or recommendation |
|---|---|
| Manifest updated | Rebuild and identify the final artifact by digest. |
| Distributor documents a backport | Match the affected branch, build and patch record. |
| Runtime version differs | Pause rollout and identify the artifact actually started. |
| Functional regression passes | Retain the result and still establish patch lineage. |
Node’s process.versions exposes version strings for Node and dependencies. [6] Reading it inside the target process is more meaningful than starting a new process on the builder. Even when the versions match, reconcile the actual distribution with the supplier’s notes. Avoid putting environment variables, arguments or customer data in diagnostic records.
Check your own release environment
Run the following in a release environment you are authorized to inspect, or read the same fields through your application’s own diagnostics. A newly started command describes its own runtime, so it does not replace observation of an existing service process. Replace the executable path with your delivered artifact; a digest identifies bytes but does not establish trusted origin.
node -p 'JSON.stringify({node:process.versions.node,brotli:process.versions.brotli})'
shasum -a 256 path/to/your-executableIn staging, use fixed, non-sensitive small fixtures and record input digests, output or error categories, with input, output, time and memory bounds suitable for the application. Replace instances gradually, reconcile the running generation and digest, and retain a usable rollback package. Pause on unexplained provenance or version mismatches; do not disable TLS verification or widen parser permissions to make a test pass.
Patch lineage, functional compatibility, business authorization and logic exposure deserve separate release decisions. Fixing a decoder does not automatically conceal business algorithms, and obfuscation or signing cannot replace component maintenance. We make no claim that any customer application is affected or patched, and assign no product capability or security score.
Your checklist
- Check upstream and distributor fix records and applicable branches.
- Record builder, delivered artifact and running instance identities.
- Use digests to reconcile the files or images actually replaced.
- Run bounded regression tests with valid, truncated and oversized fixtures.
- Keep a rollback package and pause on unexplained provenance.
Primary sources
- Brotli v1.2.1: official security release · Source date 2026-10-21 · Checked 2026-11-11
- Brotli v1.1.1: official security release · Source date 2026-10-21 · Checked 2026-11-11
- Brotli v1.0.10: official security release · Source date 2026-10-21 · Checked 2026-11-11
- Node.js: October 21 security advisory · Source date 2026-10-21 · Checked 2026-11-11
- Node.js 24.22.1: documented Brotli fix backport · Source date 2026-10-21 · Checked 2026-11-11
- Node.js: process.versions runtime metadata · Checked 2026-11-11
- Node.js: Zlib and Brotli options · Checked 2026-11-11