Skip to main content
Vulnerability Database/CVE-2026-108852

CVE-2026-108852: Deep Chat XSS Vulnerability

CVE-2026-108852 is a cross-site scripting flaw in Deep Chat that enables attackers to inject malicious javascript: links through AI responses and message content. This article covers the technical details, impact, and mitigation.

Published:

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-108852 Overview

CVE-2026-108852 is a cross-site scripting (XSS) vulnerability in Deep Chat through version 2.5.1, an embeddable AI chat component. The flaw resides in RemarkableConfig.createNew, which disables Remarkable's built-in link validation. Attackers can embed javascript: URIs inside Markdown links that render in AI responses, addMessage content, or loaded chat history. When a victim clicks a crafted link, the script executes within the embedding page's origin. The vulnerability is classified under CWE-79.

Critical Impact

Attackers can execute arbitrary JavaScript in the context of any site embedding Deep Chat ≤ 2.5.1 by delivering a crafted Markdown link through chat messages or loaded history.

Affected Products

  • Deep Chat (OvidijusParsiunas/deep-chat) through version 2.5.1
  • Web applications embedding the Deep Chat component for AI chat interfaces
  • Any downstream project bundling Deep Chat's remarkableConfig.ts link rendering path

Discovery Timeline

  • 2026-10-11 - CVE-2026-108852 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-108852

Vulnerability Analysis

Deep Chat uses the Remarkable Markdown parser to render chat messages. By default, Remarkable validates link schemes and blocks dangerous URIs such as javascript:. In Deep Chat's remarkableConfig.ts (lines 74-78 of the 2.5.1 release), the createNew function overrides validateLink with a function that unconditionally returns true. This removes the scheme allowlist entirely and permits any URI to be rendered as a clickable anchor. Because Deep Chat renders model output, developer-supplied addMessage content, and persisted history through the same pipeline, each of these sources becomes an injection sink.

Root Cause

The root cause is an insecure configuration of a third-party Markdown library. Replacing Remarkable's validateLink callback with a permissive stub disables sanitization that would normally reject javascript:, data:, and vbscript: schemes. User-controlled Markdown is then transformed into HTML anchors containing attacker-controlled href values with no further filtering.

Attack Vector

Exploitation requires user interaction. An attacker influences content that reaches the Deep Chat renderer, for example by poisoning an upstream AI model response, injecting into a chat history store, or calling addMessage with crafted input. The payload takes the form of a Markdown link such as [Click here](javascript:...). When a victim clicks the rendered link, the browser executes the script in the embedding page's origin, enabling session theft, DOM manipulation, or pivoting to authenticated API calls. Technical specifics are documented in the VulnCheck XSS Advisory and the HackMD Markdown Scheme Validation writeup.

No verified proof-of-concept code is published in the enriched data. See the GitHub Config File Snippet for the vulnerable code location.

Detection Methods for CVE-2026-108852

Indicators of Compromise

  • Rendered anchor tags in the Deep Chat DOM with href values beginning with javascript:, data:text/html, or vbscript:.
  • Chat history records or addMessage payloads containing Markdown link syntax that references non-HTTP schemes.
  • Content Security Policy violation reports citing inline script execution originating from anchor click handlers in pages embedding Deep Chat.

Detection Strategies

  • Statically scan deployed bundles for the Deep Chat remarkableConfig.ts pattern where validateLink returns true unconditionally.
  • Add a client-side mutation observer that flags anchor elements rendered inside the Deep Chat container with disallowed URI schemes.
  • Review AI gateway or chat API logs for Markdown link patterns referencing javascript: in model outputs or user-supplied history uploads.

Monitoring Recommendations

  • Enable CSP reporting (report-to / report-uri) on pages embedding Deep Chat and alert on anchor-initiated script violations.
  • Monitor browser telemetry and endpoint EDR for unexpected script execution originating from pages hosting the chat component.
  • Track dependency manifests (package.json, lockfiles) across repositories to identify Deep Chat versions ≤ 2.5.1 still in production.

How to Mitigate CVE-2026-108852

Immediate Actions Required

  • Inventory all applications embedding Deep Chat and identify instances running version 2.5.1 or earlier.
  • Upgrade to a patched Deep Chat release once available from the GitHub Project Repository.
  • Sanitize or re-validate any chat history and addMessage sources that may already contain hostile Markdown links.

Patch Information

No fixed version is listed in the enriched CVE data. Monitor the GitHub Project Repository for a release that restores Remarkable's default validateLink behavior or implements a strict scheme allowlist. Until a vendor patch is published, apply the workarounds below.

Workarounds

  • Fork or patch remarkableConfig.ts so validateLink enforces an allowlist of http:, https:, and mailto: schemes and rejects javascript:, data:, and vbscript:.
  • Post-process rendered chat HTML with a sanitizer such as DOMPurify configured to strip anchors with non-standard URI schemes.
  • Deploy a restrictive Content Security Policy that disallows inline script execution and forbids javascript: navigations in the embedding page.
  • Validate and sanitize AI model output and persisted chat history before passing content to Deep Chat's rendering pipeline.

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.