Security

HTTP2Shell: Brotli vulnerability CVE-2026-111497 threatens applications

HTTP client attack through vulnerable Google Brotli versions

CVE-2026-111497 in the Brotli decoder may cause memory corruption and RCE. Check its impact on Node.js, Python, Bun, Envoy, Istio and Docker.

HTTP2Shell: luka Brotli CVE-2026-111497 zagraża aplikacjom

The critical CVE-2026-111497 vulnerability in the Brotli decoder turned out to be a much broader problem than the name Node2Shell initially suggested. The bug is not located in Node.js itself, but in the Google Brotli library code used by many runtimes, HTTP libraries, proxies, service mesh systems and applications.

The vulnerability is classified as an out-of-bounds write, meaning that data is written outside the permitted memory area. A crafted Brotli stream may cause process memory corruption, a crash, disclosure of memory fragments and, under certain conditions, potentially remote code execution.

The issue does not affect Node.js applications alone. Its impact has been confirmed, among others, in the Python Brotli package, Bun, Envoy and Istio configurations using Brotli decompression. Vulnerable code may also be present as a system dependency, a library statically linked into an application or an element of a container image.

This is a good example of a software supply chain vulnerability: a single flaw located low in the technology stack propagates to many seemingly independent products.

What is Brotli and why is it present in so many applications?

Brotli is a lossless compression algorithm developed by Google. It is widely used in HTTP communication to reduce the size of transmitted data such as HTML, CSS, JavaScript, JSON and API responses.

In HTTP traffic, it may appear in a header such as:

Content-Encoding: br

A standard scenario looks like this:

HTML / JSON / JavaScript
        |
        v
Brotli encoder
        |
        v
compressed data
        |
        v
network
        |
        v
Brotli decoder
        |
        v
original content

CVE-2026-111497 is located on the decoder side, not in the code responsible for compressing data.

This distinction is crucial.

A server that uses Brotli only to compress its own responses sent to a browser does not automatically become vulnerable through this path. Risk arises when an application or infrastructure component decompresses Brotli data controlled by an untrusted source.

What exactly causes CVE-2026-111497?

The problem is located in Google Brotli decoder code, in the file:

c/dec/decode.c

and in the logic handling a block type change during decompression.

One of the relevant elements is the function:

DecodeBlockTypeAndLength()

During decoding, Brotli uses different block types and coding structures. Among other things, the decoder must distinguish situations in which:

data is valid

or:

more input data is needed

or:

the stream is invalid

In the vulnerable version, a specific invalid block-switch case could be treated similarly to a temporary lack of data.

In practice, this meant that the decoder could continue processing even though it should have terminated with a format error.

The simplified mechanism looks like this:

malformed Brotli stream
        |
        v
invalid block switch
        |
        v
decoder should return:
FORMAT ERROR

instead:
NEED MORE INPUT
        |
        v
decoder continues
        |
        v
internal state becomes invalid
        |
        v
write outside expected buffer

Node.js describes the issue as the possibility of continuing to append data to a small internal buffer after the decoder has already entered an invalid state.

This results in memory corruption.

Out-of-bounds write — why is it so dangerous?

http2shell brotli cve 2026 111497 2.warsaw.media

An out-of-bounds write means that a program writes data outside the memory area allocated for it.

Under normal circumstances, a process should operate only inside its allocated buffer:

[ valid buffer                      ]
[ 0 1 2 3 4 5 6 7 ]

In the event of an error, the write may look like this:

[ valid buffer      ][ other memory ]
[ 0 1 2 3 4 5 6 7 ][ X X X X X X ]
                       ^
                       |
                 unintended write

If an attacker can adequately control the written data and the process memory layout, the consequences may be much more serious than a simple application crash.

The official advisory lists the following possible effects:

  • denial of service,
  • memory disclosure,
  • process state corruption,
  • potential arbitrary code execution or remote code execution.

This does not mean, however, that every vulnerable system can be immediately taken over with a ready-made exploit.

Is there a working RCE exploit?

This is one of the most important points in the entire story.

Upstream Brotli and some advisories describe the vulnerability as potentially leading to arbitrary code execution. Node.js explicitly states that the bug may lead to remote code execution.

At the same time, Red Hat emphasises that, as of October 24, 2026, there is no public, reliable RCE exploit that would allow a vulnerable process to be taken over consistently.

Mechanisms such as:

ASLR
NX
FORTIFY_SOURCE
SELinux

make it harder to turn a memory error into practical code execution.

Therefore, the technically accurate statement is:

CVE-2026-111497 is a remotely reachable memory-corruption bug that may result in RCE, but exploitation reliability depends on the specific runtime, build, configuration and system protections.

The vulnerability should not be underestimated, but neither should it be presented as a universal “one-click shell” that works on every system.

Why do some sources give CVSS 9.2 Critical while others say High?

