Description
DOMPurify before 3.4.17 contains a cross-site scripting vulnerability that allows attackers to bypass the SMIL attributeName=href guard when PARSER_MEDIA_TYPE is application/xhtml+xml, because transformCaseFunc does not lowercase attribute names. Attackers can submit SVG with an animate or set element using attributeName="href" and a javascript: entry in values to execute script when users click the sanitized link.
Published: 2026-10-26
Score: 5.1 Medium
EPSS: n/a
KEV: No
Impact: Cross‑site scripting via attributeName guard bypass
Action: Apply Patch
AI Analysis

Impact

The vulnerability exists in DOMPurify versions prior to 3.4.17 and is a cross‑site scripting flaw that permits attackers to bypass the SMIL attributeName=href guard when the parser media type is application/xhtml+xml. A malicious craft can embed an SVG that contains an animate or set element with attributeName="href" pointing to a javascript: URL. When a user clicks the sanitized link, the browser executes the script, allowing the attacker to run arbitrary code in the context of the affected site.

Affected Systems

This flaw affects all installations of DOMPurify from the cure53 vendor that use a version earlier than 3.4.17. There is no further version granularity provided; any pre‑3.4.17 build is potentially vulnerable.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate impact. While the EPSS score is not available, the issue is not listed in the CISA KEV catalog, suggesting limited public exploitation. The attack requires that the application processes user supplied SVG via DOMPurify in XHTML mode, meaning an attacker can achieve XSS by submitting crafted SVG content that bypasses the attribute guard. The resulting script execution can lead to theft of session data, defacement, or further lateral movement, depending on the context in which sanitized content is rendered.

Generated by OpenCVE AI on October 27, 2026 at 07:02 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to DOMPurify version 3.4.17 or later, which ensures attribute names are lowercased and the SMIL guard is enforced.
  • Reconfigure the application to avoid using the application/xhtml+xml parser media type if XHTML mode is unnecessary, or set DOMPurify to a stricter configuration that disallows SMIL elements.
  • If an upgrade cannot be performed immediately, restrict the use of SVG or disable SMIL support by explicitly whitelisting only safe elements and attributes in DOMPurify’s configuration.

Generated by OpenCVE AI on October 27, 2026 at 07:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 27 Oct 2026 04:30:00 +0000

Type Values Removed Values Added
Description DOMPurify before 3.4.17 contains a cross-site scripting vulnerability that allows attackers to bypass the SMIL attributeName=href guard when PARSER_MEDIA_TYPE is application/xhtml+xml, because transformCaseFunc does not lowercase attribute names. Attackers can submit SVG with an animate or set element using attributeName="href" and a javascript: entry in values to execute script when users click the sanitized link.
Title DOMPurify before 3.4.17 XSS via SMIL attributeName Guard Bypass in XHTML Mode
First Time appeared Cure53
Cure53 dompurify
Weaknesses CWE-79
CPEs cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*
Vendors & Products Cure53
Cure53 dompurify
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/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-10-26T23:05:34.457Z

Reserved: 2026-10-26T22:13:13.605Z

Link: CVE-2026-116802

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-27T00:17:11.637

Modified: 2026-10-27T00:17:11.637

Link: CVE-2026-116802

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-27T07:15:08Z

Weaknesses
  • CWE-79

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