{"schemaVersion":3,"id":"CVE-2020-26870","aliases":["UBUNTU-CVE-2020-26870","GHSA-63q7-h895-m982"],"status":"published","duplicateOf":null,"title":null,"description":"Cure53 DOMPurify before 2.0.17 allows mutation XSS. This occurs because a serialize-parse roundtrip does not necessarily return the original DOM tree, and a namespace can change from HTML to MathML, as demonstrated by nesting of FORM elements.","dates":{"published":"2020-10-07T15:50:09.000Z","modified":"2024-08-04T16:03:22.865Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.1,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/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.04881,"percentile":0.9197,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.04881},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04881,"percentile":0.9197}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04881,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04881,"percentile":0.9197}]},"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":[{"id":"REF_4CD3774B2D4937F7","name":"Exploit Reference (research.securitum.com)","source":"reference","url":"https://research.securitum.com/mutation-xss-via-mathml-mutation-dompurify-2-0-17-bypass/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"cure53","product":"dompurify","name":"DOMPurify","label":"dompurify","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.0.17","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.17","eol":null,"hubHref":"/vendor/cure53/dompurify"},{"vendor":"ubuntu","product":"dompurify.js","name":"dompurify.js","label":"dompurify.js","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/dompurify.js","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","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":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0","eol":{"isEol":true,"eolDate":"2022-07-01T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"9","label":"9 (Stretch)","eolFrom":"2022-07-01T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"9.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"microsoft","product":"visual_studio_2017","name":"visual studio 2017","label":"visual_studio_2017","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"15.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"15.9","eol":null,"hubHref":"/vendor/microsoft/visual_studio_2017"},{"vendor":"microsoft","product":"visual_studio_2019","name":"visual studio 2019","label":"visual_studio_2019","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"16.0","noFixRecorded":false,"fixedIn":null},{"text":"16.4","noFixRecorded":false,"fixedIn":null},{"text":"16.7","noFixRecorded":false,"fixedIn":null},{"text":"16.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"16.0 | 16.4 | 16.7 | 16.8","eol":null,"hubHref":"/vendor/microsoft/visual_studio_2019"},{"vendor":"Npm","product":"dompurify","name":"dompurify","label":"dompurify","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/dompurify","purlType":"npm","versions":[{"text":"< 2.0.17","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.17","eol":null,"hubHref":null},{"vendor":"oracle","product":"application_express","name":"application express","label":"application_express","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 21.1.0.00.01","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 21.1.0.00.01","eol":null,"hubHref":"/vendor/oracle/application_express"}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://research.securitum.com/mutation-xss-via-mathml-mutation-dompurify-2-0-17-bypass/","label":"research.securitum.com/mutation-xss-via-mathml-mutation-dompurify-2-0-17-bypass/","hostname":"research.securitum.com","tags":["X Refsource MISC","REPORT","Exploit","Third Party Advisory"]},{"url":"https://github.com/cure53/DOMPurify/commit/02724b8eb048dd219d6725b05c3000936f11d62d","label":"github.com/cure53/DOMPurify/commit/02724b8eb048dd219d6725b05c3000936f11d62d","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/cure53/DOMPurify/compare/2.0.16...2.0.17","label":"github.com/cure53/DOMPurify/compare/2.0.16...2.0.17","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/10/msg00029.html","label":"lists.debian.org/debian-lts-announce/2020/10/msg00029.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","WEB","Third Party Advisory"]},{"url":"https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-26870","label":"portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-26870","hostname":"portal.msrc.microsoft.com","tags":["Vendor Advisory","X Refsource MS","WEB","Patch"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","label":"www.oracle.com//security-alerts/cpujul2021.html","hostname":"www.oracle.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-26870","label":"ubuntu.com/security/CVE-2020-26870","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-26870","label":"www.cve.org/CVERecord?id=CVE-2020-26870","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26870","label":"nvd.nist.gov/vuln/detail/CVE-2020-26870","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/cure53/DOMPurify","label":"github.com/cure53/DOMPurify","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://research.securitum.com/mutation-xss-via-mathml-mutation-dompurify-2-0-17-bypass","label":"research.securitum.com/mutation-xss-via-mathml-mutation-dompurify-2-0-17-bypass","hostname":"research.securitum.com","tags":["WEB"]},{"url":"https://snyk.io/vuln/SNYK-JS-DOMPURIFY-1016634","label":"snyk.io/vuln/SNYK-JS-DOMPURIFY-1016634","hostname":"snyk.io","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["DLA-2419-1"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2020-10-07T15:50:09.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T16:03:22.865Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T15:47:01.938Z","stale":false,"partial":false}}