The Daily Byte
Breaking
Welcome to The Daily Byte — real stories from across Pakistan.
Monday, 23 November 2026 · Pakistan

The Daily Byte

Stories from Pakistan that deserve to be heard

CVE-2026-130679: SiYuan Note Flaw Runs OS Commands

By The Daily Byte ·22 Nov 2026 ·4 min read
A hand writing notes in a notebook with a pen, representative of the SiYuan note-taking app

A flaw in the SiYuan note-taking app lets someone who can place a crafted image link in a shared note run commands on the victim’s computer. The flaw, tracked as CVE-2026-130679, was published on 18 November 2026 and the CVE record was updated on 21 November. It carries a severity score of 9.4 out of 10, in the critical range.

SiYuan is an open-source app for notes and personal knowledge, used as a desktop program and as a self-hosted server. The vulnerability affects every version before 3.8.10. The fix is to update to SiYuan 3.8.10, which the project released alongside the vendor’s security advisory on GitHub.

How the flaw works

The problem sits in the way SiYuan renders database rows, known as Attribute Views. A database can hold an Assets field, the normal way users attach images to rows. When a note shows a row’s details, a function called genAVValueHTML() builds the HTML for the row, including an image tag for each asset.

According to the advisory, that image tag inserts the asset’s address into the src attribute without escaping it. An attacker who can store an Attribute View asset value can therefore supply an image address that contains a double quote, which closes the src attribute, followed by an onerror handler, a small piece of script that runs when the image fails to load.

The victim only has to open the note the row is bound to, or open the row’s attribute panel. In the desktop app, the injected handler runs with access to Node.js, because the app’s renderer runs with node integration switched on and context isolation switched off. That lets the script call the operating system directly, for example by running commands through child_process. The researchers who reported the flaw demonstrated it on the official SiYuan 3.8.9 desktop release and on the official Docker image, running system commands from both entry points.

The attacker needs to be able to store an asset value in the victim’s workspace. That can be a note author writing through the editor, an authenticated client writing through the app’s programming interface, or a note that reaches the victim by sync, import or a shared workspace. On a self-hosted server the same stored value runs script in the server’s origin with the viewing user’s session, giving access to the app’s full interface.

A fix that missed a line

The flaw is a leftover from two earlier advisories, CVE-2026-50551 and CVE-2026-54158, which were both listed as patched in SiYuan 3.7.0. Those fixes escaped the text, web address, phone and email parts of the asset cell and the image’s label, but they left the image address itself raw on the attribute-panel path. The table view of the same database renders the cell safely, because it percent-encodes the address, so nothing looks wrong there. Only the attribute panel builds the image tag from the raw value.

The advisory says the two earlier fixes and this flaw share one sink and one fix, and it recommends encoding the image address for the attribute context, exactly as the table renderer already does. As a longer-term defence it suggests turning off node integration and turning on context isolation in the desktop renderer, so that a missed escape can no longer become code execution on the host.

What users should do

SiYuan users should update to version 3.8.10 or later. Until the update is applied, users should be careful about opening notes, databases and workspaces that come from sources they do not trust, since a crafted asset value is stored silently and only fires when the note is opened.

No exploitation in the wild has been reported for this flaw, but proof-of-concept code is recorded as available in the official assessment, so the details are public enough to copy. The CVE record gives it a CVSS 4.0 score of 9.4 and the vendor advisory keeps a CVSS 3.1 score of 9.9, reflecting a low-privilege starting point, network access and a full loss of confidentiality, integrity and availability on the affected machine.