{"schemaVersion":3,"id":"CVE-2021-21366","aliases":["UBUNTU-CVE-2021-21366","DEBIAN-CVE-2021-21366","GHSA-h6q6-9hqw-rwfv","CGA-2prq-x2x2-g756","CGA-h84h-85gc-92xw","CGA-mqc2-p3c8-c33x","CGA-x53v-g7rq-vp5j"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-03-12T00:00:00.000Z","modified":"2024-08-03T18:09:16.000Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":7.2,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":7.2,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":7.2,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":7.2,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0134,"percentile":0.7104,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.0134},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0134,"percentile":0.7104}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0134,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0134,"percentile":0.7104}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-115","name":"Misinterpretation of Input","description":"The product misinterprets an input, whether from an attacker or another product, in a security-relevant fashion.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/115.html"},{"id":"CWE-436","name":"Interpretation Conflict","description":"Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/436.html"}],"affected":[{"vendor":"chainguard","product":"wazuh-dashboard-security-plugin","name":"wazuh-dashboard-security-plugin","label":"wazuh-dashboard-security-plugin","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/wazuh-dashboard-security-plugin","purlType":"apk","versions":[{"text":"< 4.14.6-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.14.6-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"wazuh-dashboard-security-plugin-fips","name":"wazuh-dashboard-security-plugin-fips","label":"wazuh-dashboard-security-plugin-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/wazuh-dashboard-security-plugin-fips","purlType":"apk","versions":[{"text":"< 4.14.6-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.14.6-r1","eol":null,"hubHref":null},{"vendor":"debian","product":"node-xmldom","name":"node-xmldom","label":"node-xmldom","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/node-xmldom","purlType":"deb","versions":[{"text":"< 0.5.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.5.0-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-xmldom","name":"node-xmldom","label":"node-xmldom","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-xmldom","purlType":"deb","versions":[{"text":"< 0.1.27+ds-1+deb10u2build0.20.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.1.27+ds-1+deb10u2build0.20.04.1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"Npm","product":"xmldom","name":"xmldom","label":"xmldom","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/xmldom","purlType":"npm","versions":[{"text":"< 0.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.5.0","eol":null,"hubHref":null},{"vendor":"xmldom_project","product":"xmldom","name":"xmldom","label":"xmldom","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.5.0","eol":null,"hubHref":"/vendor/xmldom_project/xmldom"},{"vendor":"xmldom","product":"xmldom","name":"xmldom","label":"xmldom","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.5.0","eol":null,"hubHref":"/vendor/xmldom/xmldom"}],"affectedCount":8,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-h6q6-9hqw-rwfv","label":"github.com/xmldom/xmldom/security/advisories/GHSA-h6q6-9hqw-rwfv","hostname":"github.com","tags":["REPORT","WEB","Advisory","Vendor Advisory"]},{"url":"https://www.npmjs.com/package/xmldom","label":"www.npmjs.com/package/xmldom","hostname":"www.npmjs.com","tags":["REPORT","WEB","Product"]},{"url":"https://github.com/xmldom/xmldom/releases/tag/0.5.0","label":"github.com/xmldom/xmldom/releases/tag/0.5.0","hostname":"github.com","tags":["REPORT","WEB","Advisory","Release Notes"]},{"url":"https://github.com/xmldom/xmldom/commit/d4201b9dfbf760049f457f9f08a3888d48835135","label":"github.com/xmldom/xmldom/commit/d4201b9dfbf760049f457f9f08a3888d48835135","hostname":"github.com","tags":["REPORT","WEB","FIX","Patch"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html","label":"lists.debian.org/debian-lts-announce/2023/01/msg00000.html","hostname":"lists.debian.org","tags":["Mailing List","WEB","Advisory","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-21366","label":"ubuntu.com/security/CVE-2021-21366","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6102-1","label":"ubuntu.com/security/notices/USN-6102-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-21366","label":"www.cve.org/CVERecord?id=CVE-2021-21366","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-21366","label":"security-tracker.debian.org/tracker/CVE-2021-21366","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21366","label":"nvd.nist.gov/vuln/detail/CVE-2021-21366","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/xmldom/xmldom","label":"github.com/xmldom/xmldom","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["DLA-3260-1","USN-6102-1"],"duplicates":[],"related":["CGA-RPFJ-2GGX-58H7","USN-6102-1"]},"timeline":[{"kind":"published","date":"2021-03-12T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:09:16.000Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":17,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T19:17:02.243Z","stale":false,"partial":false}}