Visual Studio Code Information Disclosure Vulnerability (CVE-2026-47285)
Visual Studio Code has a command injection flaw that lets an unauthorised attacker disclose information over a network. The attacker must entice the user to open a malicious file in VS Code.
Description
Improper neutralization of special elements used in a command ('command injection') in Visual Studio Code allows an unauthorized attacker to disclose information over a network.
FAQ
According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? The user would have be enticed to open a malicious file in vscode. Users should never open anything that they do not know or trust to be safe.
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 improper neutralisation of special elements in a command, so crafted file content is treated as part of a command.
Impact
An attacker could disclose information over a network, but only if the user is enticed to open a malicious file.
What the attacker needed
Victim opens a malicious file in VS Code
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.
Command injection means a program runs part of an attacker's input as if it were a system command. Here, opening a crafted file in the code editor could make it run something unintended and leak data. The user has to be tricked into opening that file.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.