PT-2026-31734 · Microsoft+3 · Windows+3

Published

2026-04-09

·

Updated

2026-04-10

·

CVE-2026-40107

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.

Fix

SSRF

Weakness Enumeration

Related Identifiers

CVE-2026-40107
GHSA-W95V-4H65-J455

Affected Products

Electron
Mermaid.Js
Siyuan
Windows