---
title: "CVE-2026-54566: Markdown Preview Enhanced - Command Injection"
description: "Markdown Preview Enhanced < 0.8.29 contains a command injection caused by unsafe evaluation of repository-controlled .crossnote/config.js and .crossnote/parser.js files with vm.runInNewContext, letting attackers execute OS commands as the victim user, exploit requires opening a Markdown file in a malicious repository."
url: https://panop.io/threat-heartbeat/CVE-2026-54566/
---

# CVE-2026-54566 Markdown Preview Enhanced - Command Injection

Markdown Preview Enhanced < 0.8.29 contains a command injection caused by unsafe evaluation of repository-controlled .crossnote/config.js and .crossnote/parser.js files with vm.runInNewContext, letting attackers execute OS commands as the victim user, exploit requires opening a Markdown file in a malicious repository.

CVSS base score 8.5 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-54566)

## Details

Type

Command Injection

Impact

Remote Code Execution

CVSS vector

CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Published

14 October 2026

Updated

15 October 2026

Weakness

[CWE-94](https://cwe.mitre.org/data/definitions/94.html)

## Vendor fix

Update to version 0.8.29 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-54566](https://nvd.nist.gov/vuln/detail/CVE-2026-54566)
- [https://github.com/shd101wyy/vscode-markdown-preview-enhanced/pull/2320](https://github.com/shd101wyy/vscode-markdown-preview-enhanced/pull/2320)
- [https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.29](https://github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.29)
- [https://github.com/shd101wyy/vscode-markdown-preview-enhanced/security/advisories/GHSA-427h-jhpr-8jch](https://github.com/shd101wyy/vscode-markdown-preview-enhanced/security/advisories/GHSA-427h-jhpr-8jch)
- [https://github.com/shd101wyy/crossnote/commit/e4890d64502e53b717cce0cb73f1a78b244dc640](https://github.com/shd101wyy/crossnote/commit/e4890d64502e53b717cce0cb73f1a78b244dc640)
- [https://github.com/shd101wyy/crossnote/pull/443](https://github.com/shd101wyy/crossnote/pull/443)
- [https://github.com/shd101wyy/crossnote/releases/tag/0.9.30](https://github.com/shd101wyy/crossnote/releases/tag/0.9.30)
- [https://github.com/shd101wyy/vscode-markdown-preview-enhanced/commit/0d4010988c6ae56a38c6dec4a7509cbd5a7dcb4c](https://github.com/shd101wyy/vscode-markdown-preview-enhanced/commit/0d4010988c6ae56a38c6dec4a7509cbd5a7dcb4c)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
