Skip to content

RS-22478: Fix label xss#5

Merged
chschan merged 4 commits into
masterfrom
RS-22478-fix-label-xss
Jun 12, 2026
Merged

RS-22478: Fix label xss#5
chschan merged 4 commits into
masterfrom
RS-22478-fix-label-xss

Conversation

@chschan

@chschan chschan commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

No description provided.

chschan and others added 2 commits June 12, 2026 15:29
HTML-escape the node name and column names before building the tooltip
table so untrusted label data is not parsed as HTML. Rebuilt the
inst/htmlwidgets bundle.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@chschan chschan requested a review from JustinCCYap June 12, 2026 06:00
The tooltip font-family comes unvalidated from config and is interpolated
into an HTML style attribute, so escape it too (defense in depth). Rebuilt
the copied inst/htmlwidgets bundle.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
var ft_f = options.tooltipsFontFamily;
var t = "";
var nval = d.data.tips.length;
t = t + "<div class='tipTableContainer' style='white-space:nowrap;" + "font-size:" + ft_s + "px;font-family:" + ft_f + ";'>";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@JustinCCYap JustinCCYap left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, see comment. I think I have approved all the PRs. Let me know if I have missed one.

@chschan chschan merged commit e10781a into master Jun 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants