CVE-2026-54566Shd101wyy Vscode-markdown-preview-enhanced code injection
CVSS score
8.5
High
CVSS 4.0 from github.com
Exploit probability (EPSS)
0.30%
0.30% chance of exploitation in the next 30 days, higher than 22.6% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running shd101wyy Vscode-markdown-preview-enhanced and compare its version with the affected versions.
Update to a fixed version
- Update Vscode-markdown-preview-enhanced to 0.8.29 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Local
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- Passive
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. 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
Affected products
| Affected products | Versions |
|---|---|
| shd101wyy Vscode-markdown-preview-enhanced | < 0.8.29 |
Weakness
- CWE-94 code injection
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-54566 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.3% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-54566?
CVE-2026-54566 has a CVSS 4.0 base score of 8.5 (high).
Which versions are affected?
Shd101wyy Vscode-markdown-preview-enhanced (< 0.8.29)
Is there a patch for CVE-2026-54566?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/shd101wyy/crossnote/commit/e4890d64502e53b717cce0cb73f1a78b244dc640
- github.com/shd101wyy/crossnote/pull/443
- github.com/shd101wyy/crossnote/releases/tag/0.9.30
- github.com/shd101wyy/vscode-markdown-preview-enhanced/commit/0d4010988c6ae56a38c6dec4a7509cbd5a7dcb4c
- github.com/shd101wyy/vscode-markdown-preview-enhanced/pull/2320
- github.com/shd101wyy/vscode-markdown-preview-enhanced/releases/tag/0.8.29
- github.com/shd101wyy/vscode-markdown-preview-enhanced/security/advisories/GHSA-427h-jhpr-8jch
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.