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 code scanning alert no. 111: Incomplete URL substring sanitization (#12305)
-LAN-0e6317678f1c
diff --git a/api/services/app_dsl_service.py b/api/services/app_dsl_service.pyindex b6d6d05e589..2c4fbe1a596 100644--- a/api/services/app_dsl_service.py+++ b/api/services/app_dsl_service.py@@ -2,6 +2,7 @@ import loggingimport uuidfrom enum import StrEnumfrom typing import Optional, cast+from urllib.parse import urlparsefrom uuid import uuid4import yaml # type: ignore@@ -113,8 +114,12 @@ class AppDslService:)try:max_size = 10 * 1024 * 1024 # 10MB- # tricky way to handle url from github to github raw url- if yaml_url.startswith("https://github.com") and yaml_url.endswith((".yml", ".yaml")):+ parsed_url = urlparse(yaml_url)+ if (+ parsed_url.scheme == "https"+ and parsed_url.netloc == "github.com"+ and parsed_url.path.endswith((".yml", ".yaml"))+ ):yaml_url = yaml_url.replace("https://github.com", "https://raw.githubusercontent.com")yaml_url = yaml_url.replace("/blob/", "/")response = ssrf_proxy.get(yaml_url.strip(), follow_redirects=True, timeout=(10, 10))