Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-65902 EUVD-2026-48271GHSA-76mc-f452-cxcm

DOMPurify before 3.4.7 Hook Mutation Pollution via allowedTags

Published Jul 23, 2026 · Updated Oct 29, 2026 · Assigned by VulnCheck

Description

DOMPurify before 3.4.7 passes direct references to the module-level DEFAULT_ALLOWED_TAGS and DEFAULT_ALLOWED_ATTR sets to the uponSanitizeElement and uponSanitizeAttribute hooks via data.allowedTags / data.allowedAttributes when sanitize is called without an explicit cfg.ALLOWED_TAGS / cfg.ALLOWED_ATTR array. A hook that mutates these fields permanently widens the default allow-lists for the lifetime of the DOMPurify instance, so all subsequent default-config sanitize calls inherit the widened defaults and attacker payloads using the poisoned tag/attribute name survive sanitization. removeAllHooks(), clearConfig(), and passing a fresh cfg do not recover the state; only constructing a new DOMPurify instance does.

Affected products

VendorProductAffectedFixed
cure53 DOMPurify < 3.4.7 3.4.7

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-dompurify 3.4.12+dfsg-1 —
Debian 13 node-dompurify No fix yet —
Debian 12 node-dompurify No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS node-dompurify No fix yet —
Ubuntu 24.04 LTS node-dompurify No fix yet —
Ubuntu 22.04 LTS node-dompurify No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 grafana12.4 12.4.8-0.1.2.hum1 RHSA-2026:58500
Red Hat Hardened Images 1 grafana13.1 13.1.3-0.1.3.hum1 RHSA-2026:58502

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3-compat 3.225.7-r6 —
Wolfi rolling langfuse-3-worker 3.191.0-r0 —
Wolfi rolling nextcloud-server-33 33.0.6-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm dompurify < 3.4.7 3.4.7 GHSA-76mc-f452-cxcm

Advisories 2

References