CVE-2020-26870:
Cross-site Scripting in dompurify
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.5207%
CWE
Published
12/18/2020
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
dompurify | npm | < 2.0.17 | 2.0.17 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from an incomplete element list in the mXSS protection check. The commit diff shows the patched version adds 'table' to the querySelectorAll()
check in SVG/MathML contexts. This matches the CVE description of FORM nesting causing namespace changes, and the test fixture added demonstrates exploitation via <table> elements. The function responsible for this check in createDOMPurify()
was vulnerable because it failed to account for all mutation-prone elements.