[PR #5570] [MERGED] SECURITY: Fix #5565 by htmlEncoding titles in issues and milestones #17848

Closed
opened 2025-11-02 16:14:52 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5570
Author: @zeripath
Created: 12/20/2018
Status: Merged
Merged: 12/21/2018
Merged by: @techknowlogick

Base: masterHead: issue-5565-fix-xss-issues-and-milestones


📝 Commits (2)

  • 2478376 Immediate fix to htmlEncode user added text
  • 30a6059 Merge branch 'master' into issue-5565-fix-xss-issues-and-milestones

📊 Changes

1 file changed (+9 additions, -5 deletions)

View changed files

📝 public/js/index.js (+9 -5)

📄 Description

There are likely problems remaining with the way that initCommentForm
is creating its elements. I suspect that a malformed avatar url could
be used maliciously.

Fixes the immediate issue in #5565


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5570 **Author:** [@zeripath](https://github.com/zeripath) **Created:** 12/20/2018 **Status:** ✅ Merged **Merged:** 12/21/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `issue-5565-fix-xss-issues-and-milestones` --- ### 📝 Commits (2) - [`2478376`](https://github.com/go-gitea/gitea/commit/247837630cd854a1ad8732ffc9393062b7a32e20) Immediate fix to htmlEncode user added text - [`30a6059`](https://github.com/go-gitea/gitea/commit/30a6059267bdaefec1783826313f0151f23d7901) Merge branch 'master' into issue-5565-fix-xss-issues-and-milestones ### 📊 Changes **1 file changed** (+9 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `public/js/index.js` (+9 -5) </details> ### 📄 Description There are likely problems remaining with the way that initCommentForm is creating its elements. I suspect that a malformed avatar url could be used maliciously. Fixes the immediate issue in #5565 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 16:14:55 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17848