Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix the ssrf of docx file extractor external images (#10237)
Jyong1024fc623efd
diff --git a/api/core/rag/extractor/word_extractor.py b/api/core/rag/extractor/word_extractor.pyindex ae3c25125cd..d4434ea28f3 100644--- a/api/core/rag/extractor/word_extractor.py+++ b/api/core/rag/extractor/word_extractor.py@@ -14,6 +14,7 @@ import requestsfrom docx import Document as DocxDocumentfrom configs import dify_config+from core.helper import ssrf_proxyfrom core.rag.extractor.extractor_base import BaseExtractorfrom core.rag.models.document import Documentfrom extensions.ext_database import db@@ -86,7 +87,7 @@ class WordExtractor(BaseExtractor):image_count += 1if rel.is_external:url = rel.reltype- response = requests.get(url, stream=True)+ response = ssrf_proxy.get(url, stream=True)if response.status_code == 200:image_ext = mimetypes.guess_extension(response.headers["Content-Type"])file_uuid = str(uuid.uuid4())