The new addNewMessageChatEntry builds markup with ``div.innerHTML = [${ts}] ${from} ${short} ${text}``` while textcomes directly from/api/messages. Message contents are user-controlled and can include <script>oronerrorattributes, so assigning them toinnerHTMLallows a single malicious chat message to execute arbitrary JavaScript in every viewer’s browser. Render these fields withtextContent` or escape the message before inserting HTML to avoid XSS
The new addNewMessageChatEntry builds markup with ``div.innerHTML = [${ts}] ${from} ${short} ${text}``` while text` comes directly from `/api/messages`. Message contents are user-controlled and can include `<script>` or `onerror` attributes, so assigning them to `innerHTML` allows a single malicious chat message to execute arbitrary JavaScript in every viewer’s browser. Render these fields with `textContent` or escape the message before inserting HTML to avoid XSS
<!-- github-sync-id:3415341122 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The new addNewMessageChatEntry builds markup with ``div.innerHTML = [${ts}] ${from} ${short} ${text}``` while text
comes directly from/api/messages. Message contents are user-controlled and can include<script>oronerrorattributes, so assigning them toinnerHTMLallows a single malicious chat message to execute arbitrary JavaScript in every viewer’s browser. Render these fields withtextContent` or escape the message before inserting HTML to avoid XSS