Security headers are an important layer of web application defence. Content Security Policy can restrict which scripts execute, HSTS can enforce HTTPS, and other browser controls can limit how content is handled.
But recent activity around CVE-2026-111497, sometimes referred to as HTTP2Shell or Node2Shell, is a useful reminder that browser controls cannot fix vulnerabilities in the software processing data.
The vulnerability is in the Brotli decoder, not in the HTTP/2 protocol itself.
What is CVE-2026-111497?
CVE-2026-111497 is an out-of-bounds write in the Brotli decompression library used by several technologies, including Node.js and .NET environments. It can affect applications that decompress attacker-controlled Brotli data.
A specially crafted compressed stream may cause memory disclosure, denial of service, or potentially arbitrary code execution. The practical risk depends on the affected application, runtime, compiler protections, and whether untrusted Brotli data reaches the vulnerable decoder.
The issue can affect more than server-side applications. Some client-side software, including browsers and email clients, also includes Brotli decoding functionality. This article focuses on web applications and services because they are responsible for processing requests and generating responses for users.
AWS has warned that affected workloads may include Node.js runtimes, .NET applications, custom container images, and applications that bundle their own Brotli libraries. (AWS security bulletin)
Why CSP cannot stop this vulnerability
CSP controls what a browser is allowed to load or execute when it processes a page.
For example, a policy can restrict scripts to approved sources:
Content-Security-Policy: default-src 'self'; script-src 'self' https://cdn.example.com; object-src 'none'; base-uri 'self';
This can help reduce the impact of cross-site scripting, malicious third-party scripts, and unsafe inline code.
However, CSP does not patch the server that generates the response. It does not repair a vulnerable Brotli decoder, prevent memory corruption inside a Node.js process, or stop an attacker from exploiting a vulnerable request-processing component.
If an attacker gains control of the server, they may be able to modify the response before it reaches the browser. They may also alter or remove the CSP header. In that situation, the browser cannot be expected to enforce a policy that the compromised server no longer sends.
CSP remains valuable when the policy is intact and an injection occurs within an otherwise trusted response. It should be treated as defence in depth rather than a replacement for runtime patching.
The importance of understanding the request path
CVE-2026-111497 demonstrates why teams need to understand how data moves through their applications.
A typical request may pass through:
- A CDN or edge proxy
- A load balancer
- A web server
- A runtime such as Node.js, .NET, or PHP
- A framework or application
- A browser
Security teams often focus on the final response because that is where headers are easiest to inspect. But vulnerabilities can exist earlier in the chain, before a response is generated.
A web application may have a strong CSP and still be exposed because:
- Its runtime includes an outdated Brotli decoder
- A container image contains an unpatched native library
- A dependency bundles its own copy of Brotli
- A managed platform has not completed its runtime rollout
- A process has not been restarted after patching
- A legacy service is still using an unsupported runtime
Header scanning is valuable, but it only answers questions about the browser-facing response. It cannot prove that every server-side component processing requests is patched.
What organisations should do
Patch the underlying runtime
The primary remediation is to update affected runtimes and libraries.
For Node.js, teams should review the October 2026 security releases and move to a fixed supported version. AWS also recommends rebuilding and redeploying affected container images and checking whether applications include Brotli libraries in custom layers or packages.
Do not assume that updating the operating system automatically updates every copy of Brotli in the environment.
Check:
- Node.js runtime versions
- .NET runtime versions
- Container base images
- Native Brotli packages
- Python Brotli dependencies
- Bundled libraries inside third-party applications
- Serverless layers and deployment artefacts
Restart or replace running processes
A patched file on disk does not necessarily protect a running process.
Long-lived workers may still have the vulnerable library loaded in memory. After applying updates, restart or replace affected processes and verify that new instances are running the expected versions.
This is especially important for:
- Node.js services
- Application servers
- Container workloads
- Serverless functions with managed runtimes
- Background workers that process compressed data
Use temporary controls carefully
Some environments may be able to reduce exposure temporarily by disabling Brotli decoding or rejecting specific compressed input.
These controls should be treated as short-term measures. They may not cover every path, particularly where an application downloads and decompresses external responses or where a library is used indirectly by a framework.
A web application firewall may also block known patterns, but it cannot replace updating the vulnerable component. Encoding variations, alternate routes, direct origin access, and inspection limitations can all reduce the effectiveness of network controls.
Keep browser protections in place
The fact that CSP cannot prevent CVE-2026-111497 does not make CSP less useful.
A layered browser-security baseline may include:
- Strict-Transport-Security to help enforce HTTPS
- X-Content-Type-Options: nosniff to reduce MIME confusion
- The CSP frame-ancestors directive to help prevent clickjacking
- Referrer-Policy to limit information leakage
- Permissions-Policy to restrict unnecessary browser capabilities
These controls address different threats. They should be maintained alongside patching, dependency management, access controls, and server-side monitoring.
Use security reports as part of incident response
A runtime vulnerability should trigger more than a version update.
Teams should also review:
- Access logs for unusual compressed requests
- Process crashes and restarts
- Memory or CPU anomalies
- Unexpected file changes
- New outbound connections
- Changes to generated HTML or JavaScript
- CSP violations that appeared after suspected exploitation
A sudden increase in CSP reports after a server-side incident could indicate that responses are being modified or that an attacker has introduced unexpected resources. It could also have more routine causes, such as a deployment change, a new dependency, or browser-extension activity.
CSP reports cannot prove that CVE-2026-111497 was exploited, but they may provide useful evidence when combined with server and infrastructure logs.
The broader lesson
CVE-2026-111497 is a reminder that web security is layered.
Browser policies protect the browser. Runtime patches protect the software processing requests. Container controls protect deployment artefacts. Monitoring helps teams detect unexpected behaviour after a change or incident.
A website can have an excellent security-header configuration and still be vulnerable to a server-side memory-corruption flaw. Conversely, a fully patched runtime can still expose users to cross-site scripting if the application sends an unsafe browser policy.
The strongest approach is to connect both sides of the picture: scan and monitor the headers delivered to users, while also maintaining an accurate inventory of the runtimes and libraries that build those responses.