Intel

AIKIDO-2026-963238

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

CVE-2026-84992Published Jul 31, 2026
July 31, 2026

61

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

The Markdown preview renderer in MdPreview interpolates a fenced code block's language info string into HTML attributes without escaping it. A crafted info string on a code fence breaks out of the attribute and injects arbitrary markup, so JavaScript executes in the page origin when the preview is rendered. The bundled XSSPlugin does not stop this because it only inspects pre-existing HTML tokens and never sees the markup produced by the highlight callback, so hosted Markdown becomes stored cross-site scripting. The fix escapes the language value with escapeHtml and quotes the attribute before interpolation.

How do I fix this?

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

Who does this affect?

You are affected if your application uses MdPreview (or the MdEditor preview) to render Markdown that comes from untrusted or externally influenced sources on any release up to and including 6.5.3. Enabling the bundled XSSPlugin does not protect you, because the malicious markup is emitted by the fenced-code highlight renderer and never passes through the sanitized HTML tokens the plugin inspects. Applications that only render fully trusted, first-party Markdown are not at practical risk.

Versions

0.0.1 - 6.5.3

Fixed in 6.5.4

Background info

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

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