xmldom: Denial of service via uncontrolled recursion in XML serialization
xmldom
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @xmldom/xmldom npm |
|
|
| xmldom npm |
| No fix yet |
xmldom
| Product | Affected | Fixed in |
|---|---|---|
| @xmldom/xmldom npm |
|
|
| xmldom npm |
| No fix yet |
xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and `XMLSerializer` module. In @xmldom/xmldom prior to versions 0.9.10 and 0.8.13 and xmldom version 0.6.0 and prior, seven recursive traversals in lib/dom.js operate without a depth limit. A sufficiently deeply nested DOM tree causes a RangeError: Maximum call stack size exceeded, crashing the application. This issue has been patched in versions @xmldom/xmldom versions 0.9.10 and 0.8.13.
From the CVE record · GitHub_M
Seven recursive DOM traversals lack a depth limit. An attacker who can cause an application to process a sufficiently deeply nested DOM tree can trigger a stack overflow and crash the application. The input does not specify authentication or user-interaction requirements.
Check applications using npm @xmldom/xmldom before 0.8.13 or from 0.9.0 to before 0.9.10, or npm xmldom version 0.6.0 or earlier.