Description
Jodit Editor is a WYSIWYG editor with a built-in file browser & image editor. In versions prior to 4.12.28, the built-in clean-html sanitizer can be bypassed by a MathML/<style> carrier that hides a dangerous element from the sanitizer's element walk, so a no-interaction event handler survives into the editor value, potentially causing Mutation XSS. When an application supplies attacker-influenced HTML to the editor's value-set or insertion paths, the sanitized output still contains a live <img ... onload=...> (or another non-onerror handler such as onfocus). A consumer that renders that output (element.innerHTML = editor.value) executes the handler with no user interaction. This issue has been fixed in version 4.12.28.
Published: 2026-07-01
Score: 7.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Jodit Editor built‑in clean‑html sanitizer can be bypassed by MathML or style elements that conceal a dangerous tag from the element traversal. This allows an attacker to embed an <img> tag with an onload attribute or other non‑onerror handler such that the handler survives sanitization and is stored in the editor’s value. When the application later renders that sanitized value with innerHTML, the invisible event handler executes automatically with no user interaction, delivering a mutation XSS attack. The vulnerability is classified as CWE‑79 (Cross‑Site Scripting) and CWE‑83 (XSS via Shadowed Syntax).

Affected Systems

All releases of the Jodit Editor from the xdan vendor dated before version 4.12.28 are affected. Any deployment that accepts attacker‑controlled HTML into the editor’s value‑setting or insertion APIs and later renders that content as innerHTML is vulnerable.

Risk and Exploitability

The CVSS score of 7.2 classifies this issue as high severity, while the EPSS score of under 1% indicates a low likelihood of exploitation at the time of this analysis. The vulnerability is not listed in the CISA KEV catalog. Execution of the embedded event handler requires no user interaction; an attacker can trigger it automatically on any exposed input surface, making the risk significant for exposed applications. The attack vector involves supplying crafted HTML to the editor and having the application render that content directly with innerHTML or an equivalent method.

Generated by OpenCVE AI on August 3, 2026 at 05:57 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Jodit Editor to version 4.12.28 or later to apply the fixed sanitizer.
  • Strip or disallow MathML and style elements in any input that reaches the editor so that hidden event handlers cannot be carried forward.
  • Enforce a strict Content Security Policy that disallows inline event handlers and restricts script execution to trusted origins.

Generated by OpenCVE AI on August 3, 2026 at 05:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-rxcw-mc6f-6hr3 Jodit Editor: Mutation XSS in jodit clean-html via a MathML/style rawtext carrier
History

Fri, 31 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
Description Jodit Editor is a WYSIWYG editor with written in pure TypeScript file and image editing capabilities. In versions prior to 4.12.28, the built-in clean-html sanitizer can be bypassed by a MathML/<style> carrier that hides a dangerous element from the sanitizer's element walk, so a no-interaction event handler survives into the editor value, potentially causing Mutation XSS. When an application supplies attacker-influenced HTML to the editor's value-set or insertion paths, the sanitized output still contains a live <img ... onload=...> (or another non-onerror handler such as onfocus). A consumer that renders that output (element.innerHTML = editor.value) executes the handler with no user interaction. This issue has been fixed in version 4.12.28. Jodit Editor is a WYSIWYG editor with a built-in file browser & image editor. In versions prior to 4.12.28, the built-in clean-html sanitizer can be bypassed by a MathML/<style> carrier that hides a dangerous element from the sanitizer's element walk, so a no-interaction event handler survives into the editor value, potentially causing Mutation XSS. When an application supplies attacker-influenced HTML to the editor's value-set or insertion paths, the sanitized output still contains a live <img ... onload=...> (or another non-onerror handler such as onfocus). A consumer that renders that output (element.innerHTML = editor.value) executes the handler with no user interaction. This issue has been fixed in version 4.12.28.

Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Xdan
Xdan jodit
Vendors & Products Xdan
Xdan jodit

Wed, 01 Jul 2026 21:15:00 +0000

Type Values Removed Values Added
Description Jodit Editor is a WYSIWYG editor with written in pure TypeScript file and image editing capabilities. In versions prior to 4.12.28, the built-in clean-html sanitizer can be bypassed by a MathML/<style> carrier that hides a dangerous element from the sanitizer's element walk, so a no-interaction event handler survives into the editor value, potentially causing Mutation XSS. When an application supplies attacker-influenced HTML to the editor's value-set or insertion paths, the sanitized output still contains a live <img ... onload=...> (or another non-onerror handler such as onfocus). A consumer that renders that output (element.innerHTML = editor.value) executes the handler with no user interaction. This issue has been fixed in version 4.12.28.
Title Jodit Editor: Mutation XSS in jodit clean-html via a MathML/style rawtext carrier
Weaknesses CWE-79
CWE-83
References
Metrics cvssV3_1

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-31T19:07:55.917Z

Reserved: 2026-06-29T21:54:30.331Z

Link: CVE-2026-58263

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-07-01T21:17:04.340

Modified: 2026-07-31T20:16:52.600

Link: CVE-2026-58263

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T06:00:12Z

Weaknesses
  • CWE-79

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

  • CWE-83

    Improper Neutralization of Script in Attributes in a Web Page