Skip to content

An editorial team and a community building with AI

← All articles

News · SiYuan · 2 min read

Event date: · Published:

SiYuan AI chat panel bug let prompt injection trigger local code execution

GitHub disclosed a DOM-based cross-site scripting flaw in SiYuan's AI assistant that lets prompt injection or a malicious model endpoint run OS commands on a user's machine.

GitHub Security Advisories disclosed on November 26, 2026, that SiYuan's built-in AI assistant contains a DOM-based cross-site scripting flaw that can be escalated to local code execution through indirect prompt injection or a malicious model endpoint. The issue is tracked in the GitHub Security Advisory GHSA-q78v-7r9v-pqm2, filed as CVE-2026-137469.

What the advisory discloses

  • The advisory is tracked as GHSA-q78v-7r9v-pqm2 and CVE-2026-137469, published on November 26, 2026.
  • It affects SiYuan versions 3.7.0 up to before 3.8.11.
  • Severity is rated High, with a CVSS score of 7.7.
  • The weakness is classified as CWE-79, DOM-based cross-site scripting: saved AI-assistant replies are rendered via innerHTML without sanitization.
  • It can be exploited through indirect prompt injection or an attacker-controlled model endpoint, with no direct user interaction required beyond using the assistant.
  • Injected markup with event handlers can run OS commands when the desktop app operates in local-kernel mode with Node.js integration enabled.

What it means for people who build with AI

The flaw is a concrete, shipped example of the prompt injection to remote code execution chain that security researchers have warned about in agentic apps. It is directly relevant to anyone embedding an AI chat panel with local tool or OS access in a desktop product, since saved assistant output that reaches the DOM unsanitized can be turned into a code execution path.

Staying protected

SiYuan versions 3.7.0 up to before 3.8.11 are covered by the advisory, so updating to 3.8.11 or later takes a local-kernel desktop installation out of the disclosed range. Builders of similar AI chat panels should treat saved assistant replies as untrusted before rendering them in the DOM, especially when the host app can run with Node.js integration enabled.


Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

SiYuan AI chat panel bug let prompt injection trigger local code execution | vibecoding.inc