Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons

Social Media

Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons
Search the Site
Popular Searches:
technology Amazon AI
Recent Posts
Brevo Supply Chain Attack Pushes WordPress Backdoors and ClickFix Malware to 100,000+ Sites
September 18, 2026
Critical Plugin4Shell RCE Flaw Impacts AI Coding Assistants
September 18, 2026
Top Cloud Encryption Solutions for 2026
September 18, 2026
Home/Vulnerabilities/Critical VS Code Vulnerability Lets Attackers Access PCs
Vulnerabilities

Critical VS Code Vulnerability Lets Attackers Access PCs

Key Takeaways A critical vulnerability in Visual Studio Code (VS Code) allows attackers to gain persistent access to developer workstations. The flaw bypasses VS Code’s “Workspace...

Marcus Rodriguez
Marcus Rodriguez
September 18, 2026 4 Min Read
3 0

Key Takeaways

  • A critical vulnerability in Visual Studio Code (VS Code) allows attackers to gain persistent access to developer workstations.
  • The flaw bypasses VS Code’s “Workspace Trust” security feature by abusing clickable command links within malicious project folders.
  • A single click on a crafted link can install a malicious extension, even in Restricted Mode, granting the attacker arbitrary code execution.
  • This vulnerability poses a significant supply chain risk due to developers’ elevated access to sensitive systems and data.
  • A mitigation exists by disabling clickable links in the editor settings. Users should also avoid clicking suspicious links and review installed extensions.

Critical VS Code Flaw Bypasses Workspace Trust, Enables Persistent Access

A severe security vulnerability in Microsoft’s Visual Studio Code (VS Code) integrated development environment (IDE) could allow attackers to establish persistent access to a developer’s machine. The flaw leverages a cunning bypass of VS Code’s “Workspace Trust” feature, designed to safeguard users when interacting with untrusted code.

Table Of Content

  • Key Takeaways
  • Critical VS Code Flaw Bypasses Workspace Trust, Enables Persistent Access
  • Workspace Trust Circumvention
  • One-Click Malicious Extension Installation
  • What You Should Do

Exploiting this vulnerability requires only a single click within a specially crafted malicious project folder. This action can lead to the installation of an attacker-controlled extension, granting persistent access and potentially compromising critical development infrastructure.

Workspace Trust Circumvention

Workspace Trust is a core security mechanism in VS Code, intended to prevent the execution of malicious code when a user opens an unknown or untrusted project. When a folder is not explicitly trusted, VS Code enters “Restricted Mode,” which should disable risky operations such as running tasks, debuggers, or terminal commands. The fundamental principle is that simply opening a repository should not automatically execute code controlled by an attacker.

However, researchers at Remedio discovered a method to circumvent this protection. Their findings indicate that a malicious project can trigger internal VS Code commands via a specially formatted command: link.

VS Code automatically identifies URLs within various file types, including READMEs, comments, and Markdown documents. Users typically interact with these links by Ctrl+clicking them, expecting to navigate to websites or documentation. Crucially, VS Code also supports a distinct command: URL scheme. Instead of launching a web browser, these links invoke internal editor commands and can pass arguments to them. VS Code features hundreds of built-in commands, with many more added by installed extensions.

One-Click Malicious Extension Installation

One particular command, workbench.extensions.installExtension, is central to this attack. According to VS Code’s command reference, this command can install an extension using either its identifier or a VSIX extension package URI.

An attacker could embed a command link disguised within benign-looking text, such as “Install project dependencies” or “Set up this project.” If a victim Ctrl+clicks this link in a source file, the editor can be instructed to install a malicious VSIX package located within the project folder itself.

VS Code extensions are powerful; they can execute JavaScript or TypeScript code with the permissions of the logged-in user. This means a malicious extension could gain broad access to local files, sensitive source code, SSH keys, cloud credentials, browser-accessible tokens, and other critical development tools.

The danger extends beyond the initial compromise. Once installed, a malicious extension can persist on the system and activate during subsequent VS Code sessions. Even if the victim closes the malicious project, reboots their computer, and later opens a trusted repository, the attacker’s extension can continue to load and operate in the background.

This vulnerability is particularly concerning for developer workstations, which often serve as gateways to private repositories, CI/CD systems, code signing infrastructure, cloud accounts, and production secrets. Compromising a single developer device can therefore become the initial vector for a larger software supply-chain attack.

Microsoft’s documentation for Workspace Trust notes that users might be prompted to trust a workspace or install an extension when operating in Restricted Mode. Extensions that do not support Workspace Trust are supposed to be installed with limited functionality or disabled. However, according to Remedio Research, a crafted local VSIX extension can falsely declare support for untrusted workspaces. If VS Code accepts this declaration without presenting a clear security warning, the attacker can install the extension while the workspace ostensibly remains untrusted.

The incident highlights a broader principle: security boundaries must be applied consistently. Blocking dangerous command links in a rendered Markdown preview is insufficient if the same link can still be executed directly through the raw source editor.

What You Should Do

  • Avoid Clicking Suspicious Links: Exercise extreme caution with links found in unfamiliar repositories, especially those purporting to install dependencies, configure environments, or initiate project setup actions.
  • Disable Editor Links: Implement the user setting "editor.links": false in your VS Code configuration. This prevents the editor from automatically detecting and making links clickable, thereby neutralizing the attack vector.
  • Maintain Workspace Trust: Keep Workspace Trust enabled for all projects and rigorously review any prompts to trust unknown workspaces.
  • Regularly Review Extensions: Periodically audit your installed VS Code extensions, ensuring only legitimate and necessary extensions from trusted publishers are present.
  • Restrict Extension Installation: For organizational environments, implement centralized policies to restrict extension installation to approved publishers or specific extensions.
  • Treat Untrusted Code as Hostile: Until Microsoft fully addresses the consistent handling of command links across all editor interfaces, developers should assume that any links in untrusted code repositories are potentially malicious.

Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.

Tags:

AttackSecurityVulnerability

Share Article

Marcus Rodriguez

Marcus Rodriguez

Marcus is a security researcher and investigative journalist with expertise in vulnerability research, bug bounties, and cloud security. Since 2017, Marcus has been breaking stories on critical vulnerabilities affecting major platforms. His investigative work has led to the disclosure of numerous security flaws and improved defenses across the industry. Marcus is an active participant in bug bounty programs and has been recognized for responsible disclosure practices. He holds multiple security certifications and regularly speaks at industry events.

Previous Post

MovieReaper Malware Poisons Torrents, Uses Solana for C2

Next Post

AI Malware Evades Detection by Rewriting Itself Hourly

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts
Critical VS Code Vulnerability Lets Attackers Access PCs
September 18, 2026
MovieReaper Malware Poisons Torrents, Uses Solana for C2
September 18, 2026
WordPress Patches 11 Vulnerabilities, Including XSS and RCE Flaws
September 18, 2026
Top Authors
Marcus Rodriguez
Marcus Rodriguez
David kimber
David kimber
Jennifer sherman
Jennifer sherman
Let's Connect
156k
2.25m
285k

Related Posts

Jennifer sherman
By Jennifer sherman
Threats

GlassWorm Attacks macOS via Malicious VS Code…

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Attacks

ClickFix Attack Hides Malicious Code via Stegan Security

January 1, 2026
Sarah simpson
By Sarah simpson
Vulnerabilities

MongoBleed Detector Tool Released to Detect MongoDB Vulnerability(CVE-2025-14847)

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Breaches

Conti Ransomware Gang Leaders & Infrastructure Exposed

January 1, 2026
Hackers News Hackers News
  • [email protected]

Quick Links

  • Contact Us
  • Privacy Policy
  • Terms of service

Categories

Attacks
Breaches
Comparisons
CyberSecurity News
Threats
Vulnerabilities

Let's keep in touch

receive fresh updates and breaking cyber news every day and week!

All Rights Reserved by HackersRadar ©2026

Follow Us