CVE-2021-21366

Summary

CVECVE-2021-21366
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-03-12 17:15:00 UTC
Updated2023-02-28 19:24:00 UTC
Descriptionxmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. 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. This is fixed in version 0.5.0. As a workaround downstream applications can validate the input and reject the maliciously crafted documents.

Risk And Classification

Problem Types: CWE-436 | CWE-115

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 10.0 All All All
Application Xmldom Project Xmldom All All All All

References

ReferenceSourceLinkTags
[SECURITY] [DLA 3260-1] node-xmldom security update MLIST lists.debian.org
Merge pull request from GHSA-h6q6-9hqw-rwfv · xmldom/xmldom@d4201b9 · GitHub MISC github.com Patch, Third Party Advisory
Misinterpretation of malicious XML input · Advisory · xmldom/xmldom · GitHub CONFIRM github.com Third Party Advisory
Release 0.5.0 · xmldom/xmldom · GitHub MISC github.com Release Notes, Third Party Advisory
xmldom MISC www.npmjs.com Product, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 179628 Debian Security Update for node-xmldom (CVE-2021-21366)
  • 181457 Debian Security Update for node-xmldom (DLA 3260-1)
  • 199362 Ubuntu Security Notification for xmldom Vulnerabilities (USN-6102-1)
  • 982891 Nodejs (npm) Security Update for xmldom (GHSA-h6q6-9hqw-rwfv)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report