5.4

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

CVSS: 5.4v3.1MediumModified
AliasesGHSA-8q5w-mmxf-48jgGO-2026-5260
Published 16-04-2026Last modified 20-04-2026

Vulnerability summary

CVE-2026-40922 is a medium (CVSS 5.4) Cross-site Scripting vulnerability in b3log siyuan. EPSS estimates a 0.38% chance of exploitation in the next 30 days, higher than 30.1% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
32/100
0100
Medium · default modelHow is this calculated?
CVSS score
5.4/10
010
Medium · v3.1 (NVD)
EPSS score
0.38%
0%100%
Low · +0.12 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 2

Timeline

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

Description

SiYuan is an open-source personal knowledge management system. In versions 3.6.1 through 3.6.3, a prior fix for XSS in bazaar README rendering (incomplete fix for CVE-2026-33066) enabled the Lute HTML sanitizer, but the sanitizer does not block iframe tags, and its URL-prefix blocklist does not effectively filter srcdoc attributes which contain raw HTML rather than URLs. A malicious bazaar package author can include an iframe with a srcdoc attribute containing embedded scripts in their README. When other users view the package in SiYuan's marketplace UI, the payload executes in the Electron context with full application privileges, enabling arbitrary code execution on the user's machine. This issue has been fixed in version 3.6.4.

CVSS metrics

5 scores · 3 sources · 2 versions

EPSS trend

Probability

0.38%

Chance of exploitation in the next 30 days

Percentile

30%

Versus all other CVEs

30-day change

+0.12 pp

From 0.26% on 19-09-2026

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

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Siyuan

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

B3log1 product
Github.com/siyuan-note/siyuan1 product
  • kernel< 0.0.0-20260414013942-62eed37a3263
Siyuan-note1 product

3 vendors · 3 products

References

7 links