Intel

AIKIDO-2026-615527

jodit is vulnerable to Cross-Site Scripting (XSS)

CVE-2026-58263Published Jun 22, 2026
June 22, 2026

72

CVE Score

High

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

The HTML sanitizer in jodit walks parsed content as elements, but markup smuggled as style rawtext inside a MathML or SVG foreign-content carrier is not an element during that walk and escapes cleaning. A later serialize-and-reparse hoists the hidden markup, such as an img carrying an on* handler, into a live HTML node with its event handler intact. An application that re-renders the editor value then runs attacker-supplied script with no user interaction, producing stored cross-site scripting in the default configuration. The fix removes HTML-namespace elements the parser placed inside math or svg outside integration points before the walk, including nested carriers.

How do I fix this?

Upgrade the jodit library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application re-renders editor content as HTML.

Package

Versions

1.0.1 - 4.12.27

Fixed in 4.12.28

Background info

jodit is vulnerable to Cross-Site Scripting (XSS) in versions 1.0.1 - 4.12.27.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea