Skip to content

Escape extension hover name and description#309971

Merged
sandy081 merged 1 commit intomainfrom
agents/extension-hover-security-review
Apr 14, 2026
Merged

Escape extension hover name and description#309971
sandy081 merged 1 commit intomainfrom
agents/extension-hover-security-review

Conversation

@sandy081
Copy link
Copy Markdown
Member

Summary

Escapes extension displayName and description when building the hover markdown.

This prevents marketplace-provided text from being interpreted as trusted markdown while preserving the existing hover layout and styling.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 14, 2026 20:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Escapes marketplace-provided extension displayName and description when building hover markdown to prevent untrusted markdown injection while keeping the existing hover formatting.

Changes:

  • Render displayName as escaped text while preserving bold styling.
  • Render description as escaped text instead of trusted markdown.
Show a summary per file
File Description
src/vs/workbench/contrib/extensions/browser/extensionsWidgets.ts Updates hover markdown construction to escape displayName and description via appendText.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 1a6b1ce1 Current: 722a0070

Changed (1)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after

@sandy081 sandy081 merged commit f4bd7b6 into main Apr 14, 2026
30 checks passed
@sandy081 sandy081 deleted the agents/extension-hover-security-review branch April 14, 2026 21:47
@vs-code-engineering vs-code-engineering Bot added this to the 1.117.0 milestone Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants