CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-58263

CVE-2026-58263: Mutation Cross-Site Scripting (mXSS) in Jodit Editor clean-html Sanitizer

Amit Schendel
Amit Schendel
Senior Security Researcher

Aug 1, 2026·6 min read·50 visits

Executive Summary (TL;DR)

Unauthenticated remote mutation cross-site scripting (mXSS) in Jodit Editor < 4.12.28 allows attackers to bypass HTML sanitization and execute arbitrary JavaScript by leveraging parser differentials between the inert sanitization sandbox and the live editor DOM.

CVE-2026-58263 is a high-severity Mutation Cross-Site Scripting (mXSS) vulnerability affecting Jodit Editor prior to version 4.12.28. The flaw exists in Jodit's built-in clean-html sanitizer plugin, which fails to securely parse and sanitize nested elements containing foreign namespaces like MathML and SVG. Attackers can bypass sanitization by smuggling malicious payload elements inside rawtext container tags like style inside a MathML node, leading to DOM mutation and unauthenticated arbitrary script execution in the context of the user's browser session.

Vulnerability Overview

Jodit Editor is a client-side, browser-based WYSIWYG editor containing advanced text processing, image, and file management functions. To protect against malicious cross-site scripting vectors, the application exposes a built-in input sanitization engine via the clean-html plugin. This plugin processes untrusted HTML inputs, aiming to neutralize malicious tags and properties prior to rendering.\n\nThe attack surface exists on the client-side parsing interface where rich text is processed. By leveraging the discrepancy in how different browser engines handle parsing state transitions, attackers can exploit CVE-2026-58263 to bypass the sanitization process entirely. The vulnerability belongs to the Mutation Cross-Site Scripting class, specifically involving the abuse of foreign namespaces like MathML and SVG combined with HTML elements that transition the parsing engine's parsing rules.\n\nThe consequences of this vulnerability are severe. Successful exploitation results in the execution of arbitrary JavaScript code within the victim's browser context. This execution is achieved with zero user interaction upon the rendering of the poisoned HTML within the Jodit Editor window.

Root Cause Analysis

Mutation Cross-Site Scripting relies on a parsing differential between the inert DOM structure utilized by a sanitizer and the live DOM structure initialized by the browser when displaying content. During the sanitization phase, Jodit places the raw HTML inside an inert container, such as a template element or an offline document fragment, to prevent execution. The sanitizer then walks the resulting DOM tree to inspect and purge non-whitelisted tags or event attributes.\n\nIn the vulnerable versions of Jodit Editor, the clean-html sanitizer does not account for the structural mutation rules dictated by the HTML5 parsing specification when nesting HTML elements inside foreign namespaces. When the browser parser encounters a math or svg tag, it transitions into a foreign content parsing mode. In this mode, tags like style are not treated as standard HTML RAWTEXT elements, but are parsed according to MathML parsing behaviors.\n\nBy nesting a table and rawtext elements such as style within a MathML element like mtext, the attacker constructs a payload that changes its structure during parsing and serialization. In the inert sandbox, the nested img node is viewed as harmless raw text inside the style tag. Jodit's DOM walker fails to detect the element because it exists purely as a text node at that stage.\n\nDuring serialization, Jodit extracts the content as a string using element.innerHTML. When the host application parses this serialized string a second time to render it in the live DOM, the HTML5 foster-parenting rules trigger. The browser parser detects the invalid nesting of a table structure within the MathML namespace, prematurely exits the MathML context, and hoists the nested nodes. The previously inert text inside the style block is parsed as a real HTML image tag, restoring its event attributes and executing the payload.\n\nmermaid\ngraph LR\n A["Poisoned Payload Input"] --> B["Inert DOM Parsing"]\n B --> C["Sanitization Walk"]\n C --> D["HTML String Serialization"]\n D --> E["Live DOM Insertion"]\n E --> F["Foster-Parenting Breakout"]\n F --> G["Active XSS Execution"]\n

Code Analysis

