Security Feature Bypass Vulnerability
HighCVE-2025-21264 · Published May 13, 2025
## VS Code - Security Feature Bypass Vulnerability A security feature bypass vulnerability exists in VS Code 1.100.0 and earlier versions where a maliciously crafted URL could be considered trusted when it should not have due to how VS Code handled glob patterns in the trusted domains feature. When paired with the `#fetch` tool in Chat, this scenario would require the attacker to convince an LLM (via prompt injection) to fetch the maliciously crafted URL but when fetched, the user would have no moment to confirm the flighting of the request. Additionally, this vulnerability sparked a review of usage of the trusted domains feature which has only been used in the following: * Deciding if the user should see confirmation before a URL should be opened externally in the user's browser * Deciding if the user should see confirmation before a URL is fetched using the `#fetch` tool in a Chat session * Deciding if a remote image URL should be allowed to render in Chat After consideration, we have removed the dependency on the trusted domains service for Chat-related features due to the expanded security consideration of Chat features over opening a URL in the browser. The new behavior for ...
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| vscode Product | < 1.100.1 | 1.100.1 |
Details and references
## VS Code - Security Feature Bypass Vulnerability A security feature bypass vulnerability exists in VS Code 1.100.0 and earlier versions where a maliciously crafted URL could be considered trusted when it should not have due to how VS Code handled glob patterns in the trusted domains feature. When paired with the `#fetch` tool in Chat, this scenario would require the attacker to convince an LLM (via prompt injection) to fetch the maliciously crafted URL but when fetched, the user would have no moment to confirm the flighting of the request. Additionally, this vulnerability sparked a review of usage of the trusted domains feature which has only been used in the following: * Deciding if the user should see confirmation before a URL should be opened externally in the user's browser * Deciding if the user should see confirmation before a URL is fetched using the `#fetch` tool in a Chat session * Deciding if a remote image URL should be allowed to render in Chat After consideration, we have removed the dependency on the trusted domains service for Chat-related features due to the expanded security consideration of Chat features over opening a URL in the browser. The new behavior for these 2 features is as followed: * `#fetch` tool confirmation: Confirmation is showed for each URL, regardless of domain, once per session... you also have the ability to auto-approve `#fetch` tool calls if you accept that risk * Remote image rendering in Chat: We no longer support remote image URL rendering in Chat ### Patches The fix is available starting with **VS Code 1.100.1**. The fix (https://github.com/microsoft/vscode/commit/7ffa080e66b834750358bbbf3940ada8d076a119) mitigates this attack by performing input validation on the URL pointing to the repository to be cloned. ### Workarounds Do not use Chat or open suspicious URLs. ### References * The patch for this can be found at https://github.com/microsoft/vscode/commit/7ffa080e66b834750358bbbf3940ada8d076a119 * A github issue for this can be found at https://github.com/microsoft/vscode/issues/248848 * MSRC details for this can be found at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21264
- Severity from
- GitHub (reviewed advisory)
More Microsoft advisories
All Microsoft| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Feb 10 | Terminal auto replies restriction | High8.0 | 1.109.1 |
| Feb 10 | Workspace trust for MCP servers | Low | 1.109.1 |
| Apr 82025 | Remote Code Execution Vulnerability | High | 1.99.1 |
| Feb 112025 | Elevation of Privilege Vulnerability | High | 1.97.1 |
| Feb 112025 | Elevation of Privilege Vulnerability | Medium | 1.97.1 |
| Oct 82024 | Visual Studio Code for Linux Remote Code Execution Vulnerability | High | 1.94.1 |