Skip to content

Commit 5d7af2f

Browse files
AngelFQCclaude
andcommitted
Security: stored XSS via social group discussion thread title
Render the discussion thread title as auto-escaped text instead of raw v-html in usergroup/GroupDiscussions.vue. A thread title is plain text and needs no markup, so escaping it closes the stored-XSS sink where an attacker-supplied title executed in every group member's browser on page load. Refs GHSA-9mpp-78g5-c22m Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b1f548d commit 5d7af2f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

assets/vue/components/usergroup/GroupDiscussions.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
@click="selectDiscussion(discussion)"
1919
>
2020
<div class="discussion-content">
21-
<div
22-
class="discussion-title"
23-
v-html="discussion.title"
24-
></div>
21+
<div class="discussion-title">{{ discussion.title }}</div>
2522
<div class="discussion-details">
2623
<i class="mdi mdi-message-reply-text icon"></i>
2724
<span>{{ discussion.repliesCount }} {{ t("Replies") }}</span>

0 commit comments

Comments
 (0)