~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
refactor: use inline suppression for path-injection instead of global exclusion
LearningCircuit290a2835e9ac
diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.ymlindex 114c416426..7a689c406d 100644--- a/.github/codeql/codeql-config.yml+++ b/.github/codeql/codeql-config.yml@@ -6,22 +6,3 @@ paths-ignore:- '**/test_*.py'- '**/*_test.py'- 'src/local_deep_research/security/file_write_verifier.py'--# Query filters - exclude specific queries for intentional security-reviewed features-query-filters:- - exclude:- id: py/path-injection- # Justification: This query is excluded because:- # 1. The local file indexing feature (rag_routes.py:100) intentionally accepts- # user-provided paths to enable indexing personal documents- # 2. Security controls are in place:- # - System directory blocking (/etc, /sys, /proc, /dev, /root, /boot, /var/log)- # - Path resolution with .resolve() to prevent traversal- # - PathValidator for relative paths- # 3. This is the ONLY location in the codebase with intentional user-controlled paths- # (verified via codebase audit - see commit history for details)- # 4. This is a core feature requirement for a local research tool, not a vulnerability- # 5. Inline suppressions (lgtm, nosec, codeql) are not supported in CodeQL Python- #- # Alternative considered: File-specific exclusion via paths-ignore, but query-filters- # provides better documentation of WHY this specific security check is excluded.diff --git a/src/local_deep_research/research_library/routes/rag_routes.py b/src/local_deep_research/research_library/routes/rag_routes.pyindex 514f1b3939..a3802f18f7 100644--- a/src/local_deep_research/research_library/routes/rag_routes.py+++ b/src/local_deep_research/research_library/routes/rag_routes.py@@ -210,7 +210,9 @@ def validate_local_index_path(user_path: str) -> Path:# Users are allowed to index their own filesystem. System directories are blocked below.if Path(user_path).is_absolute():# codeql[py/path-injection] - Intentional: Local filesystem indexing feature with system directory protection- validated_path = Path(user_path).resolve() # nosec B108+ validated_path = Path(+ user_path+ ).resolve() # lgtm[py/path-injection] nosec B108else:# Use PathValidator for relative pathsvalidated_path = PathValidator.validate_safe_path(