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.

fix: don't expose exception details to users (CWE-209) (#1914)

LearningCircuit777947bf6261
diff --git a/src/local_deep_research/web/routes/research_routes.py b/src/local_deep_research/web/routes/research_routes.py
index 58f9e7faf5..c7c0e2df61 100644
--- a/src/local_deep_research/web/routes/research_routes.py
+++ b/src/local_deep_research/web/routes/research_routes.py
@@ -1014,8 +1014,12 @@ def save_raw_config():
parsed_config = tomllib.loads(raw_config)
except Exception as e:
logger.warning(f"Invalid TOML configuration: {e}")
+ # Don't expose internal exception details to users (CWE-209)
return jsonify(
- {"success": False, "error": f"Invalid TOML syntax: {e}"}
+ {
+ "success": False,
+ "error": "Invalid TOML syntax. Please check your configuration format.",
+ }
), 400
# Security: Check for dangerous keys that could enable code execution