Intel

AIKIDO-2026-36958

dompurify is vulnerable to Improper Input Validation

CVE-2026-65898Published Jun 17, 2026
June 17, 2026

38

CVE Score

Low

Improper Input Validation

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.

How do I fix this?

Upgrade the dompurify library to the patch version.

Who does this affect?

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

Package

Versions

3.0.6 - 3.4.10

Fixed in 3.4.11

Background info

dompurify is vulnerable to Improper Input Validation in versions 3.0.6 - 3.4.10.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea