Skip to main content

Jodit Editor CVE-2026-65841

| EUVDEUVD-2026-51622 MEDIUM
Basic XSS (CWE-80)
2026-07-31 https://github.com/xdan/jodit GHSA-45qg-252v-3f7p
5.3
CVSS 4.0 · Vendor: https://github.com/xdan/jodit
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts SVG payload with nested script element
  2. Delivery
    Submits via Jodit source mode or HTML input API
  3. Exploit
    Client-side sanitizer misses lowercase 'script' nodeName
  4. Execution
    Malicious content stored in application database
  5. Persist
    Victim opens stored content in browser or Jodit editor
  6. Impact
    Script 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 <script>alert(document.domain);</script> tag via the editor's source mode or an API endpoint. The application stores the output without server-side sanitization. When an administrator later opens the stored article for review - either as a rendered page or within another Jodit editor instance - the embedded script executes in their authenticated browser session, enabling cookie theft or actions performed on their behalf. A working proof-of-concept demonstrating this exact flow is publicly disclosed in GHSA-45qg-252v-3f7p.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

jodit < 4.13.6

Affected Packages

npm jodit fix: 4.13.6

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

Vendor (https://github.com/xdan/jodit) PRIMARY 5.3 MEDIUM
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
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (https://github.com/xdan/jodit).

CVSS VectorVendor: https://github.com/xdan/jodit

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jul 31, 2026 - 20:22 NVD
5.3 (MEDIUM)

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

html
<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

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Medium
popular npm WYSIWYG editor used in many web admin panels
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy