Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-41238 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

Description

DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions 3.0.1 through 3.3.3 are vulnerable to a prototype pollution-based XSS bypass. When an application uses `DOMPurify.sanitize()` with the default configuration (no `CUSTOM_ELEMENT_HANDLING` option), a prior prototype pollution gadget can inject permissive `tagNameCheck` and `attributeNameCheck` regex values into `Object.prototype`, causing DOMPurify to allow arbitrary custom elements with arbitrary attributes — including event handlers — through sanitization. Version 3.4.0 fixes the issue.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-1321Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')[email protected]
CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')[email protected]

Affected Products

ProductVersions
cure53 DOMPurify
>= 3.0.1, <= 3.3.3 (semver)

CPE

  • cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*

Remediation

  • Upgrade: 3.4.0moderate effort
  • Workaround:low effort

    Always provide an explicit CUSTOM_ELEMENT_HANDLING in the DOMPurify configuration: DOMPurify.sanitize(input, { CUSTOM_ELEMENT_HANDLING: { tagNameCheck: null, attributeNameCheck: null } });

Change History

4 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-41238
NVD Published Date:
Apr 23, 2026
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]