Microsoft Fixes Visual Studio Code Path Traversal Information Disclosure
Vulnerability Disclosure · 1 source · Updated 5mo ago · First seen May 25, 2026

Microsoft disclosed and patched CVE-2026-41612, an information disclosure flaw in Visual Studio Code caused by relative path traversal and path traversal issues. The vulnerability is mapped to CWE-23 and CWE-22 and could allow an unauthorized local attacker to disclose file system information, potentially exposing sensitive data on affected systems.
Microsoft assigned the bug a CVSS 3.1 score of 5.5 and said exploitation requires user interaction. The company rated the issue as having high confidentiality impact with no integrity or availability impact, assessed exploitation as less likely, and reported that the flaw was not publicly disclosed and not exploited in the wild at the time of publication. An official security fix is available through Microsoft's update guidance.
Why it matters
Impact assessment
CVE-2026-41612 affects Visual Studio Code users and organizations that permit local development workstations, shared endpoints, or developer environments where untrusted content can be opened in the editor. The impact is limited to information disclosure rather than code execution or service disruption, but exposed file path information can reveal sensitive filesystem structure and aid follow-on attacks.
The severity is moderate overall, with Microsoft assigning CVSS 3.1 5.5 and rating confidentiality impact as high while integrity and availability impacts are none. Exposure appears broad to Visual Studio Code deployments but exploitation is constrained because the attack is local, requires user interaction, and Microsoft reported no public disclosure or in-the-wild exploitation at publication.
Supporting facts
- Affected product: Visual Studio Code
- Vulnerability type: information disclosure via relative path traversal and path traversal
- Affected population: developers, engineering workstations, VDI environments, and any enterprise endpoints running Visual Studio Code
- Business impact: disclosure of filesystem information, including file path information, which may expose sensitive environment details
- Operational impact: low direct disruption; higher concern as an enabler for reconnaissance or chained attacks
- Exploitation status: not publicly disclosed and not exploited in the wild at time of publication
- Vendor assessment: exploitation less likely


