{"schemaVersion":3,"id":"CVE-2021-32796","aliases":["UBUNTU-CVE-2021-32796","DEBIAN-CVE-2021-32796","GHSA-5fg8-2547-mr8q","CGA-3688-64cj-cmp9","CGA-qf7p-jwc2-ch57","CGA-qm82-673g-fq99","CGA-w9v5-744m-7pjg"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2021-07-27T21:45:13.000Z","modified":"2024-08-03T23:33:55.989Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":10,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01358,"percentile":0.71294,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01358},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01358,"percentile":0.71294}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01358,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01358,"percentile":0.71294}]},"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-116","name":"Improper Encoding or Escaping of Output","description":"The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/116.html"},{"id":"CWE-91","name":"XML Injection (aka Blind XPath Injection)","description":"The product does not properly neutralize special elements that are used in XML, allowing attackers to modify the syntax, content, or commands of the XML before it is processed by an end system.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/91.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.7.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.7.3-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":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"Npm","product":"xmldom","name":"xmldom","label":"xmldom","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/xmldom","purlType":"npm","versions":[{"text":"≤ 0.6.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.6.0","eol":null,"hubHref":null},{"vendor":"@xmldom","product":"xmldom","name":"@xmldom/xmldom","label":"xmldom","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@xmldom/xmldom","purlType":"npm","versions":[{"text":"< 0.7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.7.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.7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.7.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.7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.7.0","eol":null,"hubHref":"/vendor/xmldom/xmldom"}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities/","label":"mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities/","hostname":"mattermost.com","tags":["X Refsource MISC","REPORT","Advisory","Not Applicable","Third Party Advisory"]},{"url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-5fg8-2547-mr8q","label":"github.com/xmldom/xmldom/security/advisories/GHSA-5fg8-2547-mr8q","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","WEB","Advisory","Third Party Advisory"]},{"url":"https://github.com/xmldom/xmldom/commit/7b4b743917a892d407356e055b296dcd6d107e8b","label":"github.com/xmldom/xmldom/commit/7b4b743917a892d407356e055b296dcd6d107e8b","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-32796","label":"ubuntu.com/security/CVE-2021-32796","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32796","label":"www.cve.org/CVERecord?id=CVE-2021-32796","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-32796","label":"security-tracker.debian.org/tracker/CVE-2021-32796","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32796","label":"nvd.nist.gov/vuln/detail/CVE-2021-32796","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/xmldom/xmldom","label":"github.com/xmldom/xmldom","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities","label":"mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities","hostname":"mattermost.com","tags":["WEB"]},{"url":"https://mattermost.com/blog/securing-xml-implementations-across-the-web","label":"mattermost.com/blog/securing-xml-implementations-across-the-web","hostname":"mattermost.com","tags":["WEB"]},{"url":"https://www.npmjs.com/package/@xmldom/xmldom","label":"www.npmjs.com/package/@xmldom/xmldom","hostname":"www.npmjs.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-FMCC-4647-HMC7"]},"timeline":[{"kind":"published","date":"2021-07-27T21:45:13.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T23:33:55.989Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T09:28:04.773Z","stale":false,"partial":false}}