Vulnerabilities/

Jodit has cross-site scripting (XSS) via <script> nested in SVG that bypasses clean-html sanitization

Severity:
Medium

Description

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.

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