Skip to content

Fix XSS bug - #6

Closed
RubeRuby wants to merge 1 commit into
finom:mainfrom
RubeRuby:master
Closed

RubeRuby wants to merge 1 commit into
finom:mainfrom
RubeRuby:master

Conversation

@RubeRuby

Copy link
Copy Markdown

By using innerHTML instead of innerText users can enter a name like <textarea> and the branch is then rendered as a textarea, users could even use a <script> tag

@finom

finom commented May 26, 2018

Copy link
Copy Markdown
Owner

@RubeRuby sorry for late reply. Why not to allow users to set HTML? I think that should be handled by you, not by the library.

@finom

finom commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Thanks for the report. Fixed in #12: labels are written as text by default now, and html: true on a leaf (or a context menu item) opts into HTML. Ships in 1.0.0.

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