ADVISORIES

Vulnerability

CVE-2021-32796

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.

7 advisories report this vulnerability, across 4 ecosystems.

Medium severity All Chainguard 4Debian 1Ubuntu 1npm 1

Advisories

  • CGA-3688-64cj-cmp9
    CVE-2021-32796 Chainguard Updated 5 November 2026
  • CGA-qf7p-jwc2-ch57
    CVE-2021-32796 Chainguard Updated 5 November 2026
  • CGA-qm82-673g-fq99
    CVE-2021-32796 Chainguard Updated 5 November 2026
  • CGA-w9v5-744m-7pjg
    CVE-2021-32796 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2021-32796

    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…

    CVE-2021-32796 Debian Updated 23 October 2026
  • GHSA-5fg8-2547-mr8q

    Misinterpretation of malicious XML input

    Moderate CVE-2021-32796 npm Updated 10 September 2026
  • UBUNTU-CVE-2021-32796

    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…

    CVE-2021-32796 Ubuntu Updated 17 October 2026

References