Description
Markdown Preview Enhanced is a Markdown preview extension for Visual Studio Code. Prior to 0.8.29, Markdown Preview Enhanced evaluates repository-controlled .crossnote/config.js and .crossnote/parser.js files with vm.runInNewContext, which does not provide a security boundary from the Node.js host realm. Opening a Markdown file in a malicious repository automatically loads these files, and prototype-chain traversal can reach the host Function constructor and process object, allowing operating-system commands to execute as the victim account without further interaction. Both configuration evaluation and parser-hook evaluation are affected, and the attack does not depend on module-scoped require being available. This issue is fixed in version 0.8.29.
Published: 2026-10-14
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Patch Now
AI Analysis

Impact

Markdown Preview Enhanced processes organization-controlled .crossnote/config.js and .crossnote/parser.js files using Node.js' vm.runInNewContext, which does not isolate the executed code from the host environment. This lets the injected JavaScript traverse prototypes and access the Function constructor and the process object, enabling an attacker to embed malicious code within a repository’s Markdown that causes arbitrary operating‑system commands to run under the user’s account when the file is previewed. The flaw is a false‑sandbox code injection (CWE-94) and results in remote code execution.

Affected Systems

Any user who installs the unsecured version of the Markdown Preview Enhanced extension from Microsoft Visual Studio Code is affected. Versions earlier than 0.8.29 contain the vulnerability. The extension vendor is shd101wyy, and the affected product is the vscode-markdown-preview-enhanced extension. Users running the extension on any operating system that hosts Node.js and which opens Markdown files from untrusted repositories are at risk.

Risk and Exploitability

With a CVSS score of 8.5 the vulnerability is considered high severity. There is no EPSS data available, and the issue is not yet listed in CISA’s KEV catalog. Attackers can exploit the flaw simply by hosting a malicious repository and having a victim open a Markdown file for preview. Because the code is evaluated without user interaction, the attack vector is passive and does not require any privilege escalation beyond the victim’s user context.

Generated by OpenCVE AI on October 15, 2026 at 13:33 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Markdown Preview Enhanced extension to version 0.8.29 or newer as soon as possible; the patch removes the unsafe vm.runInNewContext usage.
  • If an update cannot be applied immediately, uninstall or disable the extension, or configure Visual Studio Code to not load .crossnote files from external repositories.
  • In the interim, reduce the risk by disabling the extension’s automatic file loading features or use the built‑in Markdown preview of Visual Studio Code instead of the third‑party extension.

Generated by OpenCVE AI on October 15, 2026 at 13:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 14 Oct 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 14 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Description Markdown Preview Enhanced is a Markdown preview extension for Visual Studio Code. Prior to 0.8.29, Markdown Preview Enhanced evaluates repository-controlled .crossnote/config.js and .crossnote/parser.js files with vm.runInNewContext, which does not provide a security boundary from the Node.js host realm. Opening a Markdown file in a malicious repository automatically loads these files, and prototype-chain traversal can reach the host Function constructor and process object, allowing operating-system commands to execute as the victim account without further interaction. Both configuration evaluation and parser-hook evaluation are affected, and the attack does not depend on module-scoped require being available. This issue is fixed in version 0.8.29.
Title Markdown Preview Enhanced: Remote Code Execution via VM Sandbox Escape in `.crossnote/config.js` and `.crossnote/parser.js`
Weaknesses CWE-94
References
Metrics cvssV4_0

{'score': 8.5, '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-14T19:45:22.736Z

Reserved: 2026-06-15T19:15:27.342Z

Link: CVE-2026-54566

cve-icon Vulnrichment

Updated: 2026-10-14T19:45:05.683Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-14T20:17:47.403

Modified: 2026-10-16T16:00:33.533

Link: CVE-2026-54566

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-15T13:45:19Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')