Intel

AIKIDO-2026-577091

jodit is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-45qg-252v-3f7p Published 4 days ago

54

Medium Risk

This Affects:

JSjodit
3.21.3 - 4.13.5
Fixed in 4.13.6
Are you affected? Scan for Free

TL;DR

The clean-html sanitizer's deny/allow tag filter in try-remove-node.ts compared node.nodeName against an upper-cased tag hash. Foreign (SVG/MathML) namespaced elements preserve their original-case node names, so an SVG script reports script instead of SCRIPT and slips past the default denyTags list. Attacker-supplied HTML such as <svg><script>...</script></svg> loaded into the editor is preserved in editor.value and serialized output, where it can execute when the stored content is rendered or reopened. The fix normalizes tag names to upper case before deny/allow lookups so foreign namespaces can no longer bypass the filter.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

jodit is vulnerable to Cross-Site Scripting (XSS) in versions 3.21.3 - 4.13.5.

How to fix this

Upgrade the jodit library to the patch version.