Skip to content

~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.

chore: suppress false positive CodeQL url-redirection alert (#1915)

LearningCircuitc8854ececf7b
diff --git a/src/local_deep_research/web/auth/routes.py b/src/local_deep_research/web/auth/routes.py
index 7248315d14..50b20aa86d 100644
--- a/src/local_deep_research/web/auth/routes.py
+++ b/src/local_deep_research/web/auth/routes.py
@@ -140,10 +140,13 @@ def login():
# Redirect to original requested page or dashboard
next_page = request.args.get("next", "")
+ # Security: URLValidator.is_safe_redirect_url() validates that the target URL
+ # has http/https scheme and netloc matches the application host, preventing
+ # open redirect attacks (CWE-601). CodeQL doesn't recognize custom sanitizers.
if next_page and URLValidator.is_safe_redirect_url(
next_page, request.host_url
):
- return redirect(next_page)
+ return redirect(next_page) # codeql[py/url-redirection]
return redirect(url_for("index"))