Skip to content
Heist/ feed
Back to feed
Medium

node-xmldom — security advisory

Type: advisorySources: OSVAdvisory ID: 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 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.

Products
node-xmldom
Affected versions
0.1.27+ds-1, 0.1.27+ds-1+deb10u2build0.20.04.1, 0.8.6-1, 0.9.10-2, 0.9.11-1, 0.9.6-1, 0.9.8-1, 0.9.8-2
Fixed versions
Not specified
CVEs
CVE-2021-32796
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:34 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-32796

core-osv · Original source

Published 27 Jul 2021, 22:15 UTC

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.

osv:UBUNTU-CVE-2021-32796

node-xmldom

Fixed versions: Not specified

node-xmldom

Fixed versions: Not specified

node-xmldom

Fixed versions: Not specified

node-xmldom

Fixed versions: Not specified

node-xmldom

Fixed versions: Not specified

Complete source record
{
  "id": "fac8f481a44ccc7c7a8f43e0b6de4bd75daaa49134e92634b96f5ac64b4b6f11",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-32796",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-32796",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2021-32796",
    "products": [
      {
        "name": {
          "value": "node-xmldom",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.1.27+ds-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.1.27+ds-1+deb10u2build0.20.04.1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-xmldom",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.6-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-xmldom",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.6-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-xmldom",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.8-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.9.10-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.9.11-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-xmldom",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.6-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.9.8-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.9.8-2",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2021-32796",
      "aliases": [
        "UBUNTU-CVE-2021-32796"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "low"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-xmldom",
            "purl": "pkg:deb/ubuntu/node-xmldom?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.1.27+ds-1",
            "0.1.27+ds-1+deb10u2build0.20.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32796.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-xmldom",
                "binary_version": "0.1.27+ds-1+deb10u2build0.20.04.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-xmldom",
            "purl": "pkg:deb/ubuntu/node-xmldom?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.8.6-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32796.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-xmldom",
                "binary_version": "0.8.6-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-xmldom",
            "purl": "pkg:deb/ubuntu/node-xmldom?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.9.6-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32796.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-xmldom",
                "binary_version": "0.9.6-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-xmldom",
            "purl": "pkg:deb/ubuntu/node-xmldom?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.9.8-2",
            "0.9.10-2",
            "0.9.11-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32796.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-xmldom",
                "binary_version": "0.9.11-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-xmldom",
            "purl": "pkg:deb/ubuntu/node-xmldom?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.9.6-1",
            "0.9.8-1",
            "0.9.8-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32796.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-xmldom",
                "binary_version": "0.9.8-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:55:46.824906660Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-32796"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-32796",
        "https://github.com/xmldom/xmldom/security/advisories/GHSA-5fg8-2547-mr8q",
        "https://github.com/xmldom/xmldom/commit/7b4b743917a892d407356e055b296dcd6d107e8b",
        "https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities/",
        "https://www.cve.org/CVERecord?id=CVE-2021-32796"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-32796",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 354063,
  "published_at": "2021-07-27T22:15:00+00:00"
}