dompurify is vulnerable to Improper Input Validation
38
Low Risk
dompurify configuration and hook handling could allow security-sensitive allowlists to be silently widened and persist across later sanitization calls, weakening the intended filtering behavior. It also accepted attacker-controlled hook entry point keys without verifying they were own properties, creating a prototype pollution risk. Together, these flaws could let unsafe HTML or attributes survive sanitization and lead to DOM-based XSS. An attacker might exploit this by influencing hook registration or sanitizer configuration so that malicious content is treated as allowed, then injecting crafted payloads that execute JavaScript in a victim’s browser.
You are affected if you are using a version that falls within the vulnerable range.
dompurify is vulnerable to Improper Input Validation in versions 3.0.6 - 3.4.10.
Upgrade the dompurify library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant