Intel

AIKIDO-2026-869349

md-editor-v3 is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-7cg4-7xrm-8r75 Published Yesterday

53

Medium Risk

This Affects:

JSmd-editor-v3
4.11.3 - 6.5.5
Fixed in 6.5.6
Are you affected? Scan for Free

TL;DR

The first-party XSS plugin sanitizes raw HTML tokens but not math-token content in the Markdown renderer. On the initial render, before the default KaTeX script loads, the KaTeX plugin emits math content as raw HTML through an innerHTML fallback path. A math-delimited handler therefore bypasses the enabled XSS protection and runs in the host application's origin when a viewer opens the content. The fix escapes the math token content in the pre-KaTeX fallback so it renders as plain text.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you enable the shipped XSSPlugin to render untrusted Markdown that can contain math delimiters.

Background info

md-editor-v3 is vulnerable to Cross-Site Scripting (XSS) in versions 4.11.3 - 6.5.5.

How to fix this

Upgrade the md-editor-v3 library to the patch version.