Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(security): replace v-html with v-dompurify-html in TextArea rich text (GHSA-vx5p)

mertmit468bdd63b8b3
diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue
index 2943fa15d9..47184381f6 100644
--- a/packages/nc-gui/components/cell/TextArea.vue
+++ b/packages/nc-gui/components/cell/TextArea.vue
@@ -530,7 +530,7 @@ useResizeObserver(inputWrapperRef, () => {
? `line-clamp-${rowHeightTruncateLines(localRowHeight, true)}`
: 'py-2'
"
- v-html="richTextContent"
+ v-dompurify-html="richTextContent"
></div>
</div>
<!-- eslint-disable vue/use-v-on-exact -->