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-130683: SiYuan flaw writes to shell startup

By The Daily Byte ·22 Nov 2026 ·3 min read
A laptop and a phone showing the SiYuan note-taking app with its document tree and knowledge graph

A fourth critical flaw has been found in SiYuan, the open-source note-taking app, in the same release that fixed three stored cross-site scripting flaws reported earlier in the week. The new flaw, tracked as CVE-2026-130683, is a path-traversal weakness in the app's file-copy feature that can let an authenticated administrator plant code that runs the next time the user opens a terminal or logs in. It affects every version before 3.8.10 and is fixed in 3.8.10.

The flaw sits in a safeguard called IsSensitivePath, which is supposed to stop the file-copy endpoint from writing to sensitive locations. The list it checks against is incomplete: it leaves out shell startup files such as .zshenv and .bash_profile, and it does not block the ~/.local directory. An authenticated administrator can call the /api/file/copyFile endpoint with an absolute destination outside the SiYuan workspace, and the app will copy attacker-chosen content there.

That matters because of what those files do. Shell startup files are read automatically every time a terminal session or login shell starts, so anything written into them runs with the privileges of the user who owns the account. The ~/.local directory holds user executables and desktop entries under the XDG base directory layout, so it offers the same kind of persistence. The attacker does not need the victim to open a crafted document or click anything: the payload runs on the next ordinary login.

A different flaw from the note-sharing bugs

This is a separate problem from the three AttributeView flaws fixed in the same release, which let a crafted note run code when the victim opened it. Those flaws, CVE-2026-130679, CVE-2026-130680 and CVE-2026-130681, are stored cross-site scripting bugs in the way SiYuan draws database-style tables inside notes. CVE-2026-130683 needs no shared document at all. It needs an administrator account on the SiYuan instance, which makes it a privilege-escalation and persistence flaw rather than a drive-by attack, but on a self-hosted instance with several admins, or one where an admin account has been compromised, that is a short step to full control of the host.

Severity and what to do

VulnCheck, the organisation that assigned the CVE, rates it 9.3 out of 10 under CVSS 4.0, and 8.2 under CVSS 3.1. The weakness is classified as CWE-22, improper limitation of a pathname to a restricted directory. The National Vulnerability Database published the record on 18 November 2026, and the vendor's advisory is GHSA-4xfj-946m-258h.

The fix is to update SiYuan to version 3.8.10 or later. Administrators should also review who holds admin accounts on their instance, and check shell startup files and the ~/.local directory for content they did not put there. No public proof of concept had been published at the time of writing, and no exploitation has been confirmed. That is no reason to wait: the advisory names the exact files and endpoint involved, and the update that closes this flaw also closes the three note-sharing flaws.