CVE-2026-34585
Description
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.
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
- CWE-94: Improper Control of Generation of Code
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-04-01 |
Timeline
- 2026-03-31Published by the CNA21:47 UTC
- 2026-04-01GitHub advisory published (GHSA-ff66-236v-p4fg)1 day after publication
- 2026-04-01CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-ff66-236v-p4fg, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/siyuan-note/siyuan/kernel | before 0.0.0-20260329142331-918d1bd9f967 | 0.0.0-20260329142331-918d1bd9f967 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| b3log siyuan | before 3.6.2fixed in 3.6.2 | 3.6.2 |
References
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-ff66-236v-p4fg
- https://github.com/siyuan-note/siyuan/issues/17246
- https://github.com/siyuan-note/siyuan/releases/tag/v3.6.2
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-34585'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-34585'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-34585'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-34585'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).