5.4

CVE-2026-40922: SiYuan: Incomplete sanitization of bazaar README allows stored XSS via iframe srcdoc (incomplete fix for CVE-2026-33066)

Modified
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) vulnerability in b3log siyuan. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 20.7% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.4/10
010
Medium · v3.1 (NVD)
EPSS score
0.27%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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.27%

Chance of exploitation in the next 30 days

Percentile

21%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.26% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Siyuan

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

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

3 vendors · 3 products

References

7 links