SecurityContext

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

  • Cve: CVE-2026-54566
  • Name: Markdown Preview Enhanced - Command Injection
  • 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.
  • Impact: Attackers can execute arbitrary operating system commands as the victim user, leading to full system compromise.
  • Remediation: Update to version 0.8.29 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker must have a malicious repository opened by the victim
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.5
  • 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
  • Epss score: 0.00296
  • Epss percentile: 0.22575
  • Assignee: [email protected]
  • Published at: 2026-10-14T20:17:47Z
  • Age in days: 41
  • Modified at: 2026-10-16T16:00:33Z
  • References total: 7
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-54566
  • Nvd status: awaiting_analysis
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/shd101wyy/crossnote/commit/e4890d64502e53b717cce0cb73f1a78b244dc640
https://github.com/shd101wyy/crossnote/pull/443
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/pull/2320
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

Projects

RepositoryLink kindsIndexedUrl
shd101wyy/vscode-markdown-preview-enhancedcommit, pull, releases, security_advisoryyes/v1/repositories/shd101wyy/vscode-markdown-preview-enhanced
shd101wyy/crossnotecommit, fix, pull, releasesyes/v1/repositories/shd101wyy/crossnote

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts