Skip to content
Path traversal Advisory Intermediate CVE-2026-41612

Visual Studio Code Information Disclosure Vulnerability (CVE-2026-41612)

A relative path traversal flaw in Visual Studio Code lets an unauthorised attacker disclose local file path information. Exploiting it requires the user to trigger a payload in the application.

Aastik Gakhar Follow

Originally disclosed on Microsoft

High 5.5 View original

Description

Relative path traversal in Visual Studio Code allows an unauthorized attacker to disclose information locally.

FAQ

What type of information could be disclosed by this vulnerability? The type of information that could be disclosed if an attacker successfully exploited this vulnerability includes unauthorized access to the file system, specifically file path information.

FAQ

According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? Exploitation of this vulnerability requires that a user trigger the payload in the application.

Visual Studio Code

Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Aastik Gakhar. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could disclose file path information on the local system, but the user must trigger the payload for exploitation to succeed.

What the attacker needed

User triggers a payload in the app

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A path traversal bug means a program can be tricked into reading files outside the folder it is meant to use. Here, someone could learn the names and locations of files on the victim's computer. The victim has to do something in the app to trigger it, so it is not fully automatic.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.