LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32796: Misinterpretation of malicious XML input in xmldom

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.

MediumCVSS 6.5Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

xmldom had a flaw in how it serialized certain XML content. A crafted XML document could be transformed into different syntax than the application expected, potentially changing downstream processing results. The issue is fixed in xmldom 0.7.0.

Executive priority

Treat this as a moderate dependency risk. Prioritize remediation where xmldom processes external XML or feeds business-critical automation. It is not evidenced as actively exploited in the provided sources, but the fix is available and should be applied.

Technical view

CVE-2021-32796 is a CWE-116 escaping issue in xmldom before 0.7.0. Removed elements were not correctly escaped during serialization, allowing malicious XML input to cause unexpected syntactic changes in downstream XML processing. CVSS 3.1 is 6.5, network exploitable, low complexity, no privileges, no user interaction.

Likely exposure

Applications using xmldom below 0.7.0 are potentially exposed, especially where XML is accepted from users, integrations, APIs, or files and then serialized for downstream decisions. Exposure depends on application-specific XML workflows.

Exploitation context

The provided sources do not show active exploitation, and the CVE is not listed as KEV. Practical impact depends on whether an application trusts xmldom serialization output in a security-sensitive or integrity-sensitive flow.

Researcher notes

Focus assessment on data-flow, not only package presence. The vulnerable behavior matters when malicious XML can reach xmldom and serialized output influences downstream processing. The sources name upgrade to 0.7.0 and input validation as remediation direction.

Mitigation direction

  • Upgrade xmldom to version 0.7.0 or later.
  • Validate XML input before parsing and reject crafted or unexpected documents.
  • Review downstream XML consumers for trust in serialized output.
  • Check vendor guidance if pinned dependencies prevent immediate upgrade.

Validation and detection

  • Review dependency manifests and lockfiles for xmldom below 0.7.0.
  • Identify XML parsing paths that accept untrusted or partner-supplied input.
  • Confirm serialized XML is not used for access, routing, or integrity decisions.
  • Verify test coverage for malformed XML handling and rejection behavior.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-116: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-32796 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.5CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N3.92.5Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.5Medium
CVSS 3.1 vector shape for CVE-2021-32796Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
xmldomxmldom< 0.7.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-116 · source CWE mapping

Improper Encoding or Escaping of Output

Improper Encoding or Escaping of Output represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.