MEDIUM6.1
GHSA-8hgg-xxm5-3873
DOMPurify Open Redirect vulnerability
Quick fix
GHSA-8hgg-xxm5-3873 — dompurify: upgrade to the fixed version with the command below.
npm install dompurify@1.0.11Details
DOMPurify before 1.0.11 allows reverse tabnabbing in demos/hooks-target-blank-demo.html because links lack a 'rel="noopener noreferrer"' attribute.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-25155[ADVISORY]
- https://github.com/cure53/DOMPurify/pull/337[WEB]
- https://github.com/cure53/DOMPurify/commit/7601c33a57e029cce51d910eda5179a3f1b51c83[WEB]
- https://github.com/cure53/DOMPurify[PACKAGE]
- https://github.com/cure53/DOMPurify/compare/1.0.10...1.0.11[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:npm/dompurify"]}'