Description
domutils 3.1.0 before 4.1.0 contains a quadratic-time denial of service vulnerability in find() and findAll() caused by stack handling with unshift() and shift(). Attackers can supply deeply nested HTML or XML documents searched via filter(), getElements(), or getElementsByTagName() to block the Node.js event loop.
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
3.1.0 to < 4.1.0affected
pkg:npm/domutilsReferences
- https://github.com/fb55/domutils/security/advisories/GHSA-qx47-vpjg-465w ↗
- https://github.com/fb55/domutils/commit/9bf76267f13407d77bbad7da06907876af3aed30 ↗
- https://github.com/fb55/domutils/releases/tag/v4.1.0 ↗
- https://github.com/fb55/domutils/blob/v4.0.2/src/querying.ts#L38-L81 ↗
- https://github.com/fb55/domutils/blob/v4.0.2/src/querying.ts#L141-L172 ↗
- https://www.vulncheck.com/advisories/domutils-3.1.0-before-4.1.0-denial-of-service-via-find-and-findall ↗