CVE-2022-39353

node-xmldom: xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and `XMLSerializer` module

CVE-2022-39353 is fixed in node-xmldom on 1 platform, first by node-xmldom 0.1.27+ds-1+deb10u2build0.20.04.1, released November 2, 2022. It is not reported as exploited. Patch Radar priority: Urgent.

Urgent
CVSS
9.8
critical
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0156
75th percentile

xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and `XMLSerializer` module. xmldom parses XML that is not well-formed because it contains multiple top level elements, and adds all root nodes to the `childNodes` collection of the `Document`, without reporting any error or throwing. This breaks the assumption that there is only a single root node in the tree, which led to issuance of CVE-2022-39299 as it is a potential issue for dependents. Update to @xmldom/xmldom@~0.7.7, @xmldom/xmldom@~0.8.4 (dist-tag latest) or @xmldom/xmldom@>=0.9.0-beta.4 (dist-tag next). As a workaround, please one of the following approaches depending on your use case: instead of searching for elements in the whole DOM, only search in the `documentElement`or reject a document with a document that has more then 1 `childNode`.

Where it's fixed

ProductFixed inFixReleased
Linux
node-xmldom · Debian 12.15 (bookworm) 0.8.6-1 DEBIAN-CVE-2022-39353 Nov 2, 2022
node-xmldom · Debian 13.5 (trixie) 0.8.6-1 DEBIAN-CVE-2022-39353 Nov 2, 2022
node-xmldom · Debian 14 0.8.6-1 DEBIAN-CVE-2022-39353 Nov 2, 2022
node-xmldom · Ubuntu 20.04 LTS (focal) 0.1.27+ds-1+deb10u2build0.20.04.1 node-xmldom 0.1.27+ds-1+deb10u2build0.20.04.1 Nov 2, 2022
node-xmldom · Ubuntu 22.04.1 LTS (jammy) 0.7.5-1ubuntu0.22.04.1 node-xmldom 0.7.5-1ubuntu0.22.04.1 Nov 2, 2022

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.