Visual Studio Code Information Disclosure Vulnerability (CVE-2026-102229)
Visual Studio Code has a path traversal flaw that lets an authorised attacker escape the sandbox and read local files over a network. The text does not describe how the attack is carried out.
Originally disclosed on Microsoft
Description
Improper limitation of a pathname to a restricted directory ('path traversal') in Visual Studio Code allows an authorized attacker to disclose information over a network.
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 by escaping the sandbox, is the ability to read local files.
Visual Studio Code
Visual Studio Code
Microsoft
Microsoft
Customer Action Required
Yes
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
Root cause
Likely the application does not properly restrict file paths to the intended directory, allowing a sandbox escape.
Impact
An authorised attacker could read local files by escaping the sandbox, but the text gives no further detail on conditions or limits.
What the attacker needed
Authorised access to the product
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 opening files outside the folder it is meant to use. Here, someone who already has some access to Visual Studio Code could use that mistake to read files on the machine, even though the editor is supposed to keep such actions inside a sandbox (a restricted area). The notice does not explain the exact method.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.