NetSight
high7.8

CVE-2026-120782

Improper control of generation of code ('code injection') in Visual Studio Code allows an unauthorized attacker to bypass a security feature locally.

Impact

Improper control of generation of code ('code injection') in Visual Studio Code allows an unauthorized attacker to bypass a security feature locally.

An attacker can exploit this with local access to the system, without logging in, but a user has to do something, such as open a file or a link. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.

Affected products · Microsoft

ProductAffected versionsFixed by
Visual Studio Code
from 1.0.0 before 1.145.3
version 1.145.3

Weakness classification

References