Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to intelligence
extension-plugin-hijackendpoint-software-vulnerabilitywidely-deployed-product-advisorydata-exfiltration-method

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

Updated 3mo agoFirst seen Feb 18, 20269 sources

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.

Share:
Critical Vulnerabilities in Popular VS Code Extensions Enable Local File Theft and Code Execution
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

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

7 EVENTS
Feb 17, 20264mo 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.

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.

Sep 11, 202510mo 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.

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.

Aug 7, 202511mo 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.

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.

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.

16 LINKEDOpen in app
Affected products
2 linked
Visual Studio CodeCursor
Organizations
11 linked
Ox SecurityMicrosoft CorporationWindsurfCursorBleepingComputerPalo Alto NetworksSOCRadarAT&TThe Cyber ExpressSecurity AffairsThe Hacker News
The operational view lives in Mallory

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, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

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