To understand the mechanical breakdown of this vulnerability, we must examine the implementation of Jodit's sanitizer. The vulnerable component failed to validate elements nested within foreign namespaces before traversing the tree for event attributes. This omission allowed structural elements to bypass sanitization in an inert text state.\n\nThe fix introduced in version 4.12.28 implements a proactive detection pass before the main tree walk. It identifies smuggled HTML elements that are incorrectly nested within foreign content contexts. The following typescript snippet highlights the validation logic implemented in the patch:\n\ntypescript\nconst HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n\nconst HTML_INTEGRATION_POINTS = new Set([\n\t'foreignobject',\n\t'annotation-xml',\n\t'desc',\n\t'title'\n]);\n\nfunction isSmuggledForeignHtml(elm: Element): boolean {\n\tif (elm.namespaceURI !== HTML_NAMESPACE || elm.closest('math,svg') === null) {\n\t\treturn false;\n\t}\n\n\tfor (let parent = elm.parentElement; parent; parent = parent.parentElement) {\n\t\tconst name = parent.nodeName.toLowerCase();\n\n\t\tif (name === 'math' || name === 'svg') {\n\t\t\tbreak;\n\t\t}\n\n\t\tif (HTML_INTEGRATION_POINTS.has(name)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\n\n\nBefore executing the standard sanitization walk, the patch queries all child elements of math and svg containers. Any element determined to be smuggled foreign HTML is removed safely from the tree. This prevents the browser's live parser from encountering the nested table structure that triggers foster-parenting during serialization and subsequent rendering.

Exploitation Methodology

Exploitation of CVE-2026-58263 does not require authentication or complex configurations. The attacker must only possess the ability to submit structured HTML content to an endpoint or an interface rendered within the Jodit WYSIWYG editor.\n\nThe core of the payload relies on the browser's implementation of error-recovery algorithms. By structuring the markup with math, mtext, table, mglyph, and style tags, the parser's state is manipulated. Inside the style container, the attacker places a raw image tag with inline execution attributes.\n\nhtml\n<math>\n <mtext>\n <table>\n <mglyph>\n <style>\n <img src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' onload='alert(document.domain)' onerror='alert(document.domain)' onfocus='alert(document.domain)' autofocus tabindex='0'>\n </style>\n </mglyph>\n </table>\n </mtext>\n</math>\n\n\nWhen this input is serialized, the output string remains structurally identical. However, when the live browser engine executes the assignment to innerHTML, the nesting rules are evaluated. The presence of the table element forces the parser to eject from the MathML context and process the downstream tokens as standard HTML. The img tag is hoisted out of the style block and parsed into a live node, immediately triggering the onload, onerror, or onfocus attributes.

Impact Assessment

The impact of this vulnerability is classified as high, carrying a CVSS base score of 7.2. Since the payload executes inside the client-side browser environment, the immediate consequence is the arbitrary execution of JavaScript in the context of the victim's session. This allows for session hijacking, local storage data extraction, and unauthorized action execution on behalf of the user.\n\nThe scope of the vulnerability is changed, reflecting that compromise of the editor's sandboxed parsing environment leads directly to compromise of the surrounding web application. This vector bypasses traditional client-side mitigations like basic HTML sanitizers and simple input sanitization filters.\n\nAdditionally, although the EPSS score indicates low active exploitation in the wild, the publication of the proof of concept in unit tests lowers the barrier to entry for constructing functional exploits. Applications using Jodit to display user-generated rich text are at direct risk of client-side compromise.

Remediation and Mitigation Guidance

Remediation of CVE-2026-58263 requires updating the Jodit Editor deployment to version 4.12.28 or above. This version contains the isSmuggledForeignHtml check inside the safeHTML module, which stops the serialization of hazardous nested namespaces.\n\nWhere updating is not immediately feasible, organizations must employ server-side defenses. A robust HTML sanitizer such as DOMPurify should be executed on the server before rich text content is stored in databases or rendered back to other users. Client-side editors should not be treated as a single point of defense.\n\nImplementing a strict Content Security Policy (CSP) provides an additional layer of security. By enforcing policies such as restricting inline script execution and disabling the evaluation of dynamic code, the execution of injected mXSS payloads can be successfully blocked even if the sanitizer is bypassed.

Official Patches

xdanOfficial patch commit fixing mXSS in the safeHTML helper
xdanRelease tag 4.12.28

Fix Analysis (1)

Technical Appendix

CVSS Score
7.2/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
EPSS Probability
0.18%
Top 92% most exploited

Affected Systems

Jodit Editor client-side application

Affected Versions Detail

Product
Affected Versions
Fixed Version
Jodit Editor
xdan
< 4.12.284.12.28
AttributeDetail
CWE IDCWE-79
Attack VectorNetwork (Unauthenticated)
CVSS v3.17.2 (High)
EPSS Score0.00179
ImpactMutation XSS (Client-Side Code Execution)
Exploit StatusPoC (In Unit Tests)
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1189Drive-by Compromise
Initial Access
T1185Browser Session Hijacking
Collection
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Known Exploits & Detection

GitHub Unit TestsProof of concept payload integrated directly into the test suite of Jodit Editor.

Vulnerability Timeline

Fix commit merged into Jodit master branch
2026-06-22
Security advisory published and CVE assigned
2026-07-01

References & Sources

  • [1]GitHub Security Advisory GHSA-rxcw-mc6f-6hr3
  • [2]NVD - CVE-2026-58263
  • [3]CVE Record - CVE-2026-58263

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•10 minutes ago•GHSA-9J25-MM2H-2F76
9.9

CVE-2026-48750: Arbitrary File Write on Host via exec-output Symlink in Canonical LXD and Incus

Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.

Alon Barad
Alon Barad
1 views•12 min read
•about 1 hour ago•GHSA-VGHH-5RFX-XHQ8
9.9

CVE-2026-48749: Arbitrary Host File Read and Write via Malicious Image Symlink in Canonical LXD and Incus

CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.

Amit Schendel
Amit Schendel
3 views•9 min read
•about 2 hours ago•GHSA-FMC8-P6Q7-75CC
9.9

GHSA-fmc8-p6q7-75cc: Argument Injection in Canonical LXD Backup Compression Leads to Host Root Code Execution

GHSA-fmc8-p6q7-75cc (associated with CVE-2026-48755) is a critical argument injection vulnerability in Canonical LXD (github.com/canonical/lxd). The vulnerability occurs during instance and storage volume backup operations when processing the user-supplied compression_algorithm configuration parameter. While LXD validates the primary executable token against an allowlist of supported compression binaries, it fails to sanitize or restrict subsequent tokens parsed via shellquote.Split. These additional arguments are passed directly to exec.Command. An authenticated attacker with privileges to trigger backups can inject command-line flags for utilities like zstd to read staged files from a container filesystem and write them to arbitrary paths on the underlying host filesystem, such as /etc/cron.d/, achieving root-level arbitrary code execution on the host.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 3 hours ago•GHSA-PJFF-C2WC-F6JM
9.9

CVE-2026-48769: Arbitrary File Write and Remote Code Execution via Trusted Image Hash in Canonical LXD and Linux Containers Incus

A critical path traversal vulnerability caused by improper input validation (CWE-20) exists in the direct image download handler of Canonical LXD and Linux Containers Incus. When an authenticated user requests an image import using the URL source type, the daemon reads the image fingerprint from an untrusted HTTP response header (`Incus-Image-Hash` or `LXD-Image-Hash`) without validating that it conforms to a SHA-256 format. This unvalidated string is concatenated directly into a filesystem path via `filepath.Join` prior to file creation and cryptographic verification, allowing directory traversal sequences to write arbitrary files on the host filesystem as root.

Alon Barad
Alon Barad
7 views•10 min read
•about 7 hours ago•CVE-2026-9639
6.5

CVE-2026-9639: Authenticated Denial of Service via Nil-Pointer Dereference in Canonical LXD Custom Volume Backup Import

CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.

Amit Schendel
Amit Schendel
7 views•9 min read
•about 8 hours ago•CVE-2026-33050
8.8

CVE-2026-33050: OS Command Injection in GeoNode Vector Upload Handler

An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.

Alon Barad
Alon Barad
6 views•9 min read