CVE-2019-16728
mediumpriority · track · 25EPSS 0.015 · 73 %ileEUUSEPSS · scored 2026-10-27
DOMPurify before 2.0.1 allows XSS because of innerHTML mutation XSS (mXSS) for an SVG element or a MATH element, as demonstrated by Chrome and Safari.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-chqj-j4fh-rw7mCross-Site Scripting in dompurify2020-08-28ghsa · osvUS
Versions of `dompurify` prior to 2.0.3 are vulnerable to Cross-Site Scripting (XSS). The package has an XSS filter bypass due to Mutation XSS in both Chrome and Safari through a combination of `<svg>`/`<math>` elements and `</p>`/`</br>`. An example payload is: `<svg></p><style><a id="</style><img src=1 onerror=alert(1)>">`. This allows attackers to bypass the XSS protection and execute arbitrary JavaScript in a victim's browser. ## Recommendation Upgrade to version 2.0.3 or later. You may also disallow `<svg>` and `<math>` through `dompurify` configurations: ```DOMPurify.sanitize(input, { FORBID_TAGS: ['svg', 'math'] });```
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://github.com/cure53/DOMPurifyPatchcnnvd
- https://lists.debian.org/debian-lts-announce/2020/10/msg00029.htmlcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2019-16728cnnvd
- https://research.securitum.com/dompurify-bypass-using-mxss/cnnvd
- https://vigilance.fr/vulnerability/DOMPurify-Cross-Site-Scripting-via-InnerHTML-Mutation-33736cnnvd
- https://www.auscert.org.au/bulletins/ESB-2020.3744/cnnvd
- https://lists.debian.org/debian-lts-announce/2020/10/msg00029.htmlenisa_euvd
- https://research.securitum.com/dompurify-bypass-using-mxss/enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan