CVE-2026-40322: Vulnerability in B3log Siyuan

Critical. SiYuan is an open-source personal knowledge management system. In versions 3.6.3 and below, Mermaid diagrams are rendered with securityLevel set to "loose", and the resulting SVG is injected into the DOM via innerHTML. This allows attacker-controlled javascript: URLs in Mermaid code blocks to survive into the rendered output. On desktop builds using Electron, windows are created with nodeIntegration enabled and...

CWE-79, CWE-94

Exploitation
None confirmed
Severity
9 of 10
Attack likelihood
0.3 % in 30 days
Fix
Fixed version known
Patch deadline
No deadline set

Details

EU ID
EUVD-2026-23330
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Weakness
CWE-79, CWE-94
Published
16 Apr 2026
Last change
17 Jun 2026
Likelihood rank
Higher than 27 % of all rated vulnerabilities
Analysis status
Analyzed

Affected products

Affected versions and the first fixed release

  • B3log Siyuan Before 3.6.4. Fixed in 3.6.4

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related