Skip to content

fix: Escape task titles in focus mode to prevent XSS#1186

Open
anushkagupta200615-jpg wants to merge 1 commit into
Charushi06:mainfrom
anushkagupta200615-jpg:fix/issue-1180-xss
Open

fix: Escape task titles in focus mode to prevent XSS#1186
anushkagupta200615-jpg wants to merge 1 commit into
Charushi06:mainfrom
anushkagupta200615-jpg:fix/issue-1180-xss

Conversation

@anushkagupta200615-jpg

Copy link
Copy Markdown

Checklist

  • Code follows project style
  • Tested locally
  • No unrelated changes included
  • Documentation updated (if applicable)

Description

This PR resolves #1180 by fixing an XSS (Cross-Site Scripting) vulnerability in the focus mode task rendering.

Resolves: #1180

Changes Made

  • Updated the renderFocusTasks function in js/app.js to escape the t.title and activeT.title values using the existing escapeHtml utility function before injecting them into the DOM.

Security Impact

  • This prevents execution of arbitrary HTML and JavaScript that could previously be embedded inside task titles, ensuring user sessions and data remain secure when rendering the focus mode UI.

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.

Bug: XSS vulnerability in focus mode task rendering

1 participant