PT-2020-5443 · Dompurify · Dompurify
Published
2020-10-07
·
Updated
2022-04-27
·
CVE-2020-26870
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
DOMPurify versions prior to 2.0.17
Description
The issue is related to the DOMPurify library and its failure to protect the structure of a web page. This can be exploited by a remote attacker to perform a cross-site scripting attack. Specifically, the problem 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.
Recommendations
For DOMPurify versions prior to 2.0.17, update to version 2.0.17 or later to resolve the issue. As a temporary workaround, consider restricting the use of the DOMPurify library until a patch is applied.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Dompurify