Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts malicious Python workspace
-
DeliveryVictim clones or receives workspace
-
ExploitVictim opens workspace in VS Code
-
ExecutionPython extension loads untrusted configuration
-
PersistProtection mechanism bypassed
-
ImpactArbitrary code executes as victim user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Protection mechanism completeness
|
| Exploitation Conditions | The victim must have the Python extension for Visual Studio Code (version prior to 1.132.1) installed and must actively open a workspace or project directory controlled by the attacker - for example, by cloning a malicious git repository and opening it in VS Code. This user interaction (UI:R) is the critical prerequisite: the attack cannot proceed without the victim opening the crafted workspace. The attacker does not require any system-level privileges (PR:N), only the ability to deliver a malicious workspace to the victim (e.g., via a public repository, shared archive, or phishing). Exploitation is limited to the local machine context (AV:L); remote network exploitation without prior workspace delivery is not possible. The specific protection mechanism being bypassed is not named in available data, but the CWE-693 classification and tags suggest an authentication or interpreter validation control within the extension. |
| Impact | The CVSS base score of 7.8 with vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H accurately reflects the threat profile: local attack vector, low complexity, no attacker privileges required, but mandatory user interaction. EPSS data was not provided in the intelligence feed, so probabilistic exploitation likelihood cannot be quantified. KEV status is absent, indicating no confirmed active exploitation by CISA. No POC is identified. Despite the lack of confirmed exploitation, the risk to developer populations is meaningful: the Python extension has an enormous install base, and developer machines are high-value targets (source code, credentials, CI/CD tokens). The combination of PR:N and AV:L is notable - it implies that while the attack is local, the attacker does not need privileged system access, consistent with workspace-poisoning attacks where the attacker's only foothold is crafting a malicious project that a victim opens. The full C:H/I:H/A:H triad suggests code execution within the VS Code process context. Real-world prioritization should be HIGH for developer workstations, particularly in organizations where developers clone external repositories from untrusted sources. The absence of an EPSS score and KEV listing limits confidence in quantifying immediate threat. |
| Exploit ScenarioDerived | An attacker crafts a malicious Python project repository containing workspace-level configuration designed to redirect the VS Code Python extension to load attacker-controlled interpreter paths or configuration overrides. When a developer clones and opens the project in VS Code with the Python extension installed, the extension processes the workspace configuration and loads functionality from the untrusted control sphere, bypassing a protection mechanism and achieving code execution within the developer's VS Code process. No public proof-of-concept has been identified, but the low attack complexity (AC:L) suggests the technique requires no specialized expertise beyond crafting the malicious workspace artifact. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
Security feature bypass in the Python extension for Visual Studio Code (versions prior to 1.132.1) allows a local attacker to load functionality from an untrusted control sphere, achieving full compromise of confidentiality, integrity, and availability. The attack requires user interaction - specifically opening a malicious workspace or project directory - making it highly relevant in developer supply-chain and social engineering scenarios such as cloning a weaponized repository. No public exploit code or CISA KEV listing has been identified at the time of analysis, but the full CIA impact and low attack complexity elevate real-world concern for development environments.
RemediationAI
Upgrade the Python extension for Visual Studio Code to version 1.132.1 or later, which contains the vendor-released patch. This can be done directly from within VS Code via the Extensions panel (search 'Python', then click Update) or through the VS Code CLI. The vendor advisory is at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-54981. Until the patch is applied, a compensating control is to avoid opening Python workspaces from untrusted sources (e.g., cloned public repositories or external collaborator projects), as this is the required user interaction that enables exploitation. Organizations can also restrict VS Code workspace trust settings via the Workspace Trust feature (built into VS Code since 1.57) to prompt users before executing extension features in unknown workspaces - this directly limits the extension's ability to load untrusted workspace-local configuration. Note that disabling workspace trust prompts in corporate settings would remove this compensating control. No other workarounds are documented in the available intelligence.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The VS Code Python extension (CPE-identified as Python extension for Visual Studio Code, versions up to but not including 1.132.1) is the official Microsoft-maintained extension enabling Python development in VS Code. CWE-693 (Protection Mechanism Failure) describes a failure of a built-in security control, in this case combined with CWE-829-like behavior: the extension includes or executes functionality sourced from an untrusted control sphere. In VS Code's architecture, extensions frequently resolve interpreter paths, configuration files (e.g., pyrightconfig.json, .env, pyproject.toml), and workspace-local settings from the opened project directory. If the extension honors workspace-controlled configuration without sufficient validation - for example, trusting a workspace-defined Python interpreter path or a user-settings override - an attacker who controls workspace content can redirect extension behavior to load attacker-supplied code or bypass a protection mechanism (such as interpreter validation or sandboxing). This is consistent with the CVSS AV:L/UI:R pattern, which describes a local workspace poisoning vector where a victim must open the crafted project.
Know when Visual Studio Code gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Local vector confirmed by workspace-open trigger; PR:N because attacker needs no system privileges, only workspace content control; UI:R mandatory as victim must open the project.
Primary rating from Vendor (microsoft).
CVSS VectorVendor: microsoft
Lifecycle Timeline
2DescriptionCVE.org
Inclusion of functionality from untrusted control sphere in Visual Studio Code - Python extension allows an unauthorized attacker to bypass a security feature locally.
Articles & Coverage 1
Executive ViewAI
A security bypass in the Python extension for Visual Studio Code (versions prior to 1.132.1) enables full machine compromise when developers open a malicious workspace or repository, creating a direct supply-chain risk for development teams. An attacker can achieve code execution, steal credentials, and inject backdoors into development environments through social engineering tactics such as crafted GitHub repositories.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Visual Studio Code
View allVisual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent
Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 8.8), this vulnerability is remotely e
Security-feature bypass in Microsoft Visual Studio Code before 1.136.2 lets a remote, unauthenticated attacker defeat a
Remote code execution in Visual Studio Code (versions 1.0.0 up to but not including 1.141.1) is achievable through a pat
Privilege escalation in Microsoft Visual Studio Code allows remote unauthenticated attackers to elevate privileges over
Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent
Security-feature bypass in Microsoft Visual Studio Code lets a remote attacker deliver functionality from an untrusted c
Remote code execution in Visual Studio Code (versions 1.0.0 through 1.132.0) is enabled by a missing authorization check
Command injection in Visual Studio Code 1.0.0 through 1.141.0 allows an unauthenticated remote attacker to execute arbit
Remote code execution in Microsoft Visual Studio Code allows a network-based attacker to inject and execute arbitrary co
Remote code execution in Visual Studio Code versions 1.0.0 through 1.141.1 allows an unauthenticated, network-positioned
Authorization bypass in Visual Studio Code versions 1.0.0 through 1.136.1 allows an unauthenticated network attacker to
EUVD-2026-56605
GHSA-pwwh-635g-q245
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB