cve.bz

CVE-2022-39353 Improper Input Validation

9.8 criticalExploit referenceEPSS 1.6%Fix available

Critical (9.8). EPSS 1.6% estimated probability of exploitation activity in the next 30 days. Fixed in @xmldom/xmldom 0.7.7, 0.8.4, 0.9.0-beta.4.

On this page
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`.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.6% (unchanged from 1.6% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 76th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-20 Improper Input Validation
CWE-1288 Improper Validation of Consistency within Input
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-39353 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-39353?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-39353?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-39353 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xmldom_project:xmldombefore 0.6.0
xmldom_project:xmldomfrom 0.7.0 before 0.7.7
xmldom_project:xmldomfrom 0.8.0 before 0.8.4
xmldom_project:xmldom0.9.0:beta1
xmldom_project:xmldom0.9.0:beta2
xmldom_project:xmldom0.9.0:beta3
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-crh6-fp67-6883npmxmldom<=0.6.0no fix published
GHSA-crh6-fp67-6883npm@xmldom/xmldom<0.7.70.7.7
GHSA-crh6-fp67-6883npm@xmldom/xmldom>=0.8.0 <0.8.40.8.4
GHSA-crh6-fp67-6883npm@xmldom/xmldom>=0.9.0-beta.1 <0.9.0-beta.40.9.0-beta.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10node-xmldom0.1.27+ds-1+deb10u2DLA-3260-1
Debian12, 13, 14node-xmldom0.8.6-1DEBIAN-CVE-2022-39353
Ubuntu20.04:LTSnode-xmldom0.1.27+ds-1+deb10u2build0.20.04.1UBUNTU-CVE-2022-39353 USN-6102-1
Ubuntu22.04:LTSnode-xmldom0.7.5-1ubuntu0.22.04.1UBUNTU-CVE-2022-39353 USN-6102-1
Ubuntu25.10node-xmldomno fix listedUBUNTU-CVE-2022-39353
Azure Linux3python-tensorboard2.16.2-1AZL-38671

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 3.11openshift3/ose-consoleNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-consoleNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-39353.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON