Skip to content

Conversation

idncsk
Copy link
Member

@idncsk idncsk commented Sep 16, 2025

Add visual indicators (green/gray dots) to the context ID to streamline UI/UX for canvas integrations.


Open in Cursor Open in Web

Co-authored-by: cursor <cursor@idnc.sk>
Copy link

cursor bot commented Sep 16, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Co-authored-by: cursor <cursor@idnc.sk>
@idncsk idncsk marked this pull request as ready for review September 16, 2025 07:26
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.


// Create gray button indicator for unbound state when disconnected
const unboundIndicator = '<span class="status-dot unbound" style="margin-right: 6px;"></span>';
contextId.innerHTML = `${unboundIndicator}-`;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: XSS Vulnerability Through Unsafe DOM Manipulation

This change introduces an XSS vulnerability by using innerHTML to insert unsanitized external data, specifically connection.context.id and wsName. This bypasses established secure DOM manipulation patterns like escapeHtml() and createSecureElement().

Fix in Cursor Fix in Web

Co-authored-by: cursor <cursor@idnc.sk>
@idncsk idncsk merged commit d1cefe7 into main Sep 16, 2025
5 checks passed
@idncsk idncsk deleted the cursor/update-context-binding-ui-indicators-5b42 branch September 16, 2025 08:08
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.

2 participants