Path traversal in Visual Studio Code - CVE-2026-78461

 

Path traversal in Visual Studio Code - CVE-2026-78461

Published: September 9, 2026


Vulnerability identifier: #VU148215
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-78461
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to bypass the Workspace Trust security feature.

The vulnerability exists due to improper limitation of a pathname to a restricted directory (path traversal) in Visual Studio Code when handling a crafted pathname. A remote attacker can use path traversal to bypass the Workspace Trust security feature.

User interaction is required.


Affected software

Visual Studio Code

How to mitigate CVE-2026-78461

Install security update from vendor's website.

Visual Studio Code - update to 1.136.2

External References

Related Security Bulletins