Packages / dompurify / Security
CriticalVulnerabilityGHSA-mjjq-c88q-qhr6Published 3 Sep 2020
Cross-Site Scripting in dompurify
Affected releases · dompurify
- 2.x2.0.0 – 2.0.6Fixed in 2.0.7
- 1.x and older0.4.0 – 1.1.1No fix, no longer updated
On 2.x, the newest line:
npm install dompurify@2.0.73.x
Not affected
3.0.0 – 3.4.17
50 releases, latest
2.x
Affected
2.0.0 – 2.0.6
7 releases
Fixed
2.0.7 – 2.5.9
56 releases
1.x
Affected
1.0.0 – 1.1.1
14 releases
0.x
Affected
0.4.0 – 0.9.0
29 releases
Is your project affected?
Paste your package.json, or type the range you declare for dompurify. It is read in your browser and sent nowhere.
What happens
Versions of dompurify prior to 2.0.7 are vulnerable to Cross-Site Scripting (XSS). It is possible to bypass the package sanitization through Mutation XSS, which may allow an attacker to execute arbitrary JavaScript in a victim's browser.
Recommendation
Upgrade to version 2.0.7 or later.