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

· Original article ↗

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

CVE

People

Vendors

Products

Related Articles