Arbitrary File Read via html2BlockDOM file:// handling in SiYuan Desktop
CVE-2026-32938 affects SiYuan, a personal knowledge management system. In SiYuan desktop versions 3.6.0 and earlier, the /api/lute/html2BlockDOM endpoint processes pasted HTML containing file:// links and copies the referenced local files into the workspace assets directory. The vulnerable behavior does not validate the referenced paths against a sensitive-path allow/deny list before copying. Because the copied content becomes accessible through GET /assets/*path, which requires only authentication, an authenticated publish-service visitor can induce the desktop kernel to copy arbitrary readable local sensitive files and then retrieve them. The issue results in unauthorized exposure of local files from the host running the SiYuan desktop application. The vulnerability is fixed in version 3.6.1.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an authenticated low-privilege attacker, specifically a publish-service visitor, to exfiltrate arbitrary readable sensitive files from the local system hosting the SiYuan desktop instance. This can expose credentials, configuration files, tokens, private keys, documents, and other sensitive local data. The advisory also indicates potential integrity and availability impact, but the primary demonstrated impact is high-severity confidentiality loss through arbitrary file disclosure.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict or disable access for publish-service visitors and other low-privilege authenticated users, especially where the desktop application is exposed to untrusted content. Avoid pasting or processing untrusted HTML containing file:// references. Limit access to the /assets/*path endpoint where feasible, and run the SiYuan desktop application with the minimum filesystem privileges necessary so that sensitive local files are not readable by the application process. Network and application-layer controls that prevent untrusted authenticated users from invoking /api/lute/html2BlockDOM can further reduce exposure.
Patch, then assume compromise.
Upgrade SiYuan to version 3.6.1 or later, which fixes the unsafe file-copy behavior in /api/lute/html2BlockDOM. The advisory references fixing commit 294b8b429dea152cd1df522cddf406054c1619ad and the SiYuan v3.6.1 release as remediation sources.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.