Debian 9937 Published by

A node-xmldom security update has been released for Debian GNU/Linux 10 LTS to address an issue related to the processing of ill-formed XML.



DLA 3260-1: node-xmldom security update


-------------------------------------------------------------------------
Debian LTS Advisory DLA-3260-1 debian-lts@lists.debian.org
  https://www.debian.org/lts/security/ Guilhem Moulin
January 01, 2023   https://wiki.debian.org/LTS
-------------------------------------------------------------------------

Package : node-xmldom
Version : 0.1.27+ds-1+deb10u2
CVE ID : CVE-2021-21366 CVE-2022-39353
Debian Bug : 1024736

It was discovered that node-xmldom, a standard XML DOM (Level2 CORE)
implementation in pure javascript, processed ill-formed XML, which may result in
bugs and security holes in downstream applications.

CVE-2021-21366

xmldom versions 0.4.0 and older do not correctly preserve system
identifiers, FPIs or namespaces when repeatedly parsing and serializing
maliciously crafted documents. This may lead to unexpected syntactic
changes during XML processing in some downstream applications.

CVE-2022-39353

Mark Gollnick discovered that 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 or throwing
any error. This breaks the assumption that there is only a single root node
in the tree, and may open security holes such as CVE-2022-39299 in
downstream applications.

For Debian 10 buster, these problems have been fixed in version
0.1.27+ds-1+deb10u2.

We recommend that you upgrade your node-xmldom packages.

For the detailed security status of node-xmldom please refer to
its security tracker page at:
  https://security-tracker.debian.org/tracker/node-xmldom

Further information about Debian LTS security advisories, how to apply
these updates to your system and frequently asked questions can be
found at:   https://wiki.debian.org/LTS