sudo cscli appsec-rules install crowdsecurity/vpatch-CVE-2026-111497Then reload CrowdSec: sudo systemctl reload crowdsec
Sign in to see which of your engines run it →Hover a line or a note to see what each field does.
# DISCLAIMER: this rule blocks every request whose body is Brotli-compressed (Content-Encoding: br),# which is the delivery path of CVE-2026-111497. Browsers never send Brotli-compressed request bodies,# but API clients and services that do will be blocked. Install it only if you need it: it is# deliberately NOT part of the crowdsecurity/appsec-virtual-patching collection.name: crowdsecurity/vpatch-CVE-2026-111497description: 'Blocks Brotli-compressed request bodies (Content-Encoding: br), the delivery path of the Brotli decoder out-of-bounds write CVE-2026-111497 (Node2Shell). Can trigger false positives if your clients legitimately send Brotli-compressed bodies.'rules:- zones:- HEADERSvariables:- content-encodingtransform:- lowercasematch:type: containsvalue: brlabels:type: exploitservice: httpconfidence: 3spoofable: 0behavior: 'http:exploit'label: 'Brotli - RCE'classification:- cve.CVE-2026-111497- attack.T1190- cwe.CWE-787
Sign in to see the Security Engines that run this waf rule, the version they run and whether it was modified locally.
This rule provides virtual patching for CVE-2026-111497 (Node2Shell / Broccoli2Shell), an out-of-bounds write in the Google Brotli decoder (1.0.3 through 1.2.0) bundled in Node.js 22.x, 24.x and 26.x, Bun, the Python Brotli and brotlicffi packages and other software, published on 2026-10-22, with a CVSS score of 9.2 (Critical). It is listed in CISA's Known Exploited Vulnerabilities catalog and exploit traffic has been observed in the wild.
Detection: The remote exploit path is an inbound request body sent with Content-Encoding: br carrying a malformed Brotli stream, which Express 5, body-parser 2, Koa and other body parsers inflate before any route handler runs. The rule blocks every request that declares a Brotli-compressed body, on any URI.
This rule will trigger false positives if Brotli-compressed request bodies are legitimate in your context. Browsers never compress request bodies, but some API clients, SDKs, mobile applications and service-to-service calls do. Every such request will be blocked once the rule is installed.
For that reason the rule is not part of the crowdsecurity/appsec-virtual-patching collection: install it explicitly, and only if you need it.
1cscli appsec-rules install crowdsecurity/vpatch-CVE-2026-111497
Virtual patching mitigates exploitation attempts, but it does not fix the underlying vulnerability: upgrading Node.js to 22.23.4, 24.22.1 or 26.12.1 (Bun 1.4.4, Brotli 1.0.10, 1.1.1 or 1.2.1) is always recommended. The rule does not cover the outbound path, where an application fetches a Brotli-encoded response from an attacker-controlled server.