Skip to content

template: escape usernames in issue opened-by descriptions - #8482

Merged
unknwon merged 3 commits into
mainfrom
ghsa-vhf5-f34f-vhq9
Nov 11, 2026
Merged

unknwon merged 3 commits into
mainfrom
ghsa-vhf5-f34f-vhq9

Conversation

@unknwon

@unknwon unknwon commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Describe the pull request

Escape the poster's username in the "opened by" description on issue and pull request pages and in the dashboard issue and pull request lists, so that a username containing HTML (e.g., one coming from an external login source) is rendered as text.

Link to the issue: GHSA-vhf5-f34f-vhq9

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code or have provided the test plan. (if applicable)
  • I have added an entry to CHANGELOG. (if applicable)

Test plan

  • With a user whose username contains <img src=x onerror=...> opening an issue in another user's repository, before the fix the issue page and the dashboard issue list of the repository owner render the <img> element as markup.
  • After the fix, both pages render it escaped as text, and the relative time tooltip (time-since) is unchanged.
  • A regular username still renders as a link to the user's profile.

AI usage

Claude Code was used to verify the report, write the fix, and run the end-to-end checks above, all reviewed by the maintainer.

@unknwon unknwon added this to the 0.14.4 milestone Nov 11, 2026
@unknwon
unknwon merged commit 1a5097d into main Nov 11, 2026
11 checks passed
@unknwon
unknwon deleted the ghsa-vhf5-f34f-vhq9 branch November 11, 2026 03:07
unknwon added a commit that referenced this pull request Nov 11, 2026
@unknwon unknwon mentioned this pull request Nov 11, 2026
4 of 6 tasks
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.

1 participant