Intel

AIKIDO-2026-36958

dompurify is vulnerable to Improper Input Validation

Improper Input ValidationGHSA-cmwh-pvxp-8882 Published 5 days ago

38

Low Risk

This Affects:

JSdompurify
3.0.6 - 3.4.10
Fixed in 3.4.11
Are you affected? Scan for Free

TL;DR

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.

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 3.0.6 - 3.4.10.

How to fix this

Upgrade the dompurify library to the patch version.