CVE-2026-120782: Microsoft Visual Studio Code - Code Injection
- Cve: CVE-2026-120782
- Name: Microsoft Visual Studio Code - Code Injection
- Description: Improper control of generation of code ('code injection') in Visual Studio Code allows an unauthorized attacker to bypass a security feature locally.
- Impact: Local attackers can bypass security features, potentially leading to unauthorized actions or code execution.
- Remediation: Update to the latest version of Visual Studio Code.
- Vulnerability impact: privilege_escalation
- Requirement type: none
- Labels source: securitycontext
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00346
- Epss percentile: 0.285
- Assignee: [email protected]
- Published at: 2026-11-10T19:20:27Z
- Age in days: 14
- Modified at: 2026-11-11T02:17:10Z
- Patch available: yes
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-120782
- Nvd status: awaiting_analysis
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
| Url | Source | Tags |
|---|---|---|
| https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-120782 | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| microsoft:visual_studio_code | >= 1.0.0, < 1.145.3 | no | cna | /v1/products/microsoft/visual_studio_code |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exposed hosts: 5
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports