Visual Studio Code Remote Code Execution Vulnerability (CVE-2026-59113)
Visual Studio Code lacks an authorization check when handling a specially crafted web page, allowing an attacker to make the application launch operating-system protocol handlers without prompting the user. This could result in code execution on the victim's system, though user interaction is required.
Originally disclosed on Microsoft
Description
Missing authorization in Visual Studio Code allows an unauthorized attacker to execute code over a network.
FAQ
How could an attacker exploit this vulnerability? An attacker could host a specially crafted web page and use social engineering to convince a user to have the application retrieve it. The malicious page could then cause the application to launch operating-system protocol handlers without prompting the user, which could result in code execution on the user's system. User interaction is required.
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
Impact
An attacker could achieve code execution on the user's system, but user interaction is required.
What the attacker needed
Victim uses Visual Studio Code; victim visits attacker page; user interaction required
How it was found
- Host a specially crafted web page.
- Use social engineering to convince a user to have the application retrieve the page.
- The malicious page causes the application to launch operating-system protocol handlers without prompting the user.
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.
Visual Studio Code is a popular code editor. A missing check meant that a malicious website could trick the editor into opening other programs on the computer without asking the user first. If those programs are dangerous, this could let an attacker run their own code, but the user still has to be convinced to visit the page.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.