Intel

AIKIDO-2026-514793

dompurify is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 5 days ago

47

Medium Risk

This Affects:

JSdompurify
3.4.14 - 3.4.14
Fixed in 3.4.15
Are you affected? Scan for Free

TL;DR

DOMPurify removes disallowed attributes by calling removeAttributeNode on the element, but a form descendant named removeAttributeNode or getAttributeNode shadows that method through [LegacyOverrideBuiltIns], so the call throws. The code falls back to name based removeAttribute, which ASCII-lowercases its lookup key in an HTML document and skips a case preserved event handler attribute such as ONANIMATIONSTART that entered through an XML/XHTML parse. The rejected handler survives sanitization and runs in the browser. The fix removes the attribute through a cached Element.prototype.removeAttributeNode and flags forms that clobber removeAttributeNode/getAttributeNode so they are removed.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you sanitize DOM parsed from XML/XHTML input that can carry case preserved event handler attributes.

Background info

dompurify is vulnerable to Cross-Site Scripting (XSS) in versions 3.4.14 - 3.4.14.

How to fix this

Upgrade the dompurify library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform