CVE-2026-111497: Brotli Out-of-Bounds Write Impacts Node, Python

Last Updated: 2026-10-29T19:10:38Z

CVSSv4: 9.2

What’s Happening

On 2026-10-21T07:00:00Z NodeJS patched a High severity vulnerability in the runtime involving the Brotli compression decoder. The vulnerability was a buffer overflow that could lead to remote code execution.

On 2026-10-22T07:00:00Z, Imperva published a report demonstrating the remote code execution. Notably, Node was vulnerable in a default state, as was the express request handler. Imperva called this “Node2Shell,” but we will not, because more than Node is impacted.

Affected Node versions: 26.x, 24.x, and 22.x.

On the same day, OpenSourceMalware reported that the issue was not just about NodeJS. In fact, the backing C library was used in Python packages as well—specifically, Brotli and brotlicffi.

Affected versions: Brotli < 1.2.1, brotlicffi < 1.2.0.2, 1.2.1.0

On 2026-10-24T07:00:00Z, OSM and Aikido Security both reported that multiple other packages and projects were affected. The core vulnerability is in Google’s Brotli library.

OpenAI claims to have found this bug in February. Per Aikido:

The root cause was fixed in the Brotli source code in February, but it wasn’t recognized as a security issue at the time and no release shipped with the fix until now. That means every project that bundles Brotli has to ship its own update.

On 2026-10-24T07:00:00Z, a detailed analysis was published by an independent researcher that comprehensively tested the exploit on multiple Node/Express profiles. The results indicate that the probabilistic nature of the exploit is due to ASLR, meaning each exploit attempt for code execution is a guess at the proper address certain functions. Denial-of-service was reliable.

Another independent writeup explains the vulnerability and exploit in more detail.

On 2026-10-27T07:00:00Z, CISA added this vulnerability to the Known Exploited Vulnerabilities (KEV) list.

A recent addition to this writeup from Ellio presents evidence of successful, if probabilistic, exploitation against certain configurations. The timing of the updates coincides with CISA’s listing. For this reason, we are also going to tag this as eitw.

Actions

Aikido and OpenAI have useful guides on affected packages, as well as instructions for updating system packages and code implementations. Wherever upgrading is not possible, they both recommend disabling Brotli decoding.

This repository has Snort, Suricata, and ModSecurity rules for blocking malformed Brotli traffic. See below for our community’s efforts.

Observables

As the multiple rules note, looking for a Content-EncodingHTTP header that begins with br is a useful detection if you’re not expecting Brotli encoding. Large POST sizes are as well.

Notes

To be clear, ASLR and PIE are not full mitigations for the vulnerability, especially against denial of service.

3 Likes

Palo Alto Networks has released an advisory on this vulnerability.

Affected Products/Versions

Versions Affected Unaffected
PAN-OS 12.2 < 12.2.4-h1
>= 12.2.4-h1 (ETA: 10/28)
PAN-OS 12.1 < 12.1.4-h13
< 12.1.7-h11
< 12.1.10-h3
>= 12.1.4-h13 (ETA: 10/29)
>= 12.1.7-h11 (ETA: 10/28)
>= 12.1.10-h3 (ETA: 10/30)
PAN-OS 11.2 < 11.2.4-h23
< 11.2.7-h23
< 11.2.10-h17
< 11.2.13-h4
< 11.2.16-h1
>= 11.2.4-h23 (ETA: 10/30)
>= 11.2.7-h23 (ETA: 10/29)
>= 11.2.10-h17 (ETA: 10/27)
>= 11.2.13-h4 (ETA: 10/27)
>= 11.2.16-h1 (ETA: 10/28)
PAN-OS 11.1 None
All
PAN-OS 10.2 None
All
Prisma Cloud - Application Security Transporter Client < 0.2.9
>= 0.2.9

Important note though:

Brotli encoding is disabled by default in PAN-OS 11.2.4 and later, and is unsupported in PAN-OS 11.2.3 and earlier.

1 Like

Microsoft .NET out of band update:

Edit, MSRC advisory:

1 Like

Hazarding an unconfirmed guess that IIS is vulnerable, since they use the same upstream Google Brotli C library:

It’s looking a lot like the truly safest course of action is to just configure everything everywhere to go back to gzip or no compression at all until this whole thing shakes out.

1 Like

Curious what “vulnerable” means in this context. Node was impacted because it and Express handled Brotli by default. Does IIS?

Full disclaimer, I’m not exactly an IIS expert. So this is maybe RUMINT-adjacent.

My understanding is that IIS with Brotli compression/decompression isn’t a default option. But it isn’t exactly uncommon for it to be configured with it turned on, either. The .NET advisory also specifically calls out ASP.NET. Again, as I’m not an IIS expert, I’m not sure exactly where the vulnerable code is in this chain, only that it smells like there’s some exposure.

I haven’t done any specific research to see how common IIS with Brotli support actually is, but I wouldn’t be shocked to see another out-of-band patch from Microsoft about it.

One thing I noticed in the MSRC listing was that it’s classified as privesc. I wonder why that and not RCE?

1 Like

Putting my efforts where my mouth is, these are some WAF mitigations for disabling Brotli uploads to protect potentially vulnerable web servers. This may or may not come with negative consequences for any given web application. The patterns here are not super complicated and should be easy to adapt to other WAF technologies.

Edit: After trying some of this in the real world, I would definitely focus on the latter mitigation for restricting upload sizes, and depending on your WAF technology, and combining that with Brotli-compression detection. Just blind-blocking Brotli-compressed uploads could work in an emergency scenario, but is more likely to break applications. There’s also the possibility of disabling Brotli support entirely at an application level, but how you do that varies way more between applications.

AWS

{
  "Name": "CVE2026111497",
  "Priority": 2,
  "Statement": {
    "RegexMatchStatement": {
      "RegexString": "^\\s*br\\s*$",
      "FieldToMatch": { "SingleHeader": { "Name": "content-encoding" } },
      "TextTransformations": [ { "Priority": 0, "Type": "LOWERCASE" } ]
    }
  },
  "Action": { "Count": {} },
  "RuleLabels": [ { "Name": "CVE2026111497" } ],
  "VisibilityConfig": {
    "SampledRequestsEnabled": true,
    "CloudWatchMetricsEnabled": true,
    "MetricName": "CVE2026111497"
  }
}

Azure, sourced from https://techcommunity.microsoft.com/blog/azurenetworksecurityblog/protect-against-brotli-cve-2026-111497-with-azure-web-application-firewall-waf/4567288

Block brotli uploads entirely
{ 
  "name": "CVE2026111497", 
  "priority": 100, 
  "ruleType": "MatchRule", 
  "action": "Block", 
  "matchConditions": [ 
    { 
      "matchVariables": [ 
        { 
          "variableName": "RequestHeaders", 
          "selector": "Content-Encoding" 
        } 
      ], 
      "operator": "Regex", 
      "matchValues": [ "(?:^|,)[ \\t]*br[ \\t]*(?:,|$)" ], 
      "transforms": [ "Lowercase" ] 
    } 
  ] 
} 
Restrict upload sizes
{ 
  "name": "BlockLargeRequestBody", 
  "priority": 130, 
  "enabledState": "Enabled", 
  "ruleType": "MatchRule", 
  "action": "Block", 
  "matchConditions": [ 
    { 
      "matchVariable": "RequestBody", 
      "operator": "GreaterThan", 
      "negateCondition": false, 
      "matchValue": [ "40960" ] 
    } 
  ] 
} 
3 Likes

Cisco has it:

Real world testing notes, also added as an edit to my original post:

After trying some of this in the real world, I would definitely focus on the latter mitigation for restricting upload sizes, and depending on your WAF technology, combine that with Brotli-compression detection. Just blind-blocking Brotli-compressed uploads could work in an emergency scenario, but is more likely to break applications. There’s also the possibility of disabling Brotli support entirely at an application level, but how you do that varies way more between applications.

Cisco has added “under investigation” products for potential impact.

Wow this is gonna have a long tail.