Flaws in Popular VSCode Extensions Could Expose Developers to File Theft and Code Execution

Summary
Ox Security disclosed high- and critical-severity flaws in popular VSCode extensions, with more than 128 million combined downloads. The issues could expose local files or enable code execution; developers are advised to remove unnecessary extensions and avoid untrusted
Key points
- Ox Security says the flaws affect Live Server, Code Runner, Markdown Preview Enhanced, and Microsoft Live Preview, with more than 128 million combined downloads.
- The article says CVE-2025-65717 in Live Server can expose local files when a victim visits a malicious webpage.
- CVE-2025-65715 in Code Runner could enable remote code execution if a user applies a malicious configuration snippet to global settings.json.
- CVE-2025-65716 in Markdown Preview Enhanced can execute JavaScript from a crafted Markdown file; Microsoft Live Preview versions before 0.4.16 reportedly have a one-click XSS affecting local files.
- The article says the flaws also apply to Cursor and Windsurf, and could expose API keys or configuration files and enable network pivoting.
- Ox Security says it attempted disclosure starting in June 2025 and that maintainers did not respond; it advises removing unnecessary extensions, avoiding untrusted HTML and configurations, and monitoring for unexpected settings changes.
Article Details
- Vulnerability Types
- Remote code execution
- Cross-site scripting (XSS)
- JavaScript execution
- Local file access
- Severity
- High and critical; CVE-2025-65716 is rated 8.8
- Affected Versions
- Microsoft Live Preview before 0.4.16
- Exploitation Status
- unknown
- Exploit Availability
- unknown
- Patch Status
- unknown
- Workarounds
- Remove unnecessary extensions.
- Avoid running localhost servers unless necessary.
- Avoid opening untrusted HTML while localhost servers are running.
- Do not apply untrusted configurations or paste untrusted snippets into settings.json.
- Monitor for unexpected settings changes.
MITRE ATT&CK
T1005 · Data from Local SystemThe Live Server and Microsoft Live Preview vulnerabilities can be used to access or steal files from a developer's local machine.T1059.007 · JavaScriptCrafted Markdown can cause JavaScript execution in Markdown Preview Enhanced.T1203 · Exploitation for Client ExecutionThe article describes exploiting vulnerable VSCode extensions through crafted Markdown or malicious configuration snippets to cause JavaScript execution or remote code execution.
CVE
CVE-2025-65715Formulahendry · CoderunnerCVE-2025-65715 in Code Runner allows remote code execution by tricking users into applying malicious snippets to settings.json.CVE-2025-65716Shd101wyy · Markdown preview enhancedCVE-2025-65716 in Markdown Preview Enhanced enables JavaScript execution via crafted Markdown, and Microsoft Live Preview before 0.4.16 has a one-click XSS to access files.CVE-2025-65717Ritwickdey · Live serverCVE-2025-65717 in Live Server can be abused to steal local files by directing victims to a malicious webpage.
Vendors
Products
Code RunnerHigh- and critical-severity flaws affect Live Server, Code Runner, Markdown Preview Enhanced, and Microsoft Live Preview, totaling 128M+ downloads.CursorThe flaws in the extensions also apply to Cursor and Windsurf, which are AI-powered VSCode-compatible alternative IDEs.Live ServerHigh- and critical-severity flaws affect Live Server, Code Runner, Markdown Preview Enhanced, and Microsoft Live Preview, totaling 128M+ downloads.Markdown Preview EnhancedHigh- and critical-severity flaws affect Live Server, Code Runner, Markdown Preview Enhanced, and Microsoft Live Preview, totaling 128M+ downloads.Microsoft Live PreviewHigh- and critical-severity flaws affect Live Server, Code Runner, Markdown Preview Enhanced, and Microsoft Live Preview, totaling 128M+ downloads.VSCodeVulnerabilities with high to critical severity ratings affecting popular Visual Studio Code (VSCode) extensions collectively downloaded more than 128 million times could be exploited to steal local files and executeWindsurfThe flaws in the extensions also apply to Cursor and Windsurf, which are AI-powered VSCode-compatible alternative IDEs.
