Glossary

Brotli.

Also called br content encoding

In Short

Brotli is a lossless compression format that makes data smaller so it can be stored or sent faster. It is defined in RFC 7932 and used on the web as the content encoding named br. A flaw in a Brotli decoder, CVE-2026-111497, led to the Node2Shell warnings in October 2026.

Last updated October 22, 2026
Profile MapGlossary Term
  1. Also Called1other namebr content encoding
  2. Related Terms1linked entriesRemote code execution (RCE)

How Does Brotli Work?

The Brotli project describes Brotli as a general-purpose lossless compression algorithm. It combines a modern variant of the LZ77 algorithm, Huffman coding and second-order context modeling. It runs at a speed similar to deflate, but it packs data more densely.

Lossless means that nothing is lost: the receiver gets back exactly the data that was sent. The sender runs an encoder, and the receiver runs a decoder. The decoder is the part that reads data from outside.

Where Is Brotli Used?

Web software can label a message as Brotli with the content encoding br. For example, the Express body-parser library lists br next to gzip, deflate and zstd as encodings it can decode for request bodies. The CVE record for CVE-2026-111497 asks users to update any Brotli libraries or binaries in the affected range, which includes copies bundled inside other software.

The format is a stream. The Brotli project notes that it carries no checksum or length, so a decoder cannot notice if parts of the stream were changed on the way.

Why Does Brotli Matter for Security?

A decoder takes untrusted input and turns it into memory writes. If the decoder has a bug, a crafted stream can corrupt memory. On 21 October 2026, Node.js fixed such a bug in its bundled Brotli decoder. The flaw is CVE-2026-111497, and researchers call it Node2Shell. Read the Node2Shell analysis for fixed versions and checks, or the CVE-2026-111497 fact sheet.

The CVE record places the root bug in Google’s Brotli library, versions 1.0.3 through 1.2.0. Software that bundles that library may need an update too.

How Do You Reduce the Risk?

  • Keep libraries that decode compressed data up to date, including copies bundled inside other software.
  • Know which of your services decode data from outside, such as request bodies and fetched files.
  • Reject encodings you do not need at the proxy or in the framework.
  • Run services with low permissions, so a decoder bug gives an attacker less.

Also Called.

  • Namebr content encoding

Questions.

  • What does Content-Encoding br mean?

    It labels a message body as Brotli-compressed. Libraries such as Express body-parser list br next to gzip, deflate and zstd as encodings they can decode.

  • Is Brotli unsafe?

    The format is not the problem. A bug in one decoder, CVE-2026-111497 in Google's Brotli library 1.0.3 to 1.2.0, let a crafted stream corrupt memory. It is fixed in Brotli 1.0.10, 1.1.1 and 1.2.1.

Sources

  1. 1 Brotli README, GitHub (Google Brotli)
  2. 2 RFC 7932, Brotli Compressed Data Format, IETF
  3. 3 body-parser README, Express
  4. 4 CVE-2026-111497 record, CVE Program (Google)
  5. 5 Wednesday, October 21, 2026 Security Releases, Node.js

In Our Research

  1. 1 Node2Shell: Node.js Brotli RCE (CVE-2026-111497), Fixed Versions and How to Check October 2026
  2. 2 eMudhra CA Key Compromise: What Python, uv and Container Teams Must Update Now October 2026
  3. 3 Next.js and Node.js Security Updates, October 2026: What to Patch First October 2026
  4. 4 PHP2Shell: Two Critical PHP Flaws Reported as RCE, CVE-2026-109618 and CVE-2026-109619 October 2026
  5. 5 Remote code execution (RCE) Glossary term