HOMEVULNERABILITIESCVE-2021-21366
MEDIUM

CVE-2021-21366

CWE-115Published: March 12, 2021· Updated: Jun 17, 2026

4.3
CVSS v3.1

Official Description

xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. xmldom versions 0.4.0 and older do not correctly preserve system identifiers, FPIs or namespaces when repeatedly parsing and serializing maliciously crafted documents. This may lead to unexpected syntactic changes during XML processing in some downstream applications. This is fixed in version 0.5.0. As a workaround downstream applications can validate the input and reject the maliciously crafted documents.

NVD Source

Technical Analysis

CVE-2021-21366 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.

Exploitation does not require any privileges, though user interaction (Required) is needed, which slightly reduces the risk of mass automated attacks.

CVSS v3.1 Vector Breakdown

Exploitability
Attack VectorNetwork
Attack ComplexityLow
Privileges Req.None
User InteractionRequired
ScopeUnchanged
Impact
ConfidentialityNone
IntegrityLow
AvailabilityNone
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Affected Vendors & Products

Debian1 product(s)
debian linux
xmldom_project1 product(s)
xmldom
Source: NVD CPE · 2 total CPE entries

Exploit & PoC Resources

NO KNOWN EXPLOITNo public exploit confirmed at this time
External links open in a new tab. Always verify in a controlled environment before use.

Official Patches & Advisories

All References (10)

Quick Facts

CVE IDCVE-2021-21366
CVSS Score4.3 / 10
SeverityMEDIUM
WeaknessCWE-115
CISA KEVNo
Affected2 vendor(s)
PublishedMar 12, 2021

Related CVEs (CWE-115)

Recommended Actions

  • Apply vendor patches immediately
  • Monitor CVE-2021-21366 in threat intel feeds
  • Review IDS/IPS signatures for exploitation attempts
Data sourced from NVD (NIST), CISA KEV, and EPSS (FIRST). Analysis generated by CTIWatch. CVE data is provided under the NVD usage policy.