Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted workspace or file
-
DeliveryVictim opens project in VS Code
-
ExploitTrigger code injection, bypass security feature
-
ExecutionExecute code in user context
-
ImpactFull compromise of developer host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires local access to the attack surface (AV:L) and user interaction (UI:R): a user running an affected Visual Studio Code build (1.0.0 up to but not including 1.145.3) must open or act upon attacker-supplied content, such as a crafted workspace or file, which triggers the code injection and bypasses an editor security feature. PR:N means no prior authentication or privilege on the target is needed by the attacker, but the required user interaction and local vector are the principal limiting factors - the victim cannot be compromised by an unsolicited remote request and must be induced to open the malicious content. The specific product feature, setting, or file type that triggers the bypass is not described in the available sources. Upgrading to Visual Studio Code 1.145.3 or later removes the affected versions. |
| Impact | Signals are moderately consistent but incomplete. The CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, 7.8 HIGH) describes a local, low-complexity flaw that requires no privileges but does require user interaction, yielding full confidentiality, integrity and availability impact on the affected host - consistent with the CWE-94 code-injection/'bypass a security feature locally' framing. The vendor (Microsoft, secure@microsoft.com) has shipped a patch and the vuln.today priority is 'this_week' rather than act_now/emergency. No EPSS score, no CISA KEV listing, and no PoC reference are present in the input, so there is no public exploitation signal to corroborate or contradict the CVSS severity - this is a high-CVSS issue whose real-world exploitation likelihood is currently unquantified. The combination AV:L + UI:R means an attacker cannot reach this purely remotely: a local vector plus required user interaction implies a victim must open or act on attacker-supplied content (e.g. a crafted workspace/file) on a machine the attacker can already influence. Net: a genuine high-severity patch-this-week item for developer endpoints, but the absence of EPSS/KEV/PoC data means urgency should track the vendor's 'this_week' label, not emergency escalation. |
| Exploit ScenarioDerived | An attacker crafts a malicious VS Code workspace, project folder, or file that abuses the code-injection weakness to bypass an editor security feature; when a developer opens it locally and performs the triggering interaction, attacker-controlled code executes in the user's context. No public exploit code or PoC reference is present in the provided data. The local attack vector plus required user interaction means the victim must be induced to open the crafted content rather than being hit by a purely remote request. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 10, 2026
Code injection (CWE-94) in Visual Studio Code builds from 1.0.0 up to but not including 1.145.3 allows an attacker to bypass an editor security feature and execute code in the context of the running editor. Exploitation is local (AV:L) and requires user interaction (UI:R): the victim must open or act on attacker-supplied content, and no prior authentication or privilege is needed (PR:N), so the user interaction and local vector are the principal limiting factors. Microsoft has released a vendor patch in 1.145.3; no public exploit code has been identified and there is no CISA KEV confirmation of active exploitation at time of analysis.
RemediationAI
Vendor-released patch: upgrade Visual Studio Code to version 1.145.3 or later, which is outside the affected range (1.0.0 <1.145.3); the fix and any vendor notes are documented in the Microsoft Security Update Guide at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-120782. Patch availability is confirmed from the vendor, and the priority decision signal for this CVE is this_week rather than emergency. The available sources do not describe any workaround, configuration change, or feature that can be disabled to mitigate the issue while remaining on an affected build, so no specific compensating control can be recommended from the evidence; until the update is applied, exposure is limited by the requirement that a user open or act upon attacker-supplied content locally.
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 flaw is classified as CWE-94, improper control of the generation of code, which in an extensible editor such as Visual Studio Code means crafted input can cause code to be generated and run rather than being safely constrained. The assessed vector is CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - local attack surface, no privileges required, mandatory user interaction, unchanged scope, and high confidentiality, integrity and availability impact - placing it at 7.8. The specific product feature, setting, or file type that is abused to bypass the security feature, and the precise mechanism by which code generation is subverted, are not described in the available sources. Affected builds are enumerated by the EUVD entry as Visual Studio Code 1.0.0 through versions prior to 1.145.3; no CPE strings were supplied with the intelligence, so the exact edition/channel mapping beyond that version range is unverified.
Know when the next one hits your stack
- 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 and required user interaction per the 'locally' description and need to open crafted content; no prior privilege (PR:N), with code execution giving full C/I/A impact.
Primary rating from Vendor (microsoft).
CVSS VectorVendor: microsoft
Lifecycle Timeline
2DescriptionCVE.org
Improper control of generation of code ('code injection') in Visual Studio Code allows an unauthorized attacker to bypass a security feature locally.
Executive ViewAI
A high-severity code injection vulnerability (CVE-2026-120782) affects Microsoft Visual Studio Code versions prior to 1.145.3, enabling attackers to bypass editor security features and execute code with the privileges of the running editor when a user opens malicious content. Development teams and any employees using VS Code are at risk, as successful exploitation could lead to unauthorized code execution, data compromise, or further network intrusion, though local user interaction reduces the attack surface.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-122231
NVD
CVE.org
EPSS
Vulnrichment
GitHub PoC
Exploit-DB