Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted SVG with namespace-prefixed script tag
-
DeliveryBypass SanitizeSVG parser filter
-
ExploitSVG served as image/svg+xml without CSP
-
ExecutionBrowser XML parser resolves namespace
-
ImpactExecute arbitrary JavaScript in user context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Remote unauthenticated attacker crafts malicious SVG with namespace-prefixed elements (e.g., <x:script xmlns:x="http://www.w3.org/2000/svg">) sent to SiYuan /api/icon/getDynamicIcon endpoint. Victim must open the SVG response directly in a browser. Affects SiYuan versions 3.6.0 to before 3.6.2. |
| Impact | The CVSS 4.0 score of 8.6 reflects high confidentiality and integrity impact (VC:H/VI:H) with network attack vector (AV:N), low complexity (AC:L), and no privileges required (PR:N), though user interaction is necessary (UI:A). The attack surface is significant because the vulnerable endpoint is unauthenticated, enabling any remote attacker to craft malicious icon URLs. However, exploitation requires victim interaction-either social engineering to convince users to directly visit a crafted icon URL, or embedding the malicious SVG URL in contexts where browsers will render it (e.g., image tags in phishing emails or attacker-controlled websites referencing the victim's SiYuan instance). No public exploit identified at time of analysis beyond the documented bypass technique in issue #17246. The vulnerability has high theoretical risk due to no authentication barrier, but practical exploitation depends on deployment context: publicly exposed SiYuan instances face higher risk than internal/localhost deployments. SSVC considerations: exploitation status is publicly documented (POC technique available), attack is automatable once target identified, and technical impact enables arbitrary JavaScript execution in victim context (session hijacking, data exfiltration). Priority is elevated for internet-facing instances, moderate for internal deployments. |
| Exploit ScenarioDerived | An attacker identifies a publicly accessible SiYuan instance running version 3.6.0 or 3.6.1 and crafts a malicious SVG payload using namespace-prefixed script tags (e.g., '<svg><x:script xmlns:x="http://www.w3.org/2000/svg">alert(document.cookie)</x:script></svg>'). The attacker uploads this SVG as a custom icon or crafts a direct URL to the /api/icon/getDynamicIcon endpoint with the payload. They then distribute this URL via phishing emails or embed it in a website as an image source, targeting users of the vulnerable SiYuan instance. When a victim clicks the link or their browser attempts to render the image, the XML parser executes the embedded JavaScript, allowing the attacker to steal session cookies, perform actions as the authenticated user, or pivot to further attacks against the knowledge base. Publicly available exploit code exists documenting this bypass technique in GitHub issue #17246. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 31, 2026
Cross-site scripting (XSS) in SiYuan personal knowledge management system versions 3.6.0-3.6.1 allows remote attackers to execute arbitrary JavaScript via the unauthenticated /api/icon/getDynamicIcon endpoint by bypassing SVG sanitization using XML namespace-prefixed element names. The vulnerability exploits a parser inconsistency where Go's HTML5 parser treats 'x:script' as a distinct tag while browsers' XML parsers resolve the namespace prefix to execute the script. Publicly available exploit code exists (GitHub issue #17246 documents the bypass technique), though no CISA KEV listing indicates mass exploitation campaigns at time of analysis.
RemediationAI
Vendor-released patch: version 3.6.2 fully addresses this vulnerability by implementing namespace-aware SVG sanitization that properly resolves XML namespace prefixes before tag validation. All users of SiYuan 3.6.0 or 3.6.1 should immediately upgrade to version 3.6.2 or later, available at https://github.com/siyuan-note/siyuan/releases/tag/v3.6.2. The patch modifies the SanitizeSVG function to normalize namespace-prefixed element names, preventing the parser mismatch exploitation vector. No workarounds are available that fully mitigate the risk without upgrading; network-level controls such as restricting access to the /api/icon/getDynamicIcon endpoint via firewall rules or reverse proxy filtering can reduce exposure for publicly accessible instances until patching is completed. After upgrading, administrators should review access logs for suspicious requests to the icon endpoint containing XML namespace declarations or unusual SVG content. Detailed remediation guidance is available in the security advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-73g7-86qr-jrg3.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability affects SiYuan's SVG icon processing pipeline, specifically the SanitizeSVG function introduced in version 3.6.0. The root cause (CWE-79: Improper Neutralization of Input During Web Page Generation) stems from a mismatch between parser behaviors. When Go's html5 library parses an SVG containing namespace-prefixed elements like '<x:script xmlns:x="http://www.w3.org/2000/svg">', it records the tag name literally as 'x:script' rather than resolving the namespace. The sanitization blocklist checks for exact tag matches (e.g., 'script'), allowing the prefixed variant to pass through. The endpoint serves the malicious SVG with 'Content-Type: image/svg+xml' and no Content Security Policy headers. When a victim's browser requests this resource directly, its XML parser correctly resolves the 'x:' prefix to the SVG namespace URI, normalizing 'x:script' to a standard 'script' element within the SVG context, thereby executing the embedded JavaScript payload. This represents a classic sanitization bypass exploiting semantic differences between validation-time and rendering-time parsers.
Know when Siyuan gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
SiYuan is a personal knowledge management system. From version 3.6.0 to before version 3.6.2, the SanitizeSVG function introduced in version 3.6.0 to fix XSS in the unauthenticated /api/icon/getDynamicIcon endpoint can be bypassed by using namespace-prefixed element names such as <x:script xmlns:x="http://www.w3.org/2000/svg">. The Go HTML5 parser records the element's tag as "x:script" rather than "script", so the tag check passes it through. The SVG is served with Content-Type: image/svg+xml and no Content Security Policy; when a browser opens the response directly, its XML parser resolves the prefix to the SVG namespace and executes the embedded script. This issue has been patched in version 3.6.2.
Executive ViewAI
SiYuan knowledge management system versions 3.6.0-3.6.1 contain a critical cross-site scripting vulnerability in an unauthenticated API endpoint that allows attackers to execute malicious scripts through namespace-prefixed SVG elements, potentially compromising user data and enabling lateral movement within organizational networks where this tool is deployed.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Block unauthenticated requests to /api/icon/getDynamicIcon endpoint via Web Application Firewall with payload inspection for XML namespace prefixes (x:, svg:, etc.); (2) Implement strict Content-Security-Policy headers prohibiting inline script execution; (3) Segment SiYuan instances from production networks; (4) Monitor server logs for requests containing 'x:script', 'svg:script', or namespace-prefixed element patterns to detect exploitation attempts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role
Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a
SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements
Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,
SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr
A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex
Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package
Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-17687
GHSA-73g7-86qr-jrg3
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB