Superset V6.0 - Table chart now longer shows bold text with HTML <b> tag in columns #36799
Replies: 7 comments 5 replies
-
|
This change is due to stricter HTML sanitization introduced in Superset 5.0 and continued in 6.0 to improve security and prevent XSS vulnerabilities. As a result, HTML tags like are now escaped and displayed as plain text rather than rendered as HTML, even if "Render columns in HTML format" is enabled. This is an intentional security feature, not a bug. If you need to allow specific HTML tags (like ), you can configure the HTML_SANITIZATION_SCHEMA_EXTENSIONS setting in your Superset config to permit them, but be aware of the security implications before doing so. More details are discussed in this issue. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
@dosu But still isn't rendered. |
Beta Was this translation helpful? Give feedback.
-
|
@dosu |
Beta Was this translation helpful? Give feedback.
-
|
@dosu But that's not even the problem. The real problem is that we use tables/chart extensively and would have to parse every single query and replace all <b> and <li>. And that for every query?! And then it doesn't work everywhere (see above). Are <b> and <li> really an XSS insecurity issue? I suggest planning an extension for the next release where you can either completely disable all SANITIZATION or at least whitelist the ones that are needed. I don't think we're the only ones encountering this problem (at least so far). Can't we leave it up to the user to decide whether to disable this strict setting at all? |
Beta Was this translation helpful? Give feedback.
-
|
@dosu Yes, I would like details on how I can safely modify the frontend whitelist. |
Beta Was this translation helpful? Give feedback.
-
|
@dosu Your instructions on how to change the code are good. However, I am not a Python or TypeScript developer. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Up to Superset v6.0, text such as Test was displayed in bold in table columns (if ‘Render columns in HTML format’ was checked). Since v6.0, this is no longer the case.
Is this a bug or a feature?
Beta Was this translation helpful? Give feedback.
All reactions