Vulnerabilities/

xmldom allows multiple root nodes in a DOM

Severity:
High

Description

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 https://nvd.nist.

Recommendation

Update the @xmldom/xmldom package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@xmldom/xmldom
Anything's wrong? Let us know Last updated on March 31, 2023