Vulnerability · Published Oct 7, 2020 · Assigned by mitre
CVE-2020-26870
Medium 6.1
In plain English
A medium-severity security flaw in the dompurify package (npm). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.9% (higher than 92% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)4.9%top 7.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | dompurify | 2.0.17 | GHSA-63q7-h895-m982 |
Affected products (as reported)
References
- https://research.securitum.com/mutation-xss-via-mathml-mutation-dompurify-2-0-17-bypass/ x_refsource_MISC
- https://github.com/cure53/DOMPurify/commit/02724b8eb048dd219d6725b05c3000936f11d62d x_refsource_MISC
- https://github.com/cure53/DOMPurify/compare/2.0.16...2.0.17 x_refsource_MISC
- [debian-lts-announce] 20201029 [SECURITY] [DLA 2419-1] dompurify.js security update mailing-list, x_refsource_MLIST
- Visual Studio Remote Code Execution Vulnerability vendor-advisory, x_refsource_MS
- https://www.oracle.com//security-alerts/cpujul2021.html x_refsource_MISC