jodit is vulnerable to Cross-Site Scripting (XSS)
72
CVE Score
High
Cross-Site Scripting (XSS)
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.
Upgrade the jodit library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application re-renders editor content as HTML.
1.0.1 - 4.12.27
Fixed in 4.12.28jodit is vulnerable to Cross-Site Scripting (XSS) in versions 1.0.1 - 4.12.27.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.