Critical Vulnerabilities in Popular VS Code Extensions Enable Local File Theft and Code Execution
Supply Chain Risk · 9 sources · Updated 5mo ago · First seen Feb 18, 2026

Security researchers at OX Security disclosed multiple vulnerabilities across widely used Microsoft Visual Studio Code extensions—Live Server, Code Runner, Markdown Preview Enhanced, and Microsoft Live Preview—with combined installs reported at 125–128 million. The issues enable attacks ranging from local file exfiltration to arbitrary code/JavaScript execution, and highlight how a single vulnerable or malicious extension can be leveraged for broader compromise and potential lateral movement in developer environments.
Reported flaws include CVE-2025-65717 (Live Server; CVSS 9.1) enabling local file theft by luring a developer to a malicious site while the extension’s local server is running (e.g., localhost:5500), CVE-2025-65716 (Markdown Preview Enhanced; CVSS 8.8) allowing arbitrary JavaScript execution via a crafted .md file with subsequent local port enumeration and exfiltration, and CVE-2025-65715 (Code Runner; CVSS 7.8) enabling code execution by tricking users into modifying settings.json. Separate reporting on Microsoft Live Preview describes a one-click reflected XSS and unauthenticated request abuse against the extension’s local development server to enumerate and exfiltrate sensitive files (e.g., .env, API keys, source code); this Live Preview issue was reported as patched in version 0.4.16 via input sanitization (e.g., an escapeHTML function), while other extension issues were described as unpatched at the time of reporting.
Why it matters
Impact assessment
These vulnerabilities primarily affect developer workstations using Visual Studio Code and compatible IDEs such as Cursor and Windsurf, especially environments running the Live Server, Code Runner, Markdown Preview Enhanced, or Microsoft Live Preview extensions. The impact is high because successful exploitation can expose source code, API keys, environment files, and other local secrets, and in some cases enable arbitrary code execution on developer machines.
The exposure is broad rather than narrowly targeted: the affected extensions reportedly account for roughly 125–128 million installs/downloads, with three non-Microsoft extensions described as unpatched at the time of reporting. No confirmed in-the-wild exploitation is cited, and the three CVEs were reportedly not listed in CISA KEV at publication, but public proof-of-concept material and realistic developer workflow attack paths materially raise near-term risk.
Affected populations and business risk
- Developer endpoints using VS Code or compatible IDEs.
- Organizations with software engineering teams, DevOps, platform engineering, and CI/CD-adjacent developer workflows.
- Environments where developers store local secrets such as
.envfiles, API keys, database configs, source code, and internal documentation. - Enterprises relying on extension-heavy workflows, including AI-assisted coding environments.
Severity and consequences
- Data theft: local file exfiltration from developer machines.
- System compromise: arbitrary code execution via Code Runner settings manipulation.
- Operational risk: compromise of developer endpoints can enable credential theft, source code exposure, and downstream software supply-chain impact.
- Lateral movement risk: researchers explicitly assess that a single vulnerable or malicious extension could be used to pivot deeper into enterprise environments.
Scope and exploitation status
- Reported scale: Live Server 72M+, Code Runner 37M+, Markdown Preview Enhanced 8.5M+, Microsoft Live Preview 11M+ downloads.
- Three CVE-tracked issues were reported as affecting all versions by the researchers, though some CVE/NVD references cite specific tested versions.
- Microsoft Live Preview was reported fixed in version 0.4.16+.
- No confirmed active exploitation incidents were provided in the references.
- Public PoC demonstrations and example exploit flows were reported as available.


