PT-2026-34604 · Dompurify · Dompurify

Kodareef5

·

Published

2026-04-22

·

Updated

2026-05-29

·

CVE-2026-41240

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions DOMPurify versions prior to 3.4.0
Description An inconsistency exists between the handling of FORBID TAGS and FORBID ATTR when a function-based ADD TAGS configuration is used. Specifically, when the EXTRA ELEMENT HANDLING.tagCheck function returns true, a short-circuit evaluation occurs that bypasses the FORBID TAGS check. This allows forbidden elements, such as iframe, object, embed, and form, to bypass sanitization and remain in the output with their attributes intact.
Recommendations Update to version 3.4.0.

Exploit

Fix

XSS

Weakness Enumeration

Related Identifiers

CLEANSTART-2026-BE61221
CLEANSTART-2026-LC05413
CVE-2026-41240
GHSA-H7MW-GPVR-XQ4M
OPENSUSE-SU-2026:10888-1

Affected Products

Dompurify