CVE-2026-65913

DOMPurify before 3.3.2 Prototype Pollution via USE_PROFILES

Published Jul 23, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-1321

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:24 PM
Reserved
Jul 23, 2026, 12:51 PM
Status
Analyzed
Published
Jul 23, 2026, 2:18 PM
Modified
Oct 24, 2026, 1:10 PM