CVE-2026-84992
mediummd-editor-v3 is a Markdown editor for Vue 3 developed in JSX and TypeScript.
md-editor-v3 is a Markdown editor for Vue 3 developed in JSX and TypeScript. Prior to 6.5.4, MdPreview's useMarkdownIt() highlight callback in packages/MdEditor/layouts/Content/composition/useMarkdownIt.ts inserts a fenced-code language value into class and language HTML attributes without escaping or consistently quoting it. Both highlighted and non-highlighted rendering paths reach this return value, while XSSPlugin filters only existing html_block and html_inline tokens before rendering and therefore cannot inspect the renderer-generated HTML. An attacker who can supply Markdown can use crafted fenced-code metadata to execute JavaScript in the application origin when a victim renders it, including as stored cross-site scripting when the host persists the Markdown. This issue is fixed in version 6.5.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://github.com/imzbf/md-editor-v3/commit/2c07360420e74087f5bc63032ab155d93e0a0b10 security-advisories@github.com
- https://github.com/imzbf/md-editor-v3/releases/tag/v6.5.4 security-advisories@github.com
- https://github.com/imzbf/md-editor-v3/security/advisories/GHSA-3rm2-h79c-8qw6 security-advisories@github.com
- https://github.com/imzbf/md-editor-v3/security/advisories/GHSA-3rm2-h79c-8qw6 134c704f-9b21-4f2e-91b3-4a467353bcc0
