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

· Original article ↗

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

CVE

Vendors

Products

Related Articles