Repository navigation
[release/1.146] chore: port fixes from release/1.145 - #347445
Conversation
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: TylerLeonhardtMatched files:
Kyle Cutler (@kycutler)Matched files:
Joaquín Ruales (@jruales)Matched files:
|
ecc647f to
8bda354
Compare
|
One or more custom setup steps configured for this repository failed during this Copilot code review run: Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review. Note You can configure setup steps for Copilot code review separately from Copilot cloud agent with a |
There was a problem hiding this comment.
🟡 Changes recommended
File-upload auto-approval trusts lexical paths, allowing symlinks to bypass confirmation and expose files outside workspace or approved upload folders.
3 open issues
What changed in this PR
Ports fixes from release/1.145 to release/1.146, primarily strengthening security boundaries across VS Code’s CLI, editor, workbench, and Agent Host.
Changes:
- Hardens web authentication, renderer debugging, browser uploads, UNC access, and agent-originated command handling.
- Strengthens configuration trust filtering, MCP input validation, and untrusted Markdown/CSS handling.
- Adds regression coverage and updates the bundled JavaScript debugger.
| File | Description |
|---|---|
src/vs/workbench/services/workspaces/test/common/workspaceTrust.test.ts |
Tests malformed trust settings and network workspace trust. |
src/vs/workbench/services/workspaces/common/workspaceTrust.ts |
Keeps trust enabled by default and excludes HTTP resources from automatic trust. |
src/vs/workbench/services/extensionManagement/test/browser/extensionManagementService.test.ts |
Tests publisher-dialog escaping and command restrictions. |
src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts |
Escapes publisher labels and requires explicit allowlist approval. |
src/vs/workbench/services/configuration/test/common/configurationModels.test.ts |
Tests prototype-safe standalone configuration merging. |
src/vs/workbench/services/configuration/test/browser/configurationService.test.ts |
Tests unregistered-setting filtering and trust transitions. |
src/vs/workbench/services/configuration/browser/configurationService.ts |
Expands change notifications during trust transitions. |
src/vs/workbench/services/configuration/browser/configuration.ts |
Filters unregistered settings in untrusted workspaces. |
src/vs/workbench/contrib/workspace/browser/workspace.contribution.ts |
Enables startup trust prompts for network workspaces. |
src/vs/workbench/contrib/notebook/test/browser/notebookEditor.test.ts |
Tests notebook font CSS sanitization. |
src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts |
Validates font values before CSS interpolation. |
src/vs/workbench/contrib/mcp/test/common/mcpServerRequestHandler.test.ts |
Tests rejection of non-string elicitation messages. |
src/vs/workbench/contrib/mcp/test/browser/mcpWorkbenchService.test.ts |
Tests install-link inputs and command-variable rejection. |
src/vs/workbench/contrib/mcp/test/browser/mcpElicitationService.test.ts |
Tests literal notification content and message validation. |
src/vs/workbench/contrib/mcp/common/mcpServerRequestHandler.ts |
Validates elicitation messages before dispatch. |
src/vs/workbench/contrib/mcp/browser/mcpWorkbenchService.ts |
Sanitizes install-link inputs and rejects command variables. |
src/vs/workbench/contrib/mcp/browser/mcpServerEditor.ts |
Displays working directories and installation inputs. |
src/vs/workbench/contrib/mcp/browser/mcpElicitationService.ts |
Validates messages and renders notifications as literal text. |
src/vs/workbench/contrib/extensions/test/browser/extensionHoverWidget.test.ts |
Tests escaping of marketplace text in hovers. |
src/vs/workbench/contrib/extensions/electron-browser/debugExtensionHostAction.ts |
Passes private renderer WebSocket addresses to the debugger. |
src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.ts |
Escapes extension names in installation messages. |
src/vs/workbench/contrib/extensions/browser/extensionsWidgets.ts |
Escapes untrusted extension hover content. |
src/vs/workbench/contrib/extensions/browser/extensionsActions.ts |
Escapes extension update-consent messages. |
src/vs/workbench/contrib/chat/test/common/tools/builtinTools/chatExternalPathConfirmation.test.ts |
Tests multi-file approval and combined folder grants. |
src/vs/workbench/contrib/chat/common/tools/builtinTools/chatExternalPathConfirmation.ts |
Supports multi-path checks and folder approvals. |
src/vs/workbench/contrib/browserView/test/electron-browser/tools/handleDialogBrowserTool.test.ts |
Tests upload validation, confirmation, and session grants. |
src/vs/workbench/contrib/browserView/electron-browser/tools/handleDialogBrowserTool.ts |
Adds upload confirmation, parameter validation, and folder grants. |
src/vs/workbench/contrib/browserView/electron-browser/tools/browserTools.contribution.ts |
Registers upload-specific confirmation handling. |
src/vs/workbench/api/test/common/extHostMcp.test.ts |
Extends rejected SSE endpoint coverage. |
src/vs/workbench/api/common/extHostMcp.ts |
Validates legacy SSE endpoints before accepting them. |
src/vs/platform/protocol/electron-main/protocolMainService.ts |
Applies UNC restrictions to extension-based file access. |
src/vs/platform/mcp/common/mcpPlatformTypes.ts |
Supports labeled MCP input options. |
src/vs/platform/extensionManagement/test/common/allowedExtensionsService.test.ts |
Tests allowlists against inherited property names. |
src/vs/platform/extensionManagement/test/common/abstractExtensionManagementService.test.ts |
Tests safe platform-incompatibility messages. |
src/vs/platform/extensionManagement/common/allowedExtensionsService.ts |
Uses a prototype-free extension allowlist. |
src/vs/platform/extensionManagement/common/abstractExtensionManagementService.ts |
Escapes extension names in compatibility messages. |
src/vs/platform/debug/test/node/rendererDebugBridge.test.ts |
Tests debugger host, origin, discovery, and socket restrictions. |
src/vs/platform/debug/node/rendererDebugBridge.ts |
Adds a restricted renderer debugger bridge. |
src/vs/platform/debug/electron-main/extensionHostDebugIpc.ts |
Uses the extracted debugger bridge. |
src/vs/platform/configuration/test/common/configurationModels.test.ts |
Tests nested filtering and prototype-safe model operations. |
src/vs/platform/configuration/test/common/configuration.test.ts |
Tests prototype-safe dotted-key insertion. |
src/vs/platform/configuration/common/configurationModels.ts |
Hardens merges and applies ancestor setting restrictions. |
src/vs/platform/configuration/common/configuration.ts |
Avoids inherited properties when building configuration trees. |
src/vs/platform/agentHost/test/node/localChatCommand.test.ts |
Supplies message origin in local-command tests. |
src/vs/platform/agentHost/test/node/chatContributions.test.ts |
Tests origin-aware bang-command handling and queue forwarding. |
src/vs/platform/agentHost/test/node/agentSideEffects.test.ts |
Verifies agent messages do not launch bang-command terminals. |
src/vs/platform/agentHost/node/localCommands/localChatCommand.ts |
Adds origin to local-command requests. |
src/vs/platform/agentHost/node/localCommands/bangLocalCommand.ts |
Limits bang-command execution to user messages. |
src/vs/platform/agentHost/node/chatContributions/localCommand/localCommandContribution.ts |
Forwards message origin to local commands. |
src/vs/editor/test/common/modes/supports/tokenization.test.ts |
Tests safe token font CSS generation. |
src/vs/editor/contrib/inlineCompletions/test/browser/ghostTextView.test.ts |
Tests inline-suggestion font sanitization. |
src/vs/editor/contrib/inlineCompletions/browser/view/inlineSuggestionsView.ts |
Sanitizes inline-suggestion font CSS. |
src/vs/editor/common/languages/supports/tokenization.ts |
Sanitizes token fonts and validates size multipliers. |
src/vs/editor/common/config/fontInfo.ts |
Adds shared font-family sanitization. |
src/vs/editor/common/config/editorOptions.ts |
Marks inline-suggestion font configuration as restricted. |
src/vs/base/test/node/unc.test.ts |
Tests UNC host allowlist matching. |
src/vs/base/test/common/htmlContent.test.ts |
Tests plain-text Markdown escaping. |
src/vs/base/node/unc.ts |
Adds UNC access checks for non-Node filesystem paths. |
src/vs/base/common/htmlContent.ts |
Adds an untrusted Markdown escaping helper. |
product.json |
Updates the bundled JavaScript debugger to 1.140.1. |
cli/src/commands/serve_web.rs |
Adds authentication before routing, token cookies, and regression tests. |
Review effort: Balanced


No description provided.