Our vulnerability response team flagged Node2Shell (CVE-2026-111497) on an Ubuntu 24.04 server. I checked for Node.js first, but found no Node.js binaries in the PATH and no running Node.js processes.
The vulnerable component was libbrotli1, Ubuntu’s system Brotli library.
I installed the security update offline. The package version changed, but lsof showed that three running processes still had the old library mapped into memory.
Here’s how I traced the package, applied the fix, and verified the server after a maintenance-window reboot. I also cover the Windows Server 2022 cumulative update I installed during the same response.
What Node2Shell Is
CVE-2026-111497 is a flaw in Google’s Brotli decoder, affecting Brotli 1.0.3 through 1.2.0. A specially crafted compressed stream can push the decoder into an invalid block switch that it treats as valid. Depending on the software, that can crash the process, corrupt memory, or lead to remote code execution.
The nickname comes from the first research, which targeted the copy of Brotli bundled with Node.js. Node.js fixed it on October 21, 2026, and the same CVE is also reported as HTTP2Shell and Broccoli2Shell. On October 27, CISA added it to the Known Exploited Vulnerabilities catalog.
Brotli isn’t exclusive to Node.js, though. It’s a compression library that also shows up in Python packages, proxies, .NET, and the operating system’s own shared libraries. The nickname wasn’t enough to identify the affected package.
Node2Shell on a Server Without Node.js
The Ubuntu server runs Ubuntu 24.04 LTS (Noble) on amd64, with Zabbix Proxy and Zabbix Agent. It sits on a restricted network with no direct internet access and no working connection to Ubuntu’s repositories.
I checked for the binaries and any running process:
which node
which npm
pgrep -a node
pgrep -a nodejs
All four came back empty. That rules out a node binary in the PATH and a running Node process, though not a copy installed somewhere else.
I also looked for a systemd service that might start Node.js:
grep -RilE 'ExecStart=.*(node|npm|pm2)' /etc/systemd/system /lib/systemd/system 2>/dev/null
/lib/systemd/system/kmod-static-nodes.service
One hit, but not Node.js. That unit runs kmod static-nodes at boot to create device nodes for kernel modules, and “static-nodes” contains the string “node”. A plain substring search will catch it every time.
Finding the Vulnerable Brotli Package
dpkg -l | grep -i brotli
That turned up the OS package libbrotli1. For a clean version string:
dpkg-query -W -f='${Package} ${Version} ${Architecture}\n' libbrotli1
libbrotli1 1.1.0-2build2 amd64
1.1.0-2build2 is the version Noble shipped with. Ubuntu’s fix for Noble is 1.1.0-2ubuntu0.1, published in USN-8956-1.
The upstream version is still 1.1.0 in both. Ubuntu backported the security fix into its existing Brotli package instead of moving to a newer upstream release, so I compared the full Ubuntu package version, not the upstream number.
A note on exposure: finding a vulnerable library on disk doesn’t prove that an attacker can reach it. Actual exposure depends on whether a process on the server decompresses attacker-controlled Brotli data. I treated the outdated package as a patching requirement, not as proof of an exploitable path on this server.
Why APT Didn’t Offer the Security Update
apt-cache policy libbrotli1
Installed: 1.1.0-2build2
Candidate: 1.1.0-2build2
apt-cache policy reads the package lists already stored on the server. It doesn’t contact a repository when you run it. The candidate matched the installed version because the local APT metadata didn’t include the patched package, and the server had no access to refresh its security repository metadata. So apt upgrade wasn’t going to offer the fix, and I checked Ubuntu’s published fix separately.
I hit a similar situation during PHP2Shell, when dnf showed no PHP updates because the repositories that carried them weren’t enabled. Both times, an empty update list only showed what the package manager could see.
Installing libbrotli1 Offline
Before replacing the library, I checked which installed packages depend on it:
apt-cache rdepends --installed libbrotli1
The main ones were libcurl4t64, libcurl3t64-gnutls, and libfreetype6. This is a package dependency check, not a runtime check. It shows packages that declare a dependency on libbrotli1, which helped me understand how widely the library is used. It doesn’t show which running processes have it loaded, and these packages don’t need to be upgraded along with it.
The package was libbrotli1_1.1.0-2ubuntu0.1_amd64.deb, downloaded from Ubuntu’s official package site and transferred to the server. I checked the package metadata and recorded the hash:
dpkg-deb -I libbrotli1_1.1.0-2ubuntu0.1_amd64.deb
sha256sum libbrotli1_1.1.0-2ubuntu0.1_amd64.deb
Recording a SHA256 hash gives me a value to compare against later. By itself, it doesn’t prove where the file came from or that it’s intact. For stronger verification, I’d compare it with Ubuntu’s signed repository metadata and check that the hash matches before and after transfer.
Then the install:
sudo dpkg -i libbrotli1_1.1.0-2ubuntu0.1_amd64.deb
Preparing to unpack ...
Unpacking libbrotli1:amd64 (1.1.0-2ubuntu0.1) over (1.1.0-2build2) ...
Setting up libbrotli1:amd64 (1.1.0-2ubuntu0.1) ...
Processing triggers for libc-bin ...
No errors. The package check:
dpkg-query -W -f='${Package} ${Version} ${Architecture}\n' libbrotli1
dpkg -s libbrotli1 | grep -E '^(Status|Version|Architecture)'
libbrotli1 1.1.0-2ubuntu0.1 amd64
Status: install ok installed
Version: 1.1.0-2ubuntu0.1
Architecture: amd64
The package version was correct, but I still needed to check the running processes.
The Old Library Was Still Loaded
Updating a shared library replaces the file on disk. Processes that already have the old file mapped into memory keep using it until they restart.
To find processes with Brotli loaded:
sudo lsof 2>/dev/null | grep -E 'libbrotli(common|dec|enc)'
I ran it with sudo. Without root, lsof can’t see every process, and some of them could be missing from the output. Three processes showed up. ps -fp <PID> gave their full command lines:
/usr/sbin/NetworkManager --no-daemon
/usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
/usr/sbin/zabbix_proxy -c /etc/zabbix/zabbix_proxy.conf
The lsof output showed DEL in the FD column for libbrotlicommon.so.1.1.0 and libbrotlidec.so.1.1.0. DEL means the process still has the old file mapped, but that file has been deleted or replaced on disk.
dpkg -i succeeded
↓
library file on disk replaced
↓
running processes still mapped the old copy (DEL)
The package was patched. The running services weren’t.
Reboot and Post-Patch Verification
I could have restarted the three services one at a time. But one of them was NetworkManager, and restarting the network stack on a remote proxy server isn’t something I wanted to improvise. We were already in a maintenance window, so I rebooted the server:
sudo reboot
Installing a patch and running the patched code are two separate states, which I also learned the hard way during a patching weekend with a missed reboot.
After the reboot, the package version:
dpkg-query -W -f='${Package} ${Version} ${Architecture}\n' libbrotli1
libbrotli1 1.1.0-2ubuntu0.1 amd64
Then the remaining deleted Brotli mappings:
sudo lsof 2>/dev/null | grep -E 'libbrotli(common|dec|enc)' | grep DEL
No output. Without the grep DEL, NetworkManager, the Zabbix Agent and the Zabbix Proxy were using Brotli again, now as normal file-backed memory mappings (mem in the FD column).
After dpkg -i | After reboot | |
|---|---|---|
| Old Brotli mappings | DEL | none |
| Current Brotli mappings | not recorded | mem |
That confirmed the stale mappings I’d seen before the reboot were gone. It isn’t a full inventory of every Brotli copy on the host. A bundled or statically linked copy, or a program that wasn’t running, wouldn’t show up in this check.
Last, service health:
systemctl is-active zabbix-proxy
systemctl is-active zabbix-agent
systemctl is-active NetworkManager
systemctl --failed
All three returned active, and systemctl --failed listed 0 loaded units.
The last check was outside the server. After the reboot, a Rapid7 rescan no longer reported CVE-2026-111497 on the Ubuntu server.
Windows Server 2022: A Separate Update Path
The same team’s report also included a Windows Server 2022 Datacenter host (21H2, x64) on the same restricted network.
Unlike Ubuntu, I wasn’t updating a system package named libbrotli1 here. For this host I applied Microsoft’s cumulative update. Microsoft’s CVE-2026-111497 page lists KB5131090, the November 2026 cumulative update, as the update for Windows Server 2022. It moves the OS to build 20348.5870.
Before:
powershell
Get-HotFix -Id KB5131090
Cannot find the requested hotfix on the 'localhost' computer.
powershell
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' |
Select-Object ProductName, DisplayVersion, CurrentBuild, UBR
ProductName : Windows Server 2022 Datacenter
DisplayVersion : 21H2
CurrentBuild : 20348
UBR : 3807
I also ran dotnet --list-runtimes, which returned “‘dotnet’ is not recognized.” That only means the .NET CLI isn’t on the PATH. It doesn’t mean the server has no .NET components.
The offline package from the Microsoft Update Catalog was windows10.0-kb5131090-x64_c74a2040dbc01b5eea7404c1b695cb0039fb1d79.msu. The windows10.0 prefix looks odd for a server, but the Catalog lists it as the Windows Server 2022 x64 package. I recorded the SHA256 of the file I brought in:
powershell
Get-FileHash ".\windows10.0-kb5131090-x64_c74a2040dbc01b5eea7404c1b695cb0039fb1d79.msu" -Algorithm SHA256
E37D81101BF6A71FAF0E5B630944AEC2D87D11AE8AF6C6048585E7B6DE8B8536
Before installing an offline cumulative update, check the “How to get this update” section of the KB article. Microsoft’s KB5131090 page lists prerequisite updates and a servicing stack requirement, so cumulative doesn’t mean prerequisite-free.
powershell
wusa.exe ".\windows10.0-kb5131090-x64_c74a2040dbc01b5eea7404c1b695cb0039fb1d79.msu"
After the reboot:
Description : Security Update
HotFixID : KB5131090
InstalledBy : NT AUTHORITY\SYSTEM
InstalledOn : 11/19/2026
The build moved from 20348.3807 to 20348.5870, matching the build Microsoft lists for KB5131090.
| Ubuntu 24.04 | Windows Server 2022 | |
|---|---|---|
| What was updated | OS package libbrotli1 | Cumulative update |
| Offline package | .deb | .msu |
| Before | 1.1.0-2build2 | 20348.3807 |
| Patch | 1.1.0-2ubuntu0.1 | KB5131090 |
| After | 1.1.0-2ubuntu0.1 | 20348.5870 |
| Reboot | Yes | Yes |
| Verification | package, lsof DEL, services, systemctl --failed | Get-HotFix, OS build |
| Rapid7 rescan | CVE no longer reported | Pending |
At the time of writing, the Rapid7 rescan for the Windows host hasn’t come back yet. I’ll update this post when it does.
Lessons from the Remediation
I’ll stop scoping a vulnerability by its nickname. The useful question is which component contains the vulnerable code on this server, and which vendor package fixes it.
On offline servers, Installed == Candidate only reflects the local package lists. I’ll check the vendor’s fixed version separately.
For shared library updates, I’ll check for DEL mappings before calling the patch done.
Quick Checklist
What I did:
- Search for the library, not just the product in the nickname (
dpkg -l | grep -i brotli) - Compare the installed version with the vendor’s fixed version (Noble:
1.1.0-2ubuntu0.1, USN-8956-1) - After the update, look for
DELmappings on the Brotli libraries (runlsofwithsudo) - Restart affected services or reboot, then confirm no
DELentries remain - Check service status and
systemctl --failed - Rescan with the vulnerability scanner (done for Ubuntu: CVE no longer reported; Windows pending)
- On Windows, confirm both
Get-HotFixand the OS build (UBR)
What I’d add next time:
- Compare the package hash with signed repository metadata or a hash taken before transfer
- Check the KB’s prerequisites before an offline Windows install
Frequently Asked Questions
Does Node2Shell only affect Node.js?
No. Node2Shell is a nickname for CVE-2026-111497, a bug in Google’s Brotli decoder. Node.js was where it was first reported, but software that uses an affected Brotli version can be affected too, including the OS’s own Brotli library. Whether a given server is actually exposed depends on whether something on it decompresses untrusted Brotli data. On our Ubuntu server I found no Node.js binary or process, and the package to fix was libbrotli1.
What does DEL mean in lsof after updating libbrotli1?
DEL in the FD column means a process still has a file mapped into memory that has since been deleted or replaced on disk. After a library update, it usually means the process is still running the old copy. It goes away once that process restarts.
Do I need to reboot after updating libbrotli1?
Not always. Processes that loaded the old library keep using it until they restart. If only a few services show DELentries, restarting them may be enough. In our case NetworkManager was one of them, so I rebooted during a maintenance window.
Why does apt show no update for libbrotli1?
apt-cache policy uses the package lists stored on the server. If those lists were never refreshed from noble-security, Installed and Candidate can show the same old version even though a fixed build exists. Check Ubuntu’s security notice for your release and install the fixed package from a mirror or an offline .deb.
