CVE-2026-65898

HIGH

DOMPurify before 3.4.11 Permanent Attribute Allowlist Pollution via setConfig

Title source: cna
STIX 2.1

Description

DOMPurify before 3.4.11 fails to clone the ALLOWED_ATTR allowlist when setConfig() is used with an uponSanitizeAttribute hook, allowing the hook to permanently mutate the shared allowlist. Attackers can register a hook that conditionally allows dangerous attributes like onerror for trusted elements, then submit untrusted content that inherits the polluted allowlist and executes event handlers as stored XSS.

References (2)

Core 2
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory (GHSA-cmwh-pvxp-8882)
https://github.com/cure53/DOMPurify/security/advisories/GHSA-cmwh-pvxp-8882
Third Party Advisory third-party-advisory
VulnCheck Advisory: DOMPurify before 3.4.11 Permanent Attribute Allowlist Pollution via setConfig
https://www.vulncheck.com/advisories/dompurify-before-permanent-attribute-allowlist-pollution-via-setconfig

Scores

CVSS v3 7.2
EPSS 0.0017
EPSS Percentile 6.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-79
Status published
Products (4)
cure53/DOMPurify < 3.4.11
cure53/dompurify < 3.4.11
cure53/DOMPurify 3.4.11
npm/dompurify 0 - 3.4.11npm
Published Jul 23, 2026
Tracked Since Jul 23, 2026