9.1

CVE-2026-40322: b3log siyuan Cross-site Scripting

CVSS: 9.1v3.1CriticalAnalyzed
Published 16-04-2026Last modified 17-04-2026

Vulnerability summary

CVE-2026-40322 is a critical (CVSS 9.1) Cross-site Scripting vulnerability in b3log siyuan. EPSS estimates a 0.53% chance of exploitation in the next 30 days, higher than 43.3% of scored vulnerabilities.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.1/10
010
Critical · v3.1 (CVE.org)
EPSS score
0.53%
0%100%
Low · +0.22 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 16-04-2026
    PublishedVulnerability first disclosed.
  2. 17-04-2026
    Last modifiedVulnerability information updated.

Description

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 contextIsolation disabled, escalating the stored XSS to arbitrary code execution when a victim opens a note containing a malicious Mermaid block and clicks the rendered diagram node. This issue has been fixed in version 3.6.4.

CVSS metrics

2 scores · 2 sources · 1 version

EPSS trend

Probability

0.53%

Chance of exploitation in the next 30 days

Percentile

43%

Versus all other CVEs

30-day change

+0.22 pp

From 0.31% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.53%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

B3log1 product
Siyuan-note1 product

2 vendors · 2 products

References

2 links