Input validation error in Visual Studio Code - CVE-2026-40376

 

Input validation error in Visual Studio Code - CVE-2026-40376

Published: June 10, 2026


Vulnerability identifier: #VU134266
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2026-40376
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Microsoft
Affected software:
Visual Studio Code

Detailed vulnerability description

The vulnerability allows a remote attacker to escalate privileges on the target system.

The vulnerability exists due to insufficient validation of user-supplied input in Visual Studio Code. A remote attacker can pass specially crafted input to the application and gain elevated privileges on the system.


How to mitigate CVE-2026-40376

Install updates from vendor's website.

Sources