Sunday, 29 November 2026
0 agent hacks today▼ 1 vs yesterday (1)

SiYuan note app flaw lets AI replies run commands on desktops

A DOM-based cross-site scripting bug in SiYuan's AI agent chat panel can turn a poisoned model reply into operating system commands, according to the CVE record.

By The Agentic Times ·

A puppet master's hand emerges from a cracked mirror, pulling invisible strings that make a desktop computer's fingers type commands it never intended.
A puppet master's hand emerges from a cracked mirror, pulling invisible strings that make a desktop computer's fingers type commands it never intended. · Illustration: The Agentic Times

A cross-site scripting flaw in the note-taking application SiYuan allows text returned by an AI model to run operating system commands on a user's desktop, according to a vulnerability record published on 26 November 2026 by the US National Vulnerability Database.

The issue is tracked as CVE-2026-137469 and affects SiYuan version 3.7.0 up to, but not including, version 3.8.11. According to the record, the AI agent chat panel renders final and saved assistant replies into innerHTML without HTML sanitisation. In plain terms, the application treats the model's answer as live page code rather than as plain text, so any markup inside that answer is interpreted by the application rather than simply displayed.

That gap gives an attacker two routes in. The NVD entry says attackers who can influence model replies, either through indirect prompt injection or through a configured model endpoint, can inject event-handler markup. Indirect prompt injection means hiding instructions in content the agent reads, such as a web page or a document, so the model repeats or produces attacker-chosen output. A configured model endpoint means the server address the application is pointed at for its AI responses, which a user or an attacker with access to settings can change.

The consequence goes beyond a browser pop-up. According to the record, the injected markup can execute operating system commands through Node.js integration in desktop local-kernel mode. Node.js integration gives page code in the desktop application access to system-level functions, so script that runs inside the chat panel is not confined to the application window. Local-kernel mode is the configuration in which SiYuan runs its back end on the user's own machine.

The record also notes that both final and saved assistant replies are affected. That detail matters because a stored reply can be re-rendered later, meaning a single poisoned response could be triggered again when the user reopens the conversation, rather than only at the moment it arrives.

The NVD entry lists two references: a GitHub security advisory published under the SiYuan project, identified as GHSA-3rvg-qxwg-f3c6, and an advisory from VulnCheck describing the same DOM XSS issue in the AI agent chat panel. The version range given in the record indicates that SiYuan 3.8.11 is the first release that is not listed as affected.

The disclosure is a clear example of a pattern that keeps recurring in agent-enabled applications. The model output is untrusted input, but the surrounding application treats it as if it came from the developer. Where that output is rendered as HTML, and where the surrounding runtime has system privileges, the gap between an AI feature and command execution can be very small.

No information in the sources indicates whether the flaw has been exploited against real users, and none of the sources name a researcher or report a number of affected installations. The record does not state an occurrence date for any attack; the vulnerability entry was published on 26 November 2026.

Users running SiYuan versions in the affected range, particularly on desktop in local-kernel mode with AI features configured, should consult the project's advisory for the fixed release.

Sources

  1. nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-137469