IT SBIT Services
Schneeberger
DEEN
CVE tracker

Markdown Preview Enhanced: OS command injection via preview links on Windows

CVE-2026-54525High 8.8

← All vulnerabilities

Summary

Markdown Preview Enhanced, a Markdown preview extension for Visual Studio Code, passes link targets from Markdown files to a Windows helper that runs the command through cmd.exe. On Windows, a user who opens an untrusted Markdown file and clicks a crafted external or unsupported-scheme link can cause an attacker-selected command to run with the privileges of the current VS Code user. Exploitation requires only one click in the preview; script execution or malicious workspace settings are not required.

Affected

  • shd101wyy vscode-markdown-preview-enhanced versions before 0.8.28 on Windows

Fixed in

  • Version 0.8.28 (links and files are opened without a shell)

Workaround

  • Unknown.

Exploitation

  • No evidence of exploitation in the wild found.
  • CISA SSVC: exploitation none, automatable no, technical impact total.
  • No public exploit found.

Our recommendation

  • Update the Visual Studio Code extension to the latest release, at least 0.8.28.
  • Identify Windows workstations with the extension installed, especially developer endpoints.
  • Until updated, avoid opening Markdown files from untrusted sources and do not click links in their previews.
  • Monitor for unexpected child processes spawned by Code.exe.

Public exploits

PoC-in-GitHub, Metasploit and Exploit-DB list nothing for this CVE.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 31 Oct 2026, 16:40.

Original description (NVD)

Markdown Preview Enhanced is a Markdown preview extension for Visual Studio Code. Prior to 0.8.28, Markdown Preview Enhanced preview-link handling passes a decoded, Markdown-controlled link target to a Windows file-opening helper that invokes child_process.exec with the start command. When a Windows user opens an untrusted Markdown file and clicks a crafted external or unsupported-scheme link, shell metacharacters in the decoded target are interpreted by cmd.exe as command separators, allowing an attacker-selected command to run with the privileges of the current VS Code user. The attack requires one normal preview-link click but does not require malicious workspace configuration, script execution to be enabled, or additional files. This issue is fixed in version 0.8.28.

NVD references (7)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.