Skip to content

RS-22478: fix stored XSS in metro HTML labels#51

Open
chschan wants to merge 2 commits into
masterfrom
RS-22478-fix-label-xss
Open

RS-22478: fix stored XSS in metro HTML labels#51
chschan wants to merge 2 commits into
masterfrom
RS-22478-fix-label-xss

Conversation

@chschan

@chschan chschan commented Jun 12, 2026

Copy link
Copy Markdown

Sanitise as_html label content with DOMPurify before rendering it, keeping the render-as-HTML feature while stripping scripts/handlers. Adds the dompurify dependency.

chschan and others added 2 commits June 12, 2026 15:39
Sanitise as_html label content with DOMPurify before rendering it, keeping
the render-as-HTML feature while stripping scripts/handlers. Adds the
dompurify dependency. 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 05:46
@JustinCCYap

Copy link
Copy Markdown
Contributor

This is perhaps risker than the other changes as it has bigger potential to break existing outputs. The standard R tests should provide some assurance. Check them before promoting the R server.

@JustinCCYap JustinCCYap left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

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