Flaws in Four VS Code Extensions Could Expose Local Files or Enable Code Execution

Summary
Researchers disclosed flaws in four VS Code extensions with over 125 million combined installs. Three vulnerabilities remain unpatched; Microsoft Live Preview’s flaw was fixed in version 0.4.16.
Key points
- OX Security researchers reported vulnerabilities in Live Server, Code Runner, Markdown Preview Enhanced, and Microsoft Live Preview.
- The extensions have more than 125 million combined installs, according to the article.
- Unpatched CVE-2025-65717 in Live Server can expose local files through its localhost development server when a user visits a malicious website.
- Unpatched CVE-2025-65716 in Markdown Preview Enhanced can enable arbitrary JavaScript execution through a crafted Markdown file.
- Unpatched CVE-2025-65715 in Code Runner can enable code execution if a user is tricked into changing settings.json.
- The Microsoft Live Preview flaw, which could expose sensitive local files, has no CVE listed and was fixed in version 0.4.16, released in September 2025.
- Recommended mitigations include removing untrusted or nonessential extensions, avoiding untrusted configurations, updating extensions, and restricting localhost and network access.
Article Details
- Vulnerability Types
- Local file exfiltration
- Arbitrary JavaScript execution
- Arbitrary code execution
- Severity
- CVSS scores: 9.1, 8.8, and 7.8
- Exploitation Status
- unknown
- Exploit Availability
- unknown
- Patch Status
- partial
- Workarounds
- Disable or uninstall untrusted or non-essential extensions.
- Avoid applying untrusted configurations.
- Restrict inbound and outbound connections with a firewall.
- Keep extensions updated.
- Turn off localhost-based services when they are not in use.
MITRE ATT&CK
T1059.007 · JavaScriptJavaScript embedded in a malicious webpage can access files through the running Live Server; crafted JavaScript requests can also enumerate and exfiltrate files through Microsoft Live Preview.T1204.001 · Malicious LinkThe Live Server and Microsoft Live Preview vulnerabilities can be triggered by tricking a developer into visiting a malicious website.
CVE
CVE-2025-65715Formulahendry · CoderunnerCVE-2025-65716 in Markdown Preview Enhanced (CVSS 8.8) allows arbitrary JavaScript execution via crafted .md files, and CVE-2025-65715 in Code Runner enables code execution through manipulated settings.json.CVE-2025-65716Shd101wyy · Markdown preview enhancedCVE-2025-65716 in Markdown Preview Enhanced (CVSS 8.8) allows arbitrary JavaScript execution via crafted .md files, and CVE-2025-65715 in Code Runner enables code execution through manipulated settings.json.CVE-2025-65717Ritwickdey · Live serverCVE-2025-65717 in Live Server (CVSS 9.1) can exfiltrate local files via localhost:5500.
People
Vendors
Products
Code Runnermultiple security vulnerabilities in four popular Microsoft Visual Studio Code extensions—Live Server, Code Runner, Markdown Preview Enhanced, and Microsoft Live Preview—that can allow attackers to exfiltrate localLive Serverdisclosed multiple security vulnerabilities in four popular Microsoft Visual Studio Code extensions—Live Server, Code Runner, Markdown Preview Enhanced, and Microsoft Live Preview—that can allow attackers toMarkdown Preview Enhancedin four popular Microsoft Visual Studio Code extensions—Live Server, Code Runner, Markdown Preview Enhanced, and Microsoft Live Preview—that can allow attackers to exfiltrate local files and execute codeMicrosoft Live PreviewMicrosoft Visual Studio Code extensions—Live Server, Code Runner, Markdown Preview Enhanced, and Microsoft Live Preview—that can allow attackers to exfiltrate local files and execute code remotely.VSCodeResearchers disclosed multiple security vulnerabilities in four popular Microsoft Visual Studio Code extensions—Live Server, Code Runner, Markdown Preview Enhanced, and Microsoft Live Preview—that can allow attackers to
