GitHub Advisoryadvisory · npm

GHSA-63q7-h895-m982 Cross-site Scripting in dompurify

MEDIUM Published 2020-12-18 Modified 2022-04-28 Official page ↗
Aliases
CVE-2020-26870
Ecosystem
npm
Packages
dompurify
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2020-12-18

Affected packages

• npm dompurify: < 2.0.17 → fixed in 2.0.17

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.

Related

Alias · CVE (1)

  • CVE-2020-26870 Cure53 DOMPurify before 2.0.17 allows mutation XSS. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References