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(security): document the audited replaceChildren sink in subscription-manager (#8203) (#6630)

LearningCircuit9ff904c14261
diff --git a/src/local_deep_research/web/static/js/components/subscription-manager.js b/src/local_deep_research/web/static/js/components/subscription-manager.js
index 48e552ffbb..0b4a082471 100644
--- a/src/local_deep_research/web/static/js/components/subscription-manager.js
+++ b/src/local_deep_research/web/static/js/components/subscription-manager.js
@@ -105,11 +105,17 @@ class SubscriptionManager {
SafeLogger.error('Error loading subscription data:', error);
const container = document.getElementById('subscriptions-list');
if (container) {
- const errorMessage = document.createElement('div');
- errorMessage.className = 'alert alert-danger text-center';
- errorMessage.setAttribute('role', 'alert');
- errorMessage.textContent = 'Failed to load subscriptions. Please try again.';
- container.replaceChildren(errorMessage);
+ const errorMessage = document.createElement('div');
+ errorMessage.className = 'alert alert-danger text-center';
+ errorMessage.setAttribute('role', 'alert');
+ errorMessage.textContent = 'Failed to load subscriptions. Please try again.';
+ // Bearer's rule treats replaceChildren as an HTML-insertion sink,
+ // but this inserts an Element built via createElement with a
+ // literal textContent — no string is ever parsed as HTML (unlike
+ // the innerHTML sites above, which carry their own audited
+ // disables). Audited 2026-09-19; alert #8203.
+ // bearer:disable javascript_lang_dangerous_insert_html
+ container.replaceChildren(errorMessage);
}
this.showError('Failed to load subscriptions');
}