Skip to content
Heist/ feed
Back to feed
High

node-xmldom — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-41674

xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and `XMLSerializer` module. In @xmldom/xmldom prior to versions 0.9.10 and 0.8.13 and xmldom version 0.6.0 and prior, the package serializes DocumentType node fields (internalSubset, publicId, systemId) verbatim without any escaping or validation. When these fields are set programmatically to attacker-controlled strings, XMLSerializer.serializeToString can produce output where the DOCTYPE declaration is terminated early and arbitrary markup appears outside it. This issue has been patched in versions @xmldom/xmldom versions 0.9.10 and 0.8.13.

Products
node-xmldom
Affected versions
0.1.27+ds-1, 0.1.27+ds-1+deb10u2build0.20.04.1, 0.5.0-1, 0.7.3-1, 0.7.5-1, 0.7.5-1ubuntu0.22.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-2026-41674
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:11 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-41674

core-osv · Original source

Published 7 May 2026, 04:16 UTC

xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and `XMLSerializer` module. In @xmldom/xmldom prior to versions 0.9.10 and 0.8.13 and xmldom version 0.6.0 and prior, the package serializes DocumentType node fields (internalSubset, publicId, systemId) verbatim without any escaping or validation. When these fields are set programmatically to attacker-controlled strings, XMLSerializer.serializeToString can produce output where the DOCTYPE declaration is terminated early and arbitrary markup appears outside it. This issue has been patched in versions @xmldom/xmldom versions 0.9.10 and 0.8.13.

osv:UBUNTU-CVE-2026-41674

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

node-xmldom

Fixed versions: Not specified

Complete source record
{
  "id": "2988060d7a2398ba7a9a5773a3f77c693ab1d0f7c6eab7555024c47e20dbd318",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-41674",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-41674",
    "summary": "xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and `XMLSerializer` module. In @xmldom/xmldom prior to versions 0.9.10 and 0.8.13 and xmldom version 0.6.0 and prior, the package serializes DocumentType node fields (internalSubset, publicId, systemId) verbatim without any escaping or validation. When these fields are set programmatically to attacker-controlled strings, XMLSerializer.serializeToString can produce output where the DOCTYPE declaration is terminated early and arbitrary markup appears outside it. This issue has been patched in versions @xmldom/xmldom versions 0.9.10 and 0.8.13.",
    "evidence": "osv:UBUNTU-CVE-2026-41674",
    "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.5.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.7.3-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.7.5-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.7.5-1ubuntu0.22.04.1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-xmldom",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.6-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-xmldom",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.6-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-xmldom",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.8-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.9.10-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.9.11-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-xmldom",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.6-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.9.8-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.9.8-2",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-41674",
      "aliases": [
        "UBUNTU-CVE-2026-41674"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "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/2026/UBUNTU-CVE-2026-41674.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=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.5.0-1",
            "0.7.3-1",
            "0.7.5-1",
            "0.7.5-1ubuntu0.22.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41674.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-xmldom",
                "binary_version": "0.7.5-1ubuntu0.22.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/2026/UBUNTU-CVE-2026-41674.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/2026/UBUNTU-CVE-2026-41674.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/2026/UBUNTU-CVE-2026-41674.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/2026/UBUNTU-CVE-2026-41674.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-xmldom",
                "binary_version": "0.9.8-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:15.304780655Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-41674"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-41674",
        "https://www.cve.org/CVERecord?id=CVE-2026-41674",
        "https://github.com/xmldom/xmldom/security/advisories/GHSA-f6ww-3ggp-fr8h",
        "https://github.com/xmldom/xmldom/commit/372008f9ae0e20fd69f761c7b79e202598267314"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-41674",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 358450,
  "published_at": "2026-05-07T04:16:00+00:00"
}