Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-32940— SiYuan has a SanitizeSVG bypass via data:text/xml in getDynamicIcon (incomplete fix for CVE-2026-29183)

Quick assessment

Affected
siyuan-note siyuan
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

SiYuan是SiYuan开源的一个隐私至上的个人知识管理系统。 SiYuan 3.6.0及之前版本存在安全漏洞,该漏洞源于SanitizeSVG存在不完整的阻止列表且未对用户输入进行转义,可能导致点击型跨站脚本攻击。

CVSS 9.3 · Critical EPSS 0.46% · P38
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-32940

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
SiYuan has a SanitizeSVG bypass via data:text/xml in getDynamicIcon (incomplete fix for CVE-2026-29183)
Source: CVE Program / CVE List V5
Vulnerability Description
SiYuan is a personal knowledge management system. In versions 3.6.0 and below, SanitizeSVG has an incomplete blocklist — it blocks data:text/html and data:image/svg+xml in href attributes but misses data:text/xml and data:application/xml, both of which can render SVG with JavaScript execution. The unauthenticated /api/icon/getDynamicIcon endpoint serves user-controlled input (via the content parameter) directly into SVG markup using fmt.Sprintf with no escaping, served as Content-Type: image/svg+xml. This creates a click-through XSS: a victim navigates to a crafted URL, sees an SVG with an injected link, and clicking it triggers JavaScript via the bypassed MIME types. The attack requires direct navigation to the endpoint or <object>/<embed> embedding, since <img> tag rendering in the frontend doesn't allow interactive links. This issue has been fixed in version 3.6.1.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
SiYuan 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
SiYuan是SiYuan开源的一个隐私至上的个人知识管理系统。 SiYuan 3.6.0及之前版本存在安全漏洞,该漏洞源于SanitizeSVG存在不完整的阻止列表且未对用户输入进行转义,可能导致点击型跨站脚本攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Shenlong Deep Dive — AI Deep Analysis

10-question deep dive: root cause, exploitation, mitigation, urgency. Read summary free, full version requires login.

Affected Products

Vendor Product Affected Versions CPE Subscribe
siyuan-note siyuan < 3.6.1 -

II. Public POCs for CVE-2026-32940

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-32940

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-32940 (1)

Vendor Advisories for CVE-2026-32940 (2)

Vendor Pages for CVE-2026-32940 (1)

Same Patch Batch · siyuan-note · 2026-03-20 · 8 CVEs total

CVE-2026-32938 9.9 CRITICAL SiYuan has an Arbitrary File Read in its Desktop Publish Service
CVE-2026-32767 9.8 CRITICAL SiYuan: Authorization Bypass Allows Arbitrary SQL Execution via Search API
CVE-2026-33203 7.5 HIGH SiYuan has an Unauthenticated WebSocket DoS via Auth Keepalive Bypass
CVE-2026-33476 7.5 HIGH SiYuan has an Unauthenticated Arbitrary File Read via Path Traversal
CVE-2026-33194 6.8 MEDIUM SiYuan has an Incomplete Fix for IsSensitivePath Denylist Allows File Read from /opt, /usr
CVE-2026-33067 SiYuan has Stored XSS to RCE via Unsanitized Bazaar Package Metadata
CVE-2026-33066 SiYuan has Stored XSS to RCE via Unsanitized Bazaar README Rendering

IV. Related Vulnerabilities

V. Comments for CVE-2026-32940

No comments yet


Leave a comment