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.

1.1 KB
Raw Blame

Client-side HTML rendering now fails closed when the DOMPurify sanitizer fails to load or reports itself unsupported. Report and note markdown (renderMarkdown) previously returned the parsed, unsanitized markdown HTML when DOMPurify was missing, letting raw HTML embedded in hostile report content render as live markup. In addition, renderMarkdown, safeSetHTML (used by the shared spinner, error and alert UI), the XSSProtection helpers (sanitizeHtml, safeSetInnerHTML, safeCreateElement), semantic-search snippet rendering, the news page's HTML renderer and PDF export all treated any loaded DOMPurify as usable, but DOMPurify's isSupported flag can be false, null or undefined in a broken DOM environment, and sanitize() then returns its input unchanged. Each of these now uses DOMPurify only when DOMPurify.isSupported is exactly true, and otherwise takes its existing no-sanitizer fallback: escaped plaintext, textContent, or refusing to proceed (safeCreateElement, PDF export). safeSetHTML's own fallback was fail-open too: when DOMPurify was missing it assigned its input to innerHTML unsanitized. It now sets textContent instead.