CriticalGHSA-mjjq-c88q-qhr6
Cross-Site Scripting in dompurify
Published 3 Sept 2020 · Updated 29 Sept 2021
Affected package
dompurifynpm
- Affected
- <2.0.7
- Fixed in
- 2.0.7
Update to the fixed version for your release line, for example:
npm install dompurify@2.0.7Details
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.
Is GHSA-mjjq-c88q-qhr6 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected dompurify, and gives you the command that fixes it.
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.