---
id: CVE-2026-70336
title: >-
  Improper control of generation of code ('code injection') in Visual Studio
  Code allows an unauthorized attacker to execute code over a network.
summary: >-
  Improper control of generation of code ('code injection') in Visual Studio
  Code allows an unauthorized attacker to execute code over a network.
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
vendor: microsoft
product: visual_studio_code
affected:
  - visual_studio_code < 1.132.1
patched:
  - visual_studio_code 1.132.1
published: '2026-08-11'
updated: '2026-09-25'
sourceUpdated: '2026-09-25T20:17:45.570'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-70336'
references:
  - url: 'https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-70336'
    label: secure@microsoft.com
tags:
  - nvd
  - cve.org
epss: 0.00817
epssPercentile: 0.55329
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-08-12T15:43:52.326685Z'
ingestedAt: '2026-08-29T19:41:15.363Z'
---

## Overview

Improper control of generation of code ('code injection') in Visual Studio Code allows an unauthorized attacker to execute code over a network.

## Affected

- `visual_studio_code < 1.132.1`

## Remediation

Upgrade past the affected range:

- `visual_studio_code 1.132.1`
