Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-105798 Overview
CVE-2026-105798 is a stored cross-site scripting (XSS) vulnerability in Microsoft SimpleChat, a secure AI conversation application supporting personal and group workspaces for document-grounded interactions. Versions prior to 0.261.029 fail to properly sanitize group document filenames rendered inside inline Share event handlers in group_workspaces.html. An authenticated group Owner, Admin, or DocumentManager can upload a document with a crafted filename that persists in the application and executes JavaScript in the SimpleChat origin when another group member clicks Share. The flaw is tracked under [CWE-79] and resolved in version 0.261.029.
Critical Impact
Successful exploitation enables script execution in a victim's browser session, exposing data and actions available to that user within the SimpleChat origin.
Affected Products
- Microsoft SimpleChat versions prior to 0.261.029
- POST /api/group_documents/upload endpoint
- group_workspaces.html template using escapeGroupHtml and escapeHtml helpers
Discovery Timeline
- 2026-10-06 - CVE-2026-105798 published to the National Vulnerability Database (NVD)
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-105798
Vulnerability Analysis
The vulnerability is a stored XSS flaw in the group document sharing workflow. SimpleChat accepts a filename via POST /api/group_documents/upload and persists it alongside group document metadata. The template group_workspaces.html later interpolates that filename directly into inline onclick-style Share event handlers.
Two sanitization helpers participate in the rendering path, and both fail. The escapeGroupHtml function leaves apostrophe characters unchanged, allowing a filename containing a single quote to break out of the JavaScript string literal that wraps the handler argument. The alternative escapeHtml helper converts the apostrophe to an HTML entity, but the browser decodes the entity before the JavaScript engine evaluates the inline handler, producing the same string termination.
Root Cause
The root cause is unsafe mixing of HTML and JavaScript contexts. The helpers were designed for HTML escaping, not for JavaScript string literal escaping inside inline event attributes. Any attacker-supplied value flowing into an inline handler through either helper can terminate the surrounding string and append arbitrary JavaScript. Because the filename is persisted server-side, the payload executes for every group member who renders the document list.
Attack Vector
An authenticated user with Owner, Admin, or DocumentManager privileges in a group workspace uploads a document whose filename contains a crafted apostrophe-based payload. When a victim loads the group workspace and clicks Share on the malicious document, the handler evaluates attacker-controlled script in the SimpleChat origin. The attacker gains access to victim-visible data and can perform actions permitted by the victim session.
# Patched version identifier in application/single_app/config.py
EXECUTOR_TYPE = 'thread'
EXECUTOR_MAX_WORKERS = 30
SESSION_TYPE = 'filesystem'
-VERSION = "0.261.028"
+VERSION = "0.261.029"
IS_DEVELOPMENT = is_development_env_enabled()
Source: GitHub Commit 537a259
// Fix in application/single_app/static/js/workspace/group-documents-sharing.js
// Replaces inline handler interpolation with a safe addEventListener binding
+window.bindGroupDocumentShareButton = function(container, doc) {
+ const shareButton = container.querySelector('.group-document-share-btn');
+ if (!shareButton) {
+ return;
+ }
+
+ const documentId = doc.id;
+ const fileName = doc.file_name || '';
+ shareButton.addEventListener('click', function(event) {
+ event.preventDefault();
+ window.shareGroupDocument(documentId, fileName);
+ });
+};
Source: GitHub Commit 537a259
The patch removes the inline handler entirely. The fix passes documentId and fileName as JavaScript values via addEventListener, preventing any string from re-entering an HTML or JavaScript parsing context.
Detection Methods for CVE-2026-105798
Indicators of Compromise
- Group document records whose file_name field contains apostrophes, angle brackets, HTML entities such as ', or JavaScript keywords like onerror, javascript:, or alert(.
- Outbound requests from SimpleChat user browsers to unexpected domains shortly after loading a group workspace.
- SimpleChat application logs showing POST /api/group_documents/upload events with abnormally long or syntactically unusual filename fields.
Detection Strategies
- Query the group documents data store for persisted filenames matching XSS payload patterns and quarantine matches pending review.
- Instrument the frontend with a strict Content Security Policy (CSP) in report-only mode to surface inline script executions sourced from rendered filenames.
- Correlate uploads from privileged group roles (Owner, Admin, DocumentManager) with subsequent anomalous session activity for the same workspace members.
Monitoring Recommendations
- Monitor SimpleChat deployments for version strings below 0.261.029 and alert on continued use of unpatched builds.
- Capture browser error telemetry and CSP violation reports to detect in-the-wild exploitation attempts.
- Review audit logs for privilege changes that elevate accounts to Owner, Admin, or DocumentManager roles prior to a document upload.
How to Mitigate CVE-2026-105798
Immediate Actions Required
- Upgrade all SimpleChat instances to version 0.261.029 or later without delay.
- Audit existing group document filenames and remove or rename any entries containing HTML or JavaScript metacharacters.
- Review group membership and reduce the number of accounts holding Owner, Admin, or DocumentManager privileges to the minimum required.
Patch Information
The fix is delivered in SimpleChat version 0.261.029 via commit 537a259eb048b8f6d1c94193fa0c9683ab0bace9. The patch replaces inline Share event handler interpolation with a programmatic addEventListener binding in group-documents-sharing.js, eliminating the HTML-to-JavaScript context crossing. Full details are available in the GitHub Security Advisory GHSA-qwcw-r653-j8c6.
Workarounds
- Restrict upload permissions in group workspaces until the patched version is deployed.
- Enforce a strict Content Security Policy that disallows inline event handlers and inline script execution for the SimpleChat origin.
- Validate uploaded filenames at the API layer to reject apostrophes, angle brackets, and HTML entities before persistence.
# Example CSP header to block inline script execution during remediation
Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

