Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts SVG payload with nested script element
-
DeliverySubmits via Jodit source mode or HTML input API
-
ExploitClient-side sanitizer misses lowercase 'script' nodeName
-
ExecutionMalicious content stored in application database
-
PersistVictim opens stored content in browser or Jodit editor
-
ImpactScript executes in victim's authenticated session context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) an attacker can supply arbitrary HTML to the Jodit editor - typically via source/code view mode, a form field, or an HTTP API accepting raw HTML; (2) the application persists Jodit's editor output (e.g., to a database) without applying server-side HTML sanitization; and (3) a victim (often an authenticated administrator) subsequently loads the stored content in a browser - either on a rendered page or by reopening the content in a Jodit instance. Exploitation is blocked if the application restricts source-mode access to fully trusted users, strips SVG elements server-side before storage, or runs a server-side sanitizer on retrieved content before rendering. The attack is limited to Jodit versions prior to 4.13.6; upgrading eliminates the bypass regardless of deployment configuration. |
| Impact | No CVSS vector was assigned by NVD at time of analysis; the independent assessment below is derived from the description and exploitation conditions. A public proof-of-concept is included in the GitHub Security Advisory (GHSA-45qg-252v-3f7p), meaningfully lowering the bar for exploitation. No EPSS score is available and the vulnerability is absent from CISA KEV, so widespread automated exploitation is not confirmed. Real-world risk is deployment-dependent: applications that expose Jodit source/HTML-input mode to untrusted or lower-privileged users and persist editor output without server-side sanitization face meaningful risk of privilege escalation via session hijacking against higher-privileged accounts (e.g., administrators). Deployments where only trusted admins write editor content face substantially reduced practical risk. The technical complexity of exploitation is low once the POC is understood. |
| Exploit ScenarioDerived | An attacker with write access to a Jodit-powered content editor submits an SVG element containing a nested |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
Stored and DOM cross-site scripting in the Jodit WYSIWYG editor (npm, all versions before 4.13.6) allows attacker-supplied JavaScript to survive the clean-html sanitizer by exploiting a case-sensitivity flaw in the deny/allow tag filter. SVG- and MathML-namespaced elements return lowercase nodeName values, while the denyTags hash is keyed by uppercase strings, so a <script> nested inside <svg> reports 'script' instead of 'SCRIPT' and passes the filter unblocked. A publicly disclosed proof-of-concept exists; the vulnerability is not listed in CISA KEV.
RemediationAI
Upgrade the Jodit npm package to version 4.13.6 or later, the vendor-released patch that normalizes tag names to uppercase before deny/allow filter matching. The release is available at https://github.com/xdan/jodit/releases/tag/4.13.6 and the exact fix commit is https://github.com/xdan/jodit/commit/49a31f451f6b686f5610022a1d4406ee85138dc5. As a compensating control prior to patching, apply server-side HTML sanitization to all editor-generated content before persisting or re-rendering it - libraries such as DOMPurify (server-side via jsdom) or sanitize-html with SVG restrictions enabled will strip SVG-embedded scripts regardless of Jodit's client-side behavior; note that server-side sanitizers introduce processing overhead and may alter legitimate SVG content. Additionally, restricting Jodit's source/raw HTML input mode to trusted roles reduces attacker-controlled input surface but does not eliminate the vulnerability if any code path allows raw HTML ingestion.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Jodit (pkg:npm/jodit) is a TypeScript/JavaScript WYSIWYG HTML editor widely embedded in web admin panels and content management systems. Its clean-html plugin traverses the editor DOM and removes disallowed elements using a hash-keyed deny/allow list, with tags stored in uppercase. The root cause (CWE-80: Improper Neutralization of Script-Related HTML Tags) is that the HTML DOM specification requires foreign-namespace elements - those in SVG or MathML namespaces - to preserve the original case of their nodeName. An SVG <script> therefore surfaces as 'script', not 'SCRIPT', causing the case-sensitive hash lookup in try-remove-node.ts to silently miss the match and leave the script intact in the serialized editor output. The patch in commit 49a31f451f normalizes nodeName via .toUpperCase() before all hash lookups, closing the bypass for both denyTags and allowTags comparisons.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-delivered stored XSS requiring write access to editor (PR:L) and victim page load (UI:R); scope changes as script runs in victim's session.
Primary rating from Vendor (https://github.com/xdan/jodit).
CVSS VectorVendor: https://github.com/xdan/jodit
Lifecycle Timeline
1DescriptionCVE.org
A <script> element placed directly inside an <svg> (or MathML) container was not removed by Jodit's clean-html sanitizer.
The deny/allow tag filter compared node.nodeName against an upper-cased tag hash, but foreign (SVG/MathML) elements preserve their original-case node names - an SVG script reports "script", not "SCRIPT" - so the default denyTags list (which includes script) did not match it. The script therefore survived in the editor value and serialized output, where it could execute when the content was loaded back into a page or editor.
Proof of concept
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 124 124">
<rect width="124" height="124" rx="24" fill="#000000"></rect>
<script type="text/javascript">alert(document.domain);</script>
</svg>Load the payload into the editor (e.g. via source mode) and the <script> is preserved in editor.value and executes.
Impact
Stored / DOM cross-site scripting. An application that persists editor output and later renders or re-opens it in Jodit can have attacker-supplied script run in a victim's (e.g. an administrator's) authenticated browser context.
Patch
Fixed in 4.13.6: the deny/allow lookup now normalises the tag name to upper case before matching, so a foreign namespace can no longer bypass the filter, while allowTags is still honoured.
Workaround
Upgrade to 4.13.6 or later. Server-side sanitization of stored HTML mitigates in the interim.
Credit
Reported by Roman Kis (@CrownKingClown).
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-51622
GHSA-45qg-252v-3f7p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB