Vulnerability Description
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 Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/imzbf/md-editor-v3/commit/2c07360420e74087f5bc63032ab155d93e0
- https://github.com/imzbf/md-editor-v3/releases/tag/v6.5.4
- https://github.com/imzbf/md-editor-v3/security/advisories/GHSA-3rm2-h79c-8qw6
- https://github.com/imzbf/md-editor-v3/security/advisories/GHSA-3rm2-h79c-8qw6
FAQ
What is CVE-2026-84992?
CVE-2026-84992 is a vulnerability with a CVSS score of 6.1 (MEDIUM). 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/useMarkdown...
How severe is CVE-2026-84992?
CVE-2026-84992 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-84992?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.