Description
DOMPurify before 3.3.2 contains a prototype pollution vulnerability in USE_PROFILES mode that allows attackers to bypass attribute filtering by polluting Array.prototype properties. Attackers can set Array.prototype properties like onclick to true, causing DOMPurify to accept event handlers as allowlisted attributes and resulting in DOM-based XSS when sanitized markup is rendered.
Published: 2026-07-23
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

DOMPurify before version 3.3.2 is vulnerable to prototype pollution when the USE_PROFILES mode is enabled. By adding properties such as onclick to Array.prototype with a truthy value, an attacker tricks the sanitizer into treating event handler attributes as allowlisted. When the altered markup is subsequently rendered, the browser executes the injected script, resulting in a DOM-based cross‑site scripting vulnerability.

Affected Systems

The vulnerability affects the DOMPurify library supplied by cure53. All releases older than 3.3.2 that enable the USE_PROFILES feature are potentially impacted. Users who rely on DOMPurify to sanitize user or third‑party content must ensure they are not running a vulnerable version.

Risk and Exploitability

The product carries a CVSS score of 5.1, indicating moderate severity, and the EPSS score is reported as less than 1%, implying a low likelihood of widespread exploitation at present. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is client‑side input processed by DOMPurify in USE_PROFILES mode, such as maliciously crafted HTML fragments sent via a web form or embedded content. Attackers would need to embed a profile that pollutes Array.prototype before the sanitizer runs.

Generated by OpenCVE AI on August 3, 2026 at 21:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade DOMPurify to version 3.3.2 or later to remove the prototype pollution issue.
  • If upgrading cannot be performed immediately, disable the USE_PROFILES mode or replace it with a minimal custom profile that excludes event handler attributes.
  • Configure a stricter attribute whitelist by disallowing all event handlers and validating user‑supplied content before sanitization.

Generated by OpenCVE AI on August 3, 2026 at 21:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-cj63-jhhr-wcxv DOMPurify USE_PROFILES prototype pollution allows event handlers
History

Thu, 23 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 23 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Description DOMPurify before 3.3.2 contains a prototype pollution vulnerability in USE_PROFILES mode that allows attackers to bypass attribute filtering by polluting Array.prototype properties. Attackers can set Array.prototype properties like onclick to true, causing DOMPurify to accept event handlers as allowlisted attributes and resulting in DOM-based XSS when sanitized markup is rendered.
Title DOMPurify before 3.3.2 Prototype Pollution via USE_PROFILES
First Time appeared Cure53
Cure53 dompurify
Weaknesses CWE-1321
CPEs cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*
Vendors & Products Cure53
Cure53 dompurify
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

Cure53 Dompurify
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-23T13:38:31.668Z

Reserved: 2026-07-23T12:51:09.595Z

Link: CVE-2026-65913

cve-icon Vulnrichment

Updated: 2026-07-23T13:38:22.434Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-23T14:18:06.573

Modified: 2026-07-28T15:50:09.337

Link: CVE-2026-65913

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T21:45:03Z

Weaknesses
  • CWE-1321

    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')