Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix xss in excel_parser (#9909)

湛露先生1ee9c0b8d92a
diff --git a/deepdoc/parser/excel_parser.py b/deepdoc/parser/excel_parser.py
index 91bcad7a7c..29bf4e2e69 100644
--- a/deepdoc/parser/excel_parser.py
+++ b/deepdoc/parser/excel_parser.py
@@ -124,7 +124,7 @@ class RAGFlowExcelParser:
if c.value is None:
tb += "<td></td>"
else:
- tb += f"<td>{c.value}</td>"
+ tb += f"<td>{escape(_fmt(c.value))}</td>"
tb += "</tr>"
tb += "</table>\n"
tb_chunks.append(tb)