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.
4.1.0Am 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
| Package | Ecosystem | Affected | Fixed in |
|---|---|---|---|
domutils | other | >=1.3.0, <4.1.0 | 4.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.