Vulnerabilities/

Jodit has incomplete javascript: scheme normalization in sanitizeHTMLElement href check that allows link XSS

Severity:
Medium

Description

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.

Recommendation

Update the jodit package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
jodit
Anything's wrong? Let us know Last updated on July 31, 2026