CVE-2025-65716
Published: 16 February 2026
Summary
CVE-2025-65716 is a high-severity Code Injection (CWE-94) vulnerability in Shd101Wyy Markdown Preview Enhanced. Its CVSS base score is 8.8 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Client Execution (T1203); ranked at the 25.1th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-2 (Flaw Remediation).
Threat & Defense at a Glance
Threat & Defense Details
Mitigating Controls (NIST 800-53 r5)AI
Requires timely patching and remediation of the specific code injection flaw in Markdown Preview Enhanced v0.8.18 to prevent arbitrary code execution.
Enforces validation of untrusted Markdown inputs in the preview feature to block crafted .md files from injecting and executing arbitrary code.
Deploys malicious code protection mechanisms to scan and prevent execution of arbitrary code triggered by malicious Markdown previews in VS Code.
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Code injection in VSCode extension enables client-side RCE via malicious .md file requiring user preview action.
NVD Description
An issue in Visual Studio Code Extensions Markdown Preview Enhanced v0.8.18 allows attackers to execute arbitrary code via uploading a crafted .Md file.
Deeper analysisAI
CVE-2025-65716 is a code injection vulnerability (CWE-94) in the Markdown Preview Enhanced extension for Visual Studio Code, version 0.8.18. Published on 2026-02-16, it enables attackers to execute arbitrary code when users preview a specially crafted .md file in the extension's Markdown preview feature. The vulnerability carries a CVSS v3.1 base score of 8.8 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H), reflecting its high severity due to the potential for significant impact.
Remote attackers can exploit this vulnerability over the network with low attack complexity and no required privileges, though it demands user interaction—specifically, opening and previewing a malicious .md file within the affected extension. Successful exploitation allows arbitrary code execution on the victim's system, compromising confidentiality, integrity, and availability with high impact.
Mitigation guidance and patch details are available in advisories linked to the CVE, including the extension's GitHub repository at https://github.com/shd101wyy/markdown-preview-enhanced and the OX Security blog post at https://www.ox.security/blog/cve-2025-65716-markdown-preview-enhanced-vscode-vulnerability/. Security practitioners should consult these resources for updates, version fixes, and recommended remediation steps.
Details
- CWE(s)