Description
domutils 1.3.0 before 4.1.0 contains an inefficient algorithm in removeSubsets() that allows remote attackers to cause CPU exhaustion by supplying documents with many nested or sibling nodes. Attackers can submit crafted HTML or XML processed by css-select selectAll() or cheerio find() to block the Node.js event loop for seconds.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
fb55 domutils
Default version status: unaffected
1.3.0 to < 4.1.0affected
pkg:npm/domutilsReferences
- https://github.com/fb55/domutils/security/advisories/GHSA-42h4-gpjh-8xhf ↗
- https://github.com/fb55/domutils/commit/2c13c4f8db7838447659608e876099a8d1a28181 ↗
- https://github.com/fb55/domutils/commit/2c9cac0f3f6905cd91277b82493f1b13d921a1eb ↗
- https://github.com/fb55/domutils/releases/tag/v4.1.0 ↗
- https://github.com/fb55/domutils/blob/v4.0.2/src/helpers.ts#L11-L40 ↗
- https://www.vulncheck.com/advisories/domutils-1.3.0-before-4.1.0-denial-of-service-via-removesubsets-inefficient-algorithm ↗