---
id: CVE-2026-40376
title: Visual Studio Code Elevation of Privilege Vulnerability
summary: >-
  Improper input validation in Visual Studio Code allows an unauthorized
  attacker to elevate privileges over a network.
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C'
cvssSource: cna
cwe:
  - CWE-20
vendor: Microsoft
product: Visual Studio Code
affected:
  - visual_studio_code >= 1.0.0 < 1.123.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-06-10T03:56:52.300828Z'
published: '2026-06-09'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T13:44:18.551Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-40376'
references:
  - url: 'https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40376'
    label: Visual Studio Code Elevation of Privilege Vulnerability
tags:
  - cve.org
epss: 0.00671
epssPercentile: 0.50619
ingestedAt: '2026-09-24T14:44:21.403Z'
---

## Overview

Improper input validation in Visual Studio Code allows an unauthorized attacker to elevate privileges over a network.

## Affected

- `visual_studio_code >= 1.0.0 < 1.123.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
