Skip to content
OpenAdvisories
Medium · 6.5 CVE-2021-32796 EUVD-2021-1574GHSA-5fg8-2547-mr8q

Misinterpretation of malicious XML input in xmldom

Published Jul 27, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

Description

xmldom is an open source pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. xmldom versions 0.6.0 and older do not correctly escape special characters when serializing elements removed from their ancestor. This may lead to unexpected syntactic changes during XML processing in some downstream applications. This issue has been resolved in version 0.7.0. As a workaround downstream applications can validate the input and reject the maliciously crafted documents.

Affected products

VendorProductAffectedFixed
xmldom xmldom < 0.7.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-xmldom 0.7.3-1 —
Debian 13 node-xmldom 0.7.3-1 —
Debian 12 node-xmldom 0.7.3-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-xmldom No fix yet —
Ubuntu 26.04 LTS node-xmldom No fix yet —
Ubuntu 25.10 node-xmldom No fix yet —
Ubuntu 24.04 LTS node-xmldom No fix yet —
Ubuntu 20.04 LTS node-xmldom No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @xmldom/xmldom < 0.7.0 0.7.0 GHSA-5fg8-2547-mr8q
npm xmldom <= 0.6.0 — GHSA-5fg8-2547-mr8q

Advisories 1

References