Description
domutils 1.1.0 before 4.1.0 contains an uncontrolled recursion vulnerability in getText(), textContent() and innerText() in src/stringify.ts that allows attackers to exhaust the call stack. Attackers can supply HTML or XML documents with about 10,000 nested levels to trigger a RangeError, failing requests or terminating the Node.js process.
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.1.0 to < 4.1.0affected
pkg:npm/domutilsReferences
- https://github.com/fb55/domutils/security/advisories/GHSA-f3vc-4w2g-4762 ↗
- https://github.com/fb55/domutils/commit/22fd0ad6c58ef9d2e35363310dc4976c767952eb ↗
- https://github.com/fb55/domutils/releases/tag/v4.1.0 ↗
- https://github.com/fb55/domutils/blob/v4.0.2/src/stringify.ts#L50-L90 ↗
- https://www.vulncheck.com/advisories/domutils-1.1.0-before-4.1.0-stack-overflow-via-gettext-uncontrolled-recursion ↗