Skip to content

Conversation

@maliming
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 28, 2025 07:48
@maliming maliming added this to the 10.0-patch milestone Dec 28, 2025
Copy link
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

This PR enhances security by implementing HTML encoding for user-provided text content in TagHelper services across the ABP Framework. The changes prevent potential XSS vulnerabilities by ensuring all titles, texts, and captions rendered in HTML are properly encoded before being inserted into the DOM.

  • Injected HtmlEncoder into TagHelper service constructors throughout the framework
  • Applied HTML encoding to all user-controlled text content (titles, captions, button text, etc.) before rendering
  • Maintained consistent implementation patterns across related TagHelper services

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
AbpTagHelperStyleService.cs Added HtmlEncoder parameter to constructor and passed it to base class
AbpTagHelperScriptService.cs Added HtmlEncoder parameter to constructor and passed it to base class
AbpTabTagHelperService.cs Added HtmlEncoder injection and applied encoding to tab titles
AbpTabLinkTagHelperService.cs Added HtmlEncoder injection and applied encoding to tab link titles
AbpTabDropdownTagHelperService.cs Added HtmlEncoder injection and applied encoding to dropdown titles
AbpModalHeaderTagHelperService.cs Added HtmlEncoder injection and applied encoding to modal header titles
AbpRadioInputTagHelperService.cs Added HtmlEncoder injection and applied encoding to radio button labels
AbpAccordionItemTagHelperService.cs Added HtmlEncoder injection and applied encoding to accordion item titles
AbpCarouselItemTagHelperService.cs Applied encoding to carousel captions and titles (encoder already present)
AbpCardBodyTagHelperService.cs Added HtmlEncoder injection and applied encoding to card titles and subtitles
AbpLinkButtonTagHelperService.cs Updated constructor to pass HtmlEncoder to base class
AbpButtonTagHelperServiceBase.cs Added HtmlEncoder injection and applied encoding to button text
AbpButtonTagHelperService.cs Updated constructor to pass HtmlEncoder to base class and accept it as parameter
AbpBreadcrumbItemTagHelperService.cs Applied encoding to breadcrumb item titles (encoder already present)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@skoc10 skoc10 modified the milestones: 10.0-patch, 10.0-patch-final Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants