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

 

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

Published: September 9, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to tamper with files.

The vulnerability exists due to improper limitation of a pathname to a restricted directory (path traversal) in Visual Studio Code when handling user-controlled pathnames. A remote attacker can use path traversal to access files outside a restricted directory to tamper with files.

User interaction is required.


Affected software

Visual Studio Code

How to mitigate CVE-2026-81377

Install security update from vendor's website.

Visual Studio Code - update to 1.136.2

External References

Related Security Bulletins