~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix: add path sanitization for CodeQL compliance
LearningCircuitfc14e4518c99
diff --git a/src/local_deep_research/security/path_validator.py b/src/local_deep_research/security/path_validator.pyindex f1d9aa831d..05bb1d37e5 100644--- a/src/local_deep_research/security/path_validator.py+++ b/src/local_deep_research/security/path_validator.py@@ -109,6 +109,12 @@ class PathValidator:user_path = user_path.strip()+ # Basic sanitation: forbid null bytes and control characters+ if "\x00" in user_path:+ raise ValueError("Null bytes are not allowed in path")+ if any(ord(ch) < 32 for ch in user_path):+ raise ValueError("Control characters are not allowed in path")+# Expand ~ to home directoryif user_path.startswith("~"):home_dir = Path.home()@@ -118,7 +124,15 @@ class PathValidator:else:user_path = str(home_dir)- # Resolve the path (this is intentional for local filesystem access)+ # Disallow malformed Windows paths (e.g. "/C:/Windows")+ if (+ sys.platform == "win32"+ and user_path.startswith(("/", "\\"))+ and ":" in user_path+ ):+ raise ValueError("Malformed Windows path input")++ # Resolve the path - this normalizes and makes absolute# Security is enforced via restricted_dirs check belowvalidated_path = Path(user_path).resolve()