Description
DOMPurify before 3.3.2 contains a mutation-XSS vulnerability when sanitized HTML is reinserted into special parsing contexts using innerHTML with wrappers like script, xmp, iframe, noembed, noframes, or noscript. Attackers can craft payloads with closing sequences that break out of the wrapper context during reparsing, reactivating dangerous markup with event handlers to execute JavaScript.
Published: 2026-07-23
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

DOMPurify versions older than 3.3.2 suffer a mutation‑XSS flaw in which sanitized HTML that is later re‑inserted into special parsing contexts (such as script, xmp, iframe, noembed, noframes, or noscript) can be crafted with closing delimiters to break out of the wrapper during reparsing. The resulting reactivation of dangerous markup, including event handlers, allows an attacker to execute arbitrary JavaScript in the victim’s browser, compromising the integrity and confidentiality of the web application and its users. This is a classic DOM‑based injection flaw labeled CWE‑79.

Affected Systems

Any installation of cure53:DOMPurify published before version 3.3.2 is affected. Applications that embed this library and subsequently insert sanitized content into the special wrapper contexts enumerated above are at risk. The vulnerability does not apply to later releases of the library.

Risk and Exploitability

The CVSS score of 5.3 indicates a medium severity, while the EPSS score of less than 1% suggests a very low current exploitation likelihood. The issue is not listed in the CISA KEV catalog, further implying limited publicly documented active exploitation. Attackers would need to supply sanitized input that is later re‑inserted into one of the vulnerable wrapper contexts via innerHTML. The attack vector is therefore DOM‑based XSS and is limited to environments that perform such re‑insertion. Nonetheless, achieving arbitrary script execution can lead to session hijacking, data theft, or defacement.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade DOMPurify to version 3.3.2 or later
  • Disable or replace all innerHTML insertions that use script, xmp, iframe, noembed, noframes, or noscript wrappers; instead use safer DOM methods or server‑side sanitization
  • If an upgrade is not immediately possible, remove any use of re‑insertion of sanitized content or enforce strict content‑security policies to block injected scripts

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

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-h8r8-wccr-v5f2 DOMPurify is vulnerable to mutation-XSS via Re-Contextualization
History

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

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', '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 mutation-XSS vulnerability when sanitized HTML is reinserted into special parsing contexts using innerHTML with wrappers like script, xmp, iframe, noembed, noframes, or noscript. Attackers can craft payloads with closing sequences that break out of the wrapper context during reparsing, reactivating dangerous markup with event handlers to execute JavaScript.
Title DOMPurify before 3.3.2 Mutation XSS via Re-Contextualization
First Time appeared Cure53
Cure53 dompurify
Weaknesses CWE-79
CPEs cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*
Vendors & Products Cure53
Cure53 dompurify
References
Metrics cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/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:57:53.241Z

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

Link: CVE-2026-65914

cve-icon Vulnrichment

Updated: 2026-07-23T13:57:49.830Z

cve-icon NVD

Status : Analyzed

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

Modified: 2026-07-28T15:49:47.713

Link: CVE-2026-65914

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T21:30:05Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')