Skip to content
OpenAdvisories
Medium · 6.1 CVE-2020-26870 EUVD-2020-1486GHSA-63q7-h895-m982

Cross-site Scripting in dompurify

Published Oct 7, 2020 · Updated Aug 4, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 9 dompurify.js 0.8.2~dfsg1-1+deb9u1 DLA-2419-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS dompurify.js No fix yet —
Ubuntu 16.04 LTS dompurify.js No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm dompurify < 2.0.17 2.0.17 GHSA-63q7-h895-m982

Advisories 2

References