Skip to content

Commit b54b54a

Browse files
committed
fix: The EchartsRander component injects stored XSS via Eval
1 parent c8465ef commit b54b54a

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)