Visual Studio Code Security Feature Bypass Vulnerability (CVE-2026-81357)
A server-side request forgery flaw in Visual Studio Code lets an attacker influence content processed by the VS Code agent so it requests a crafted URL. This bypasses the network access restrictions the agent is meant to enforce, allowing outbound connections to resources the policy should block.
Originally disclosed on Microsoft
Description
Server-side request forgery (ssrf) in Visual Studio Code allows an unauthorized attacker to bypass a security feature over a network.
FAQ
What security feature could be bypassed by successfully exploiting this vulnerability? An attacker who successfully exploited this vulnerability could bypass the network access restrictions enforced for the Visual Studio Code agent, allowing outbound connections to resources that the configured policy is intended to block.
FAQ
How could an attacker exploit this vulnerability? An attacker could influence content processed by the Visual Studio Code agent so that it requests a specially crafted URL. Successful exploitation could bypass configured network restrictions and allow access to resources that the policy is intended to block. User interaction is required to run the agent against attacker-controlled content.
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 agent does not properly validate or restrict the URLs it fetches when processing content, so attacker-influenced content can direct outbound requests past the configured network policy.
Impact
An attacker could bypass the agent's configured network restrictions and reach resources the policy is intended to block, though user interaction is required to run the agent against attacker-controlled content.
What the attacker needed
User runs the agent on attacker content
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.
Server-side request forgery is when a program is tricked into making a network request to a destination the attacker chooses, rather than one the user intended. Here the VS Code agent is supposed to only reach certain places, but crafted content can make it reach somewhere else. The attacker needs the victim to run the agent on content the attacker controls.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.