CVE-2026-65914

DOMPurify before 3.3.2 Mutation XSS via Re-Contextualization

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

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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

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

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

Weaknesses
  • CWE-79

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

Sources

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