Different classifications can be found in the sources.

For the Brotli library itself and the Python PyPA package, CVSS v4.0 9.2 — Critical is given.

Node.js classified the CVE as High.

For its products, Red Hat applied the rating Important and CVSS 3.1 of 8.1, pointing, among other things, to the requirements concerning a crafted stream and the memory-protection mechanisms available in RHEL systems.

This is not a contradiction.

CVSS and the risk level may depend on:

  • how the library is embedded,
  • the availability of the vulnerable function,
  • the default configuration,
  • operating-system protections,
  • the input path for untrusted data.

Therefore, more important than the CVSS number itself is determining:

Does the given process actually decompress Brotli supplied by an attacker?

The attack may target both a server and an HTTP client

http2shell brotli cve 2026 111497 3.warsaw.media

One of the more interesting aspects of the vulnerability is the possibility of different directions in which untrusted data may flow.

Attack on a server

If an application accepts a compressed request body and decompresses:

Content-Encoding: br

an attacker may try to send a crafted Brotli stream.

The model then looks like this:

attacker
   |
   | malicious Brotli request
   v
application / proxy
   |
   | Brotli decoder
   v
memory corruption

Not every application supports Brotli in request bodies.

The vulnerability appears only when client-controlled data actually reaches the vulnerable decoder.

Attack on an HTTP client

The second scenario is particularly important for applications that make outbound connections.

Imagine the following code:

const response = await fetch(userProvidedUrl)

The application connects to a server controlled by the attacker.

The server responds:

HTTP/1.1 200 OK
Content-Encoding: br

and sends a specially prepared stream.

If the HTTP client automatically decompresses the Brotli response, the data goes directly to the vulnerable decoder:

application
     |
     | HTTP request
     v
attacker-controlled server
     |
     | malicious Brotli response
     v
HTTP client
     |
     | automatic decompression
     v
vulnerable Brotli decoder

This may be particularly important for:

  • crawlers,
  • scrapers,
  • URL preview systems,
  • webhook parsers,
  • proxies,
  • security scanners,
  • document-fetching systems,
  • integration services,
  • AI agents using the Internet.

In such projects, it is worth reviewing not only your own code but also IT system and API integrations, because decompression may happen automatically inside the HTTP client.

Node2Shell is not really a Node.js vulnerability

The first widely discussed advisory appeared in the Node.js ecosystem.

Hence the name:

Node2Shell

However, Node.js bundles its own copy of Brotli, and it is the code of this library that contains the vulnerability.

The issue affects the supported lines:

Node.js 22.x
Node.js 24.x
Node.js 26.x

The fixed releases published on October 21, 2026 are:

Node.js line Fixed version
Node.js 22 22.23.4
Node.js 24 24.22.1
Node.js 26 26.12.1

The Node.js updates apply a fix corresponding to the upstream Google Brotli change.

If an application runs on an older version from one of these lines, the runtime should be updated.

Particular attention should be paid to projects using:

node:zlib
BrotliDecompress
custom HTTP decompression

as well as other libraries that pass untrusted data to the built-in Brotli decoder.

Python also uses the vulnerable code

After information about Node.js was published, it became clear that the same problem also affected the Python ecosystem.

The package:

Brotli

available on PyPI, is a binding to Google Brotli code.

This is therefore not two independent vulnerabilities:

Node.js bug
Python bug

It is one problem:

Google Brotli decoder
        |
        +--> Node.js
        |
        +--> Python Brotli

PyPA published advisory PYSEC-2026-4322.

The fixed Python package version is:

Brotli 1.2.1

which contains the upstream fix.

It is also important that application code does not have to explicitly execute:

import brotli

An application may use an HTTP library that automatically enables Brotli support when the appropriate package is present in the environment.

This is another example of a vulnerability residing in a transitive dependency, rather than directly in application code.

Bun — vulnerability available through fetch()

Bun also bundles Google Brotli.

The project’s official advisory states:

affected:
>= 1.0.21, < 1.4.4

fixed:
1.4.4

Bun 1.4.3 contained Brotli 1.2.0.

It is particularly important that popular APIs may lead to the decoder, including:

fetch()
node:zlib
DecompressionStream("brotli")

fetch() automatically handles compressed HTTP responses, so an application fetching data from an untrusted server may unknowingly run vulnerable code.

If the application was compiled as a standalone executable using Bun, updating the tool is not enough.

The artifact must be rebuilt, because the runtime may be stored directly in the executable file.

Envoy — critical risk in the proxy layer

CVE-2026-111497 also reached Envoy.

Envoy’s official advisory classifies the issue as Critical and points to the possibility of:

  • memory corruption,
  • memory disclosure,
  • denial of service,
  • potential arbitrary code execution.

The vulnerability affects deployments in which a:

Brotli decompressor

has been configured.

The fixed versions are:

Envoy Fixed version
1.40 1.40.0
1.39 1.39.3
1.38 1.38.6
1.37 1.37.8
1.36 1.36.12

This does not mean that every public Envoy is automatically vulnerable.

The key factor is active use of the Brotli decompressor.

This is particularly important in microservice architectures, API gateways and Kubernetes environments, where HTTP traffic may be automatically processed across multiple infrastructure layers.

Istio also requires attention

Istio uses Envoy as its proxy layer.

As a result, the issue may also affect Istio configurations that enable Brotli decompression, for example through an appropriate EnvoyFilter.

Fixes were included, among others, in:

Istio 1.29.9
Istio 1.30.6
Istio 1.31.2

The support lifecycle of individual lines must also be taken into account. The mere presence of a technical fix in an old branch does not mean it is advisable to remain on an unsupported version.

In production environments, updating should be part of a broader DevOps, infrastructure and system maintenance policy, rather than a one-off reaction to a single CVE.

Vulnerable Google Brotli versions

According to the official advisory, the following releases are vulnerable:

1.0.3 - 1.0.9
1.1.0
1.2.0

The fixed versions in the respective lines are:

1.0.10
1.1.1
1.2.1

The safest choice for an actively developed project is to move to the current supported version rather than remain on an old branch simply because it received a single patch.

The fix was known earlier, but initially not as a security vulnerability

One of the more interesting elements of the CVE-2026-111497 story is the Google Brotli commit:

0ed4268a4401abcb4472096340477cf4af7d1a2b

entitled:

Detect and report invalid stream earlier.

Among other things, the change distinguishes an invalid block switch from a situation requiring additional data.

A new error was added:

BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH

This allows the decoder to stop instead of continuing with an invalid state.

The significant supply-chain problem was that the code fix existed earlier, but its security significance was not initially recognised.

The following scenario was therefore possible:

bug fixed upstream
        |
        v
not recognized as security issue
        |
        v
downstream projects do not urgently backport
        |
        v
CVE published later
        |
        v
many ecosystems must patch at once

This shows why simply monitoring CVE numbers is not always sufficient.

Why is the term HTTP2Shell more accurate than Node2Shell?

Node2Shell suggests:

Node.js vulnerability

In reality, the model looks more like this:

Google Brotli
     |
     +--> Node.js
     |
     +--> Python
     |
     +--> Bun
     |
     +--> Envoy
     |
     +--> Istio
     |
     +--> OS packages
     |
     +--> statically linked applications
     |
     +--> other HTTP software

That is why the term:

HTTP2Shell

has begun appearing in industry analyses.

It is not, however, the official name of the vulnerability.

The official identifier remains:

CVE-2026-111497

Node2Shell and HTTP2Shell should therefore be treated as media names that help describe the scope of the problem.

Docker — restarting the container is not enough

The vulnerability is particularly easy to overlook in container environments.

Suppose an image was built with a vulnerable runtime:

FROM node:24

If the running image contains a vulnerable version of Node.js or the system Brotli library, simply running:

docker restart app

does not fix anything.

The container will restart with exactly the same binaries.

The correct process should look like this:

update base image / dependency
        |
        v
update lock files
        |
        v
build new image
        |
        v
security scan
        |
        v
deploy new image
        |
        v
verify runtime versions

In practice, it is worth checking the version directly inside the running container:

docker exec <container> node -v

and verifying system packages and application dependencies.

This is a good example of why container security requires regular image updates, not merely service restarts.

System packages may have an old version number and still contain the fix

Linux environments require attention to another detail.

Distributions such as Debian and Red Hat often backport security fixes to older package versions.

Debian 13 fixed CVE-2026-111497 in the package:

brotli 1.1.0-2+deb13u1

Although the upstream version number still contains 1.1.0, the distribution package includes the fix.

Therefore, a simple comparison:

installed version < 1.2.1

may produce incorrect results.

On Linux systems, check:

  • the advisory for the specific distribution,
  • the CVE status for the specific release,
  • the complete distribution package version,
  • available security updates.

This is particularly important in older environments, where legacy system modernization may be postponed for years and system dependencies begin to differ significantly from current upstream versions.

How can you check whether an application may be vulnerable?

Simply finding the word brotli in a project does not establish an exploitable path.

Several questions must be answered.

1. Does the application contain a vulnerable Brotli implementation?

Check:

runtime
dependencies
transitive dependencies
system packages
container image
statically linked libraries

2. Does the application decompress Brotli?

Look, among other things, for:

Content-Encoding: br
Accept-Encoding: br
BrotliDecompress
node:zlib
DecompressionStream
HTTP client auto-decompression
proxy decompressor

3. Can the data come from an untrusted source?

The greatest risk occurs when input is controlled by:

internet user
external server
webhook sender
user-provided URL
external API
untrusted proxy peer

4. Is the process exposed without authentication?

If an attacker does not need an account or other privileges, the real risk increases.

5. Has the component being used already been fixed?

Check the advisory from the specific product vendor, not only the general CVE database.

What should you do now?

http2shell brotli cve 2026 111497 4.warsaw.media

If Brotli is present in the environment, it is worth following a simple sequence of actions.

Node.js

Update to at least:

22.23.4
24.22.1
26.12.1

depending on the supported line in use.

Python

Update:

Brotli >= 1.2.1

If brotlicffi is used, apply a release containing the upstream fix and check the project advisory.

Bun

Update to:

Bun >= 1.4.4

and rebuild executables created by Bun if they contain the runtime.

Envoy

Move to a fixed version from a supported branch, including:

1.40.0
1.39.3
1.38.6
1.37.8

Istio

Use a fixed release that is still supported.

Linux systems

Install the security updates provided by the distribution.

Docker and CI/CD

Rebuild images from scratch with fixed dependencies, run a security scan and verify the versions of the processes that are actually running.

Such actions should be part of regular application and software development and maintenance, particularly for publicly exposed applications.

What should you do if an update is not yet possible?

Installing the fix remains the best solution.

If this cannot be done immediately, a temporary way to reduce risk is to remove the path that sends untrusted data to the Brotli decoder.

Depending on the architecture, this may mean:

  • disabling optional Brotli support,
  • rejecting requests with Content-Encoding: br,
  • removing br from Accept-Encoding,
  • disabling automatic response decompression,
  • restricting connections to trusted hosts,
  • disabling the Brotli decompressor in the proxy,
  • applying network restrictions to the vulnerable service.

One detail requires particular care.

Simply removing:

Accept-Encoding: br

does not guarantee safety.

A malicious server may respond with:

Content-Encoding: br

even if the client did not request it.

If the library automatically processes such a header, the vulnerable path may still be triggered.

The mitigation must therefore block decompression before the data enters the vulnerable decoder.

Why is CVE-2026-111497 important for the software supply chain?

The most interesting aspect of HTTP2Shell is not the compression algorithm bug itself.

It is the way the issue propagates.

A developer may write an application using:

Nuxt
Node.js
Python API
microservice
proxy

and never consciously add Google Brotli to the project.

Even so, vulnerable code may reach production as a:

bundled runtime dependency
transitive Python dependency
system package
proxy dependency
container layer
statically linked library

This means that the traditional question:

“Do we use this library?”

is no longer sufficient.

A better question is:

“Does any component of our running system contain this code, and can untrusted data reach it?”

This is a fundamental difference in the security analysis of modern applications.

Not every system with Brotli is practically vulnerable

Critical CVEs are easy to overinterpret.

It is not enough to state:

Brotli installed
=
RCE

The actual condition is more complex:

vulnerable decoder
        +
attacker-controlled Brotli stream
        +
reachable decompression path
        =
exposure

In addition, successful code execution depends on the platform and memory protections.

Prioritisation should therefore take the real attack path into account.

The highest priority should be given to systems that are:

  • publicly accessible,
  • automatically decompressing Brotli,
  • fetching content from user-controlled addresses,
  • processing request bodies with Content-Encoding: br,
  • using a proxy with an active Brotli decompressor,
  • running unpatched runtimes.

HTTP2Shell demonstrates the problem of dependencies invisible in application code

CVE-2026-111497 is a good illustration of a modern security problem.

The source of the vulnerability is located in one C library file.

The effects, however, appear simultaneously in:

Node.js
Python
Bun
Envoy
Istio
Linux distributions
containers
HTTP clients
custom applications

This shows that the boundary between application and infrastructure security is practically disappearing.

A frontend or backend may be written correctly, yet the process may still be vulnerable because of a piece of native code embedded several layers below.

Summary

CVE-2026-111497 is a critical out-of-bounds write vulnerability in the Google Brotli decoder.

It is not exclusively a Node.js problem.

The vulnerable code reached many projects and environments, including:

  • Node.js,
  • Python Brotli,
  • Bun,
  • Envoy,
  • Istio,
  • system packages and applications bundling the library.

A crafted Brotli stream may cause process memory corruption, data disclosure, denial of service and, potentially, remote code execution.

At the same time, not every system containing Brotli is automatically exploitable. The key condition is the ability to deliver attacker-controlled data to a vulnerable decompression path.

The most important actions are:

identify affected components
        |
        v
verify decompression paths
        |
        v
update runtime / library
        |
        v
rebuild containers and binaries
        |
        v
redeploy
        |
        v
verify running versions

For public systems and components that automatically decompress data originating from the Internet, the update should be treated as a priority.

HTTP2Shell also shows something broader: a single flaw in a low-level library can become, within a few days, a problem affecting multiple programming languages, runtimes, proxies and entire cloud platforms.

Sources