Reflected cross-site scripting (XSS) In node-dompurify
Description
DOMPurify before 3.4.12 fails to execute afterSanitizeElements hook for custom elements allowed via CUSTOM_ELEMENT_HANDLING.tagNameCheck, allowing attributes to bypass application security policies. Attackers can preserve sensitive attributes on custom elements that later re-inject them into innerHTML sinks, creating second-order XSS gadgets.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
npm | 3.4.12 | ||
debian 12 | - | ||
rpm rhel8 | - | - | |
rpm rhel10 | - | - | |
rpm rhel10 | - | - | |
rpm rhel10 | - | - | |
debian 14 | 3.4.12+dfsg-1 | ||
debian 13 | - | ||
rpm rhel10 | - | - | |
rpm rhel9 | - | - |
Aliases
1. 2. 3. 4. 5. 6. 7.
References
1. 2. 3. 4. 5.