PT-2026-31734 · Electron+3 · Electron+3

CVE-2026-40107

·

Published

2026-04-09

·

Updated

2026-07-30

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:L/SI:L/SA:N
Name of the Vulnerable Software and Affected Versions SiYuan versions prior to 3.6.4
Description SiYuan, a personal knowledge management system, prior to version 3.6.4, configured Mermaid.js with 'securityLevel: "loose"' and 'htmlLabels: true'. This configuration allowed tags with 'src' attributes to bypass internal sanitization and be injected into SVG blocks. The SVG was then injected using innerHTML without further sanitization. When a user opened a note containing a malicious Mermaid diagram, the Electron client fetched the URL. On Windows systems, a protocol-relative URL (//attacker.com/image.png) was interpreted as a UNC path (attacker.comimage.png), triggering automatic SMB authentication and potentially sending the victim's NTLMv2 hash to the attacker.
Recommendations Update SiYuan to version 3.6.4 or later.

Exploit

Fix

SSRF

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-40107
GHSA-W95V-4H65-J455
GO-2026-5702
OPENSUSE-SU-2026:21483-1

Affected Products

Electron
Mermaid.Js
Siyuan
Windows