-
- Downloads
fix: Add HTML escaping for message headers to prevent XSS
Summary of changes - Added an `escapeHTML` function to sanitize header values. - Updated the rendering of list items in message headers to use the `escapeHTML` function. Reasoning for changes: - Introduced an `escapeHTML` method to protect against potential cross-site scripting (XSS) attacks by encoding special HTML characters in message headers. - Ensured that any content displayed in the application is treated as plain text, preventing malicious scripts from being executed through user-generated content. - Improved overall security of the message rendering process in `message.mjs`.
Please register or sign in to comment