High

domutils CPU exhaustion bug lets crafted HTML freeze Node.js apps

An attacker can submit crafted HTML or XML with many nested or sibling nodes that hits the slow removeSubsets() code. This blocks the Node.js event loop for seconds and can exhaust CPU, stopping the app from serving other users.

Product
Systems
macOSWindowsLinux
Fixed in
4.1.0
CVSS
7.5
Weakness
CWE-407
Source
Get the fix in Telegram

Am I affected?

You are affected if the installed version is older than 4.1.0. Check the version you have and update to 4.1.0 or later. The fixed version is verified against a vendor or advisory source.

Affected software and versions

PackageEcosystemAffectedFixed in
domutilsother>=1.3.0, <4.1.04.1.0

A fixed version is shown only when it is verified against a vendor or advisory source.

Who should check

Any project with domutils version 1.3.0 up to but not including 4.1.0, including copies pulled in by css-select or cheerio, on macOS, Windows or Linux.

Expected outcome after remediation

The agent reports which domutils version was installed and confirms it now runs 4.1.0 or newer after the update.

Get the fix

FixLane has a reviewed fix procedure for this incident: a read-only check first, then the fix. Ask the Telegram bot, or connect an AI agent to the FixLane MCP server and call get_fix_prompt with incident id 5860 and your operating system.

Related domutils incidents

All domutils incidents