CVE-2026-62324: Jodit has incomplete javascript: scheme normalization in sanitizeHTMLElement href check that allows link XSS
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:
- Case variants:
JAVASCRIPT:,Javascript:,jaVaScRiPt:(the check is case-sensitive). - A leading C0 control byte, e.g. a
\x01prefix before lowercasejavascript:(trim()does not remove bytes in the\x00-\x08/\x0e-\x1frange, but the browser strips a leading control byte before resolving the scheme). - An embedded tab or newline inside the scheme, e.g.
java\tscript:orjava\nscript:(the browser strips tab/newline from a URL, butindexOf('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
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 →