Visual Studio Code Security Feature Bypass Vulnerability (CVE-2026-45496)
Visual Studio Code has a path traversal flaw that lets an attacker bypass its sensitive file protections locally. An attacker who exploits it could access files that the editor is meant to restrict.
Originally disclosed on Microsoft
Description
Improper limitation of a pathname to a restricted directory ('path traversal') in Visual Studio Code allows an unauthorized attacker to bypass a security feature locally.
FAQ
What kind of security feature could be bypassed by successfully exploiting this vulnerability? An attacker who successfully exploited this vulnerability could bypass Visual Studio Code sensitive file protections.
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 normalise or validate file paths before checking them against the restricted directory, so a crafted pathname can escape the intended folder.
Impact
An attacker could bypass Visual Studio Code's sensitive file protections, but the text says this happens locally and does not describe remote exploitation.
What the attacker needed
Local access to the machine
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.
Path traversal is when a program is tricked into using a file path that escapes the folder it is supposed to stay inside. Here, Visual Studio Code is meant to protect certain sensitive files, but a crafted path can get around that protection. The attacker needs to be able to run something locally on the machine to do this.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.