CVE-2026-34585
published 2026-03-31CVE-2026-34585: SiYuan is a personal knowledge management system. Prior to version 3.6.2, a vulnerability allows crafted block attribute values to bypass server-side attribute…
PriorityP344high8.2CVSS 3.1
AVLACLPRLUIRSCCHIHAH
EPSS
0.34%
26.1th percentile
SiYuan is a personal knowledge management system. Prior to version 3.6.2, a vulnerability allows crafted block attribute values to bypass server-side attribute escaping when an HTML entity is mixed with raw special characters. An attacker can embed a malicious IAL value inside a .sy document, package it as a .sy.zip, and have the victim import it through the normal Import -> SiYuan .sy.zip workflow. Once the note is opened, the malicious attribute breaks out of its original HTML context and injects an event handler, resulting in stored XSS. In the Electron desktop client, this XSS reaches remote code execution because injected JavaScript runs with access to Node/Electron APIs. This issue has been patched in version 3.6.2.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| b3log | siyuan | < 3.6.2 | 3.6.2 |
| github.com | siyuan-note_siyuan_kernel | >= 0 < 0.0.0-20260329142331-918d1bd9f967 | 0.0.0-20260329142331-918d1bd9f967 |
| github.com | siyuan-note_siyuan_kernel | 0 – 0.0.0-20260421031503-96dfe0bea474 | — |
| siyuan-note | siyuan | < 3.6.2 | 3.6.2 |
CVSS provenance
nvdv3.18.2HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
ghsa8.2HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
SiYuan: Electron Renderer RCE via decodeURIComponent-driven tooltip XSS in aria-label sink (incomplete fix for CVE-2026-34585)
ghsa·2026-05-08·CVSS 8.2
CVE-2026-44588 [HIGH] CWE-116 SiYuan: Electron Renderer RCE via decodeURIComponent-driven tooltip XSS in aria-label sink (incomplete fix for CVE-2026-34585)
SiYuan: Electron Renderer RCE via decodeURIComponent-driven tooltip XSS in aria-label sink (incomplete fix for CVE-2026-34585)
## Summary
The tooltip mouseover handler in `app/src/block/popover.ts` reads `aria-label` via `getAttribute` and passes it through `decodeURIComponent` before assigning to `messageElement.innerHTML` in `app/src/dialog/tooltip.ts:41`. The encoder used at the producer side, `escapeAriaLabel` in `app/src/util/escape.ts:19-25`, only handles HTML special characters (`"`, `'`, `` element, and the `onerror` handler fires.
Because the renderer runs with `nodeIntegration: true, contextIsolation: false, webSecurity: false` (`app/electron/main.js:407-411`), `require('child_process')` is reachable from the injected handler, escalating to arbitrary code execution.
Doc title
GHSA
SiYuan Desktop: Stored XSS in imported .sy.zip content leads to arbitrary command execution
ghsa·2026-04-01
CVE-2026-34585 [HIGH] CWE-79 SiYuan Desktop: Stored XSS in imported .sy.zip content leads to arbitrary command execution
SiYuan Desktop: Stored XSS in imported .sy.zip content leads to arbitrary command execution
### Summary
A vulnerability allows crafted block attribute values to bypass server-side attribute escaping when an HTML entity is mixed with raw special characters. An attacker can embed a malicious IAL value inside a `.sy` document, package it as a `.sy.zip`, and have the victim import it through the normal `Import -> SiYuan .sy.zip` workflow. Once the note is opened, the malicious attribute breaks out of its original HTML context and injects an event handler, resulting in stored XSS. In the Electron desktop client, this XSS reaches remote code execution because injected JavaScript runs with access to Node/Electron APIs.
### Details
The issue is caused by a logic regression in `escapeNodeAttribut
OSV
SiYuan Desktop: Stored XSS in imported .sy.zip content leads to arbitrary command execution
osv·2026-04-01
CVE-2026-34585 [HIGH] SiYuan Desktop: Stored XSS in imported .sy.zip content leads to arbitrary command execution
SiYuan Desktop: Stored XSS in imported .sy.zip content leads to arbitrary command execution
### Summary
A vulnerability allows crafted block attribute values to bypass server-side attribute escaping when an HTML entity is mixed with raw special characters. An attacker can embed a malicious IAL value inside a `.sy` document, package it as a `.sy.zip`, and have the victim import it through the normal `Import -> SiYuan .sy.zip` workflow. Once the note is opened, the malicious attribute breaks out of its original HTML context and injects an event handler, resulting in stored XSS. In the Electron desktop client, this XSS reaches remote code execution because injected JavaScript runs with access to Node/Electron APIs.
### Details
The issue is caused by a logic regression in `escapeNodeAttribut
No detection rules found.
No public exploits indexed.
2026-03-31
Published