-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix 3007 #3028
Fix 3007 #3028
Conversation
This reverts commit 1ff179a.
I think that most straightforward way to fix this is passing "flowchart: { htmlLabels: false }" option to mermaidAPI.initialize(). |
@amedora maybe we can add this as option - disabled html labels by default. With a warning at the option that there is a risk of xss. So Mermaid html label users can decide and accept the risk. That's not perfect but it will fix xss. Maybe we can open an issue at Mermaid so we can track if there will be a fix. |
# Conflicts: # browser/main/lib/ConfigManager.js
# Conflicts: # locales/da.json # locales/de.json # locales/en.json # locales/es-ES.json # locales/fa.json # locales/fr.json # locales/hu.json # locales/it.json # locales/ja.json # locales/ko.json # locales/no.json # locales/pl.json # locales/pt-BR.json # locales/pt-PT.json # locales/ru.json # locales/sq.json # locales/th.json # locales/tr.json # locales/zh-CN.json # locales/zh-TW.json
LGTM 🎉 But I'll need review from @Rokt33r before I can approve this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Description
Not only for mermaid, other code block like 'sequence' as below has potentially XSS problem.
Issue fixed
#3007
Type of changes
Checklist: