CVE-2026-65902
published 2026-07-23CVE-2026-65902: DOMPurify before 3.4.7 (affected versions <= 3.4.5) passes direct references to the module-level DEFAULT_ALLOWED_TAGS and DEFAULT_ALLOWED_ATTR sets to the…
PriorityP430medium6.1CVSS 3.1
AVNACLPRNUIRSCCLILAN
EPSS
0.36%
28.0th percentile
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| cure53 | dompurify | < 3.4.7 | 3.4.7 |
CVSS provenance
nvdv3.16.1MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
nvdv4.05.3MEDIUMCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vendor_redhat6.1MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
dompurify: DOMPurify: Sanitization bypass via hook manipulation
vendor_redhat·2026-07-23·CVSS 6.1
CVE-2026-65902 [MEDIUM] CWE-915 dompurify: DOMPurify: Sanitization bypass via hook manipulation
dompurify: DOMPurify: Sanitization bypass via hook manipulation
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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
VulDB
DOMPurify up to 3.4.5 Hooks sanitize allowedTags/allowedAttributes Remote Code Execution (EUVD-2026-48271)
vuldb·2026-07-25·CVSS 6.1
CVE-2026-65902 [MEDIUM] DOMPurify up to 3.4.5 Hooks sanitize allowedTags/allowedAttributes Remote Code Execution (EUVD-2026-48271)
A vulnerability classified as critical was found in DOMPurify up to 3.4.5. This impacts the function sanitize of the component Hooks. Executing a manipulation of the argument allowedTags/allowedAttributes can lead to Remote Code Execution.
This vulnerability is tracked as CVE-2026-65902. The attack can be launched remotely. No exploit exists.
Upgrading the affected component is advised.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2026-65902 openbao: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 openbao: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
CVE-2026-65902 openbao: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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-
Bugzilla
CVE-2026-65902 jupyterlab: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 jupyterlab: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
CVE-2026-65902 jupyterlab: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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 def
Bugzilla
CVE-2026-65902 grafana: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 grafana: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
CVE-2026-65902 grafana: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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 defaul
Bugzilla
CVE-2026-65902 forgejo: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 forgejo: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
CVE-2026-65902 forgejo: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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 defaul
Bugzilla
CVE-2026-65902 nextcloud: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 nextcloud: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
CVE-2026-65902 nextcloud: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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 defa
Bugzilla
CVE-2026-65902 openbao: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 openbao: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
CVE-2026-65902 openbao: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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 defaul
Bugzilla
CVE-2026-65902 fbthrift: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 fbthrift: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
CVE-2026-65902 fbthrift: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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
Bugzilla
CVE-2026-65902 forgejo: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 forgejo: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
CVE-2026-65902 forgejo: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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-
Bugzilla
CVE-2026-65902 cachelib: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 cachelib: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
CVE-2026-65902 cachelib: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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 defau
Bugzilla
CVE-2026-65902 nextcloud: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 nextcloud: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
CVE-2026-65902 nextcloud: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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 defaul
Bugzilla
CVE-2026-65902 cachelib: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 cachelib: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
CVE-2026-65902 cachelib: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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
Bugzilla
CVE-2026-65902 ansible-collection-awx-awx: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 ansible-collection-awx-awx: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
CVE-2026-65902 ansible-collection-awx-awx: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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
Bugzilla
CVE-2026-65902 fbthrift: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 fbthrift: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
CVE-2026-65902 fbthrift: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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 defau
Bugzilla
CVE-2026-65902 jupyterlab: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
bugzilla·2026-08-20·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 jupyterlab: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
CVE-2026-65902 jupyterlab: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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 defau
Bugzilla
CVE-2026-65902 dompurify: DOMPurify: Sanitization bypass via hook manipulation
bugzilla·2026-07-23·CVSS 6.1
CVE-2026-65902 [MEDIUM] CVE-2026-65902 dompurify: DOMPurify: Sanitization bypass via hook manipulation
CVE-2026-65902 dompurify: DOMPurify: Sanitization bypass via hook manipulation
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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
https://github.com/cure53/DOMPurify/commit/7996f1dc78eb8b7922388aed75d94a9f8fad9a36https://github.com/cure53/DOMPurify/security/advisories/GHSA-76mc-f452-cxcmhttps://www.vulncheck.com/advisories/dompurify-before-hook-mutation-pollution-via-allowedtagshttps://github.com/cure53/DOMPurify/security/advisories/GHSA-76mc-f452-cxcm
2026-07-23
Published