Skip to main content
Mallory
← Back to News
extension-plugin-hijackendpoint-software-vulnerabilitywidely-deployed-product-advisorydata-exfiltration-method

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

Critical Vulnerabilities in Popular VS Code Extensions Enable Local File Theft and Code Execution

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 .env files, 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.
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

7 events · Jun 1, 2025 – Feb 17, 2026
  1. Feb 17, 20269mo ago

    OX Security publicly discloses four extension vulnerabilities

    OX Security published its findings, warning that flaws in four VS Code extensions with more than 125 million installs exposed developers to file exfiltration, XSS, and remote code execution. The disclosure highlighted IDE extensions as a supply-chain weak point that could enable lateral movement inside organizations.

  2. Feb 17, 20269mo ago

    Researchers confirm the same issues affect Cursor and Windsurf

    OX Security said the extension-related issues were also confirmed in Cursor and Windsurf, extending the impact beyond standard VS Code deployments. This showed the risk applied across compatible IDE ecosystems used by developers.

  3. Sep 11, 20251y ago

    Three extension flaws receive CVE assignments

    The vulnerabilities affecting Code Runner, Markdown Preview Enhanced, and Live Server were assigned CVE-2025-65715, CVE-2025-65716, and CVE-2025-65717, respectively. Reports described these issues as affecting all versions of the impacted extensions and remaining unpatched at disclosure time.

  4. Sep 11, 20251y ago

    Microsoft patches Live Preview in version 0.4.16

    Microsoft released Live Preview version 0.4.16, fixing the XSS-to-file-exfiltration issue by adding HTML sanitization. Multiple reports say the patch was released without public acknowledgment and no CVE was assigned.

  5. Aug 7, 20251y ago

    Microsoft receives report on Live Preview XSS flaw

    OX Security researchers Nir Zadok and Moshe Siman Tov Bustan reported the Microsoft Live Preview one-click XSS and local file exfiltration issue to Microsoft. Microsoft initially assessed the issue as low severity because exploitation required specific conditions and user interaction.

  6. Jul 1, 20251y ago

    Researchers begin disclosing flaws to extension maintainers

    OX Security began coordinated disclosure of the extension vulnerabilities to maintainers in July 2025, using channels including email, GitHub, and social media. The disclosures covered the non-Microsoft extensions later tracked as CVE-2025-65715, CVE-2025-65716, and CVE-2025-65717.

  7. Jun 1, 20251y ago

    OX Security discovers VS Code extension flaws

    OX Security researchers discovered severe vulnerabilities affecting four popular Visual Studio Code extensions: Live Server, Code Runner, Markdown Preview Enhanced, and Microsoft Live Preview. The flaws could enable local file theft, JavaScript execution, remote code execution, and XSS-based exfiltration from developer environments.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.