Skip to content
Heist/ feed
Back to feed
MediumFix available

node-xmldom — security advisory

Type: advisorySources: OSVAdvisory ID: 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 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
Not specified
Fixed versions
0.7.3-1
CVEs
CVE-2021-32796
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:23 UTC · Revision 1

Source evidence

DEBIAN-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:DEBIAN-CVE-2021-32796

node-xmldom

Fixed versions: 0.7.3-1

node-xmldom

Fixed versions: 0.7.3-1

node-xmldom

Fixed versions: 0.7.3-1

Complete source record
{
  "id": "9c3f61c05a438444fd2ce160a39255f3e42b561f3c351079fad32125c7f27280",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-32796",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-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:DEBIAN-CVE-2021-32796",
    "products": [
      {
        "name": {
          "value": "node-xmldom",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.7.3-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "node-xmldom",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.7.3-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "node-xmldom",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.7.3-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2021-32796",
      "aliases": [
        "DEBIAN-CVE-2021-32796"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.7.3-1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-xmldom",
            "purl": "pkg:deb/debian/node-xmldom?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-32796.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.7.3-1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-xmldom",
            "purl": "pkg:deb/debian/node-xmldom?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-32796.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.7.3-1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-xmldom",
            "purl": "pkg:deb/debian/node-xmldom?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-32796.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:14.640639615Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-32796"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/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": 420924,
  "published_at": "2021-07-27T22:15:07.69+00:00"
}