Skip to content

Commit 34fb95b

Browse files
authored
fix: The EchartsRander component injects stored XSS via Eval (#4957)
1 parent 86b1822 commit 34fb95b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ui/src/components/markdown/EchartsRander.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<template>
22
<div class="charts-container">
3-
<iframe v-show="false" ref="iframeRef" :srcdoc="iframeHtml" @load="onIframeLoad"></iframe>
3+
<iframe
4+
v-show="false"
5+
ref="iframeRef"
6+
sandbox="allow-scripts"
7+
:srcdoc="iframeHtml"
8+
@load="onIframeLoad"
9+
></iframe>
410
<div ref="chartsRef" :style="style" v-resize="onResize"></div>
511
</div>
612
</template>

0 commit comments

Comments
 (0)