# CVE-2026-54703: Markdown Preview Enhanced arbitrary file write in updateMarkdown

Source: https://junglewise.ai/threats/cve-2026-54703-markdown-preview-enhanced-is-a-markdown-preview-extension-for  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-14. Updated: 2026-10-16  
License: CC BY 4.0 with a link back

CVE-2026-54703 · Severity: info · Published 2026-10-14

Markdown Preview Enhanced is a Visual Studio Code extension that displays formatted previews of Markdown documents. A vulnerability in versions before 0.8.30 allows malicious code already running in the preview to write arbitrary files to the user's system, including configuration files, startup scripts, and source code. An attacker could modify these files to achieve code execution or system compromise.

## Quick answers

**Is CVE-2026-54703 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-54703 being exploited in the wild.

**How severe is CVE-2026-54703?** Informational severity, published 14 October 2026.

**Which products and versions are affected?** Markdown Preview Enhanced before 0.8.30.

**Is there a fix for CVE-2026-54703?** Yes: fixed in 0.8.30. Until then: Upgrade to version 0.8.30 or later. Until then, avoid using Markdown Preview Enhanced to preview untrusted or user-generated Markdown files. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-54703 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-54703?** Check whether you run Markdown Preview Enhanced at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 0.8.30

Upgrade to version 0.8.30 or later. Until then, avoid using Markdown Preview Enhanced to preview untrusted or user-generated Markdown files.

## Technical details

The _crossnote.updateMarkdown command accepts arbitrary URIs and file content without validating that the target is the current preview's source file. JavaScript executing in the preview webview can invoke this command via the extension message bridge and bypass VS Code's file write restrictions, writing to any path the operating-system user can access. The vulnerability requires a separate attack to inject JavaScript into the webview, such as head.html injection or blind command dispatch; version 0.8.30 adds command allowlisting, source URI validation, and markdown extension checks to prevent this.

## Affected products

- Markdown Preview Enhanced before 0.8.30

## Timeline

- 2026-10-14: disclosed
- 2026-06-08: patched: Version 0.8.30 released with fixes for webview message allowlisting, source URI validation, and markdown extension validation

## References

- [https://github.com/shd101wyy/vscode-markdown-preview-enhanced/commit/8bc848b6cbb42b9f35a0f95f7c3bf29b8302970e](https://github.com/shd101wyy/vscode-markdown-preview-enhanced/commit/8bc848b6cbb42b9f35a0f95f7c3bf29b8302970e)
- [https://github.com/shd101wyy/vscode-markdown-preview-enhanced/pull/2323](https://github.com/shd101wyy/vscode-markdown-preview-enhanced/pull/2323)
