Intel

AIKIDO-2024-10525

dompurify is vulnerable to Improper Input Validation

Improper Input Validation Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 9, 2024

42

Medium Risk

This Affects:

JSdompurify
1.0.0 - 2.5.7
Fixed in 2.5.8
3.0.0 - 3.2.2
Fixed in 3.2.3
Are you affected? Scan for Free

TL;DR

Affected versions of this package fail to properly sanitize HTML files in certain scenarios, allowing attackers to craft files where the attributes of specific elements bypass the sanitation process. This weakness can be exploited to introduce malicious data or execute attacks such as Cross-site Scripting (XSS), or other injection-based vulnerabilities.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

dompurify is vulnerable to Improper Input Validation in versions 1.0.0 - 2.5.7 and 3.0.0 - 3.2.2.

How to fix this

Upgrade the dompurify library to a patch version.