Skip to main content

VS Code Python CVE-2026-54981

| EUVDEUVD-2026-56605 HIGH
Protection Mechanism Failure (CWE-693)
2026-08-11 secure@microsoft.com GHSA-pwwh-635g-q245
7.8
CVSS 3.1 · Vendor: microsoft
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts malicious Python workspace
  2. Delivery
    Victim clones or receives workspace
  3. Exploit
    Victim opens workspace in VS Code
  4. Execution
    Python extension loads untrusted configuration
  5. Persist
    Protection mechanism bypassed
  6. Impact
    Arbitrary 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Python extension for Visual Studio Code 2020 <1.132.1

Affected Packages

euvd python_extension_for_visual_studio_code fix: 1.132.1

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

Vendor (microsoft) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
ENISA EUVD HIGH
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (microsoft).

CVSS VectorVendor: microsoft

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Aug 11, 2026 - 18:19 EUVD
CVE Published
Aug 11, 2026 - 17:18 cve.org
HIGH 7.8

DescriptionCVE.org

Inclusion of functionality from untrusted control sphere in Visual Studio Code - Python extension allows an unauthorized attacker to bypass a security feature locally.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 63% exploitable
Prevalence
High
one of the most-installed VS Code extensions, widely used by developers globally
Threat Intel
1
1 sources
Vendor Status
Publicly Disclosed:No
Exploited:No
Latest Software Release:Exploitation Less Likely
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: +5

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2022-41034 HIGH POC
7.8 Oct 11

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent

CVE-2022-30129 HIGH POC
8.8 May 10

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 8.8), this vulnerability is remotely e

CVE-2026-81376 CRITICAL
9.6 Sep 08

Security-feature bypass in Microsoft Visual Studio Code before 1.136.2 lets a remote, unauthenticated attacker defeat a

CVE-2026-102238 CRITICAL
9.6 Oct 13

Remote code execution in Visual Studio Code (versions 1.0.0 up to but not including 1.141.1) is achievable through a pat

CVE-2026-47281 CRITICAL
9.6 Jun 09

Privilege escalation in Microsoft Visual Studio Code allows remote unauthenticated attackers to elevate privileges over

CVE-2021-43891 HIGH
7.8 Dec 15

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent

CVE-2026-57102 HIGH
8.8 Jul 14

Security-feature bypass in Microsoft Visual Studio Code lets a remote attacker deliver functionality from an untrusted c

CVE-2026-59113 HIGH
8.8 Aug 11

Remote code execution in Visual Studio Code (versions 1.0.0 through 1.132.0) is enabled by a missing authorization check

CVE-2026-69370 HIGH
8.8 Oct 13

Command injection in Visual Studio Code 1.0.0 through 1.141.0 allows an unauthenticated remote attacker to execute arbit

CVE-2026-70336 HIGH
8.8 Aug 11

Remote code execution in Microsoft Visual Studio Code allows a network-based attacker to inject and execute arbitrary co

CVE-2026-102235 HIGH
8.8 Oct 13

Remote code execution in Visual Studio Code versions 1.0.0 through 1.141.1 allows an unauthenticated, network-positioned

CVE-2026-78462 HIGH
8.8 Sep 08

Authorization bypass in Visual Studio Code versions 1.0.0 through 1.136.1 allows an unauthenticated network attacker to

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy