Appsecure logo

CVE-2022-39353: Critical Vulnerability in xmldom

CVE-2022-39353 is a critical vulnerability in the xmldom library, affecting applications that rely on XML parsing. Organizations must prioritize patching to mitigate risks associated with potential exploitation.

CRITICALCVSS 9.4 · Published November 2, 2022

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2022-39353 is a critical vulnerability affecting the xmldom library, a pure JavaScript implementation of the W3C standard-based XML DOM Level 2 Core. This vulnerability allows xmldom to improperly parse XML documents that are not well-formed, specifically those containing multiple top-level elements. As a consequence, all root nodes are added to the childNodes collection of the Document without reporting any errors. This behavior breaks the fundamental assumption that there is only a single root node in an XML document tree, which can lead to unexpected behavior in applications relying on this library.

The severity of this vulnerability is rated as CRITICAL due to its high CVSS score of 9.4. This high score indicates significant potential impact on confidentiality, integrity, and availability. Organizations utilizing xmldom must act quickly to address this issue, as failure to do so may expose them to severe risks.

Currently, there is no public exploit confirmed for this vulnerability, but its high severity warrants immediate attention. Organizations should prioritize patching xmldom to the specified versions: @xmldom/xmldom@~0.7.7, @xmldom/xmldom@~0.8.4, or @xmldom/xmldom@>=0.9.0-beta.4. In the interim, a workaround is to limit searches to the documentElement or to reject documents that contain more than one childNode.

Organizations should prioritize patching immediately.

The xmldom vulnerability exemplifies how critical XML parsing issues can lead to severe application vulnerabilities. Security teams must remain vigilant and ensure that they are utilizing the latest and most secure versions of libraries in their applications.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.