Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. jodit
  4. ›
  5. CVE-2026-62324

CVE-2026-62324: Jodit has incomplete javascript: scheme normalization in sanitizeHTMLElement href check that allows link XSS

July 31, 2026

jodit’s sanitizeHTMLElement neutralizes a javascript: href using a bare href.trim().indexOf('javascript') === 0 check. This omits the normalization jodit applies to every other URL attribute: isDangerousUrl strips control bytes with value.replace(/[\u0000-\u0020]+/g, '') and lowercases the value before testing the scheme. Because the href check does neither, it is bypassed by three obfuscation classes, all confirmed firing on click against the shipped 4.12.30 build:

  1. Case variants: JAVASCRIPT:, Javascript:, jaVaScRiPt: (the check is case-sensitive).
  2. A leading C0 control byte, e.g. a \x01 prefix before lowercase javascript: (trim() does not remove bytes in the \x00-\x08 / \x0e-\x1f range, but the browser strips a leading control byte before resolving the scheme).
  3. An embedded tab or newline inside the scheme, e.g. java\tscript: or java\nscript: (the browser strips tab/newline from a URL, but indexOf('javascript') sees the broken word and does not match).

The dangerous href survives editor.value = assignment and the on-change LazyWalker, persisting in the stored editor value. A victim who clicks the link in any consumer that renders the stored value (readonly editor, server-rendered page, innerHTML consumer) runs attacker-controlled JS in that page’s origin.

References

  • github.com/advisories/GHSA-j839-gqq4-gf9j
  • github.com/xdan/jodit/commit/5fba6ef2381d151d7cb8e3c5ad0b9996af0f97b0
  • github.com/xdan/jodit/releases/tag/4.12.31
  • github.com/xdan/jodit/security/advisories/GHSA-j839-gqq4-gf9j
  • nvd.nist.gov/vuln/detail/CVE-2026-62324

Code Behaviors & Features

Detect and mitigate CVE-2026-62324 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.12.31

Fixed versions

  • 4.12.31

Solution

Upgrade to version 4.12.31 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • 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

Source file

npm/jodit/CVE-2026-62324.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:24 +0000.