Description
Jodit Editor is a WYSIWYG editor with a built-in file browser & image editor. Prior to 4.12.31, Jodit's sanitizeHTMLElement method fails to use isDangerousUrl to normalize javascript: href values before checking the scheme, allowing case variants, control-byte prefixes, and embedded tabs or newlines to bypass filtering and execute attacker-controlled script when a victim clicks a stored link rendered by an application. This issue is fixed in version 4.12.31.
Published: 2026-07-31
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Jodit Editor’s sanitizeHTMLElement routine does not normalize javascript: href values before checking the URL scheme. Consequently, attackers can insert case‑variant or obfuscated javascript: links that bypass the filter and execute arbitrary script when a victim clicks a stored link in the editor content. The flaw is an injection flaw (CWE-79) and a failure to validate dangerous URLs (CWE-83), enabling attackers to compromise a user’s session and execute code in the victim’s browser.

Affected Systems

All installations of Jodit Editor released prior to version 4.12.31 are affected. The product vendor is xdan. Any application that uses the editor to accept or display user‑supplied rich‑text content may be impacted if the editor’s sanitizeHTMLElement function is invoked without the fix implemented in 4.12.31.

Risk and Exploitability

The CVSS score is 5.4, indicating a moderate risk, and the EPSS score is below 1 %, so the probability that this vulnerability is actively exploited is low. Because the attack requires only a malicious link embedded in editor content, authenticated users can trigger the flaw without special privileges. The vulnerability is not listed in the CISA KEV catalog. The exploitation path is straightforward: a user or attacker creates content containing a javascript: link with a variant that evades the validator, stores it, and another user later clicks the link, triggering the attack.

Generated by OpenCVE AI on August 2, 2026 at 03:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Jodit Editor to version 4.12.31 or later.
  • If an upgrade is delayed, configure the editor or application to reject or strip any href values that begin with "javascript:" or contain non‑standard characters and follow strict URL validation rules.
  • Verify that any custom sanitization logic does not bypass Jodit’s isDangerousUrl check, and conduct a review of content‑generation code to ensure no illegal URLs can be persisted.

Generated by OpenCVE AI on August 2, 2026 at 03:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-j839-gqq4-gf9j Jodit has incomplete javascript: scheme normalization in sanitizeHTMLElement href check that allows link XSS
History

Mon, 03 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


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

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

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

Type Values Removed Values Added
Description Jodit Editor is a WYSIWYG editor with a built-in file browser & image editor. Prior to 4.12.31, Jodit's sanitizeHTMLElement method fails to use isDangerousUrl to normalize javascript: href values before checking the scheme, allowing case variants, control-byte prefixes, and embedded tabs or newlines to bypass filtering and execute attacker-controlled script when a victim clicks a stored link rendered by an application. This issue is fixed in version 4.12.31.
Title Jodit has incomplete javascript: scheme normalization in sanitizeHTMLElement href check that allows link XSS
Weaknesses CWE-79
CWE-83
References
Metrics cvssV3_1

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-03T17:26:47.204Z

Reserved: 2026-07-13T19:27:58.315Z

Link: CVE-2026-62324

cve-icon Vulnrichment

Updated: 2026-08-03T17:26:32.906Z

cve-icon NVD

Status : Received

Published: 2026-07-31T20:16:53.197

Modified: 2026-08-03T18:16:40.340

Link: CVE-2026-62324

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T04:00:06Z

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