cve.bz

CVE-2021-21366 Interpretation Conflict

4.3 mediumEPSS 1.3%Fix available

Medium (4.3). EPSS 1.3% estimated probability of exploitation activity in the next 30 days. Fixed in xmldom 0.5.0.

On this page
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.

Severity

CVSS 3.1

4.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 72nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-436 Interpretation Conflict
CWE-115 Misinterpretation of Input
OWASP Top 10
A05:2025 Injection, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-21366 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21366?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21366?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21366 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xmldom_project:xmldombefore 0.5.0
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h6q6-9hqw-rwfvnpmxmldom<0.5.00.5.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10node-xmldom0.1.27+ds-1+deb10u2DLA-3260-1
Debian12, 13, 14node-xmldom0.5.0-1DEBIAN-CVE-2021-21366
Ubuntu20.04:LTSnode-xmldom0.1.27+ds-1+deb10u2build0.20.04.1UBUNTU-CVE-2021-21366 USN-6102-1
Ubuntu22.04:LTSnode-xmldom0.7.5-1ubuntu0.22.04.1USN-6102-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 3.11openshift3/ose-consoleNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-console-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-21366.

Attack patterns (CAPEC)

  • CAPEC-34 HTTP Response Splitting Likelihood: Medium · Severity: High
  • CAPEC-105 HTTP Request Splitting Likelihood: Medium · Severity: High
  • CAPEC-273 HTTP Response Smuggling Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON