Skip to main content

Siyuan EUVDEUVD-2026-17687

| CVE-2026-34605 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-03-31 security-advisories@github.com GHSA-73g7-86qr-jrg3
8.6
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted SVG with namespace-prefixed script tag
  2. Delivery
    Bypass SanitizeSVG parser filter
  3. Exploit
    SVG served as image/svg+xml without CSP
  4. Execution
    Browser XML parser resolves namespace
  5. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

SiYuan 3.6.0, < 3.6.2

Affected Packages

go github.com/siyuan-note/siyuan/kernel fix: 0.0.0-20260330031106-f09953afc57a
euvd siyuan_3_6_0 fix: 3.6.2

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

GitHub Advisory PRIMARY 8.6 HIGH
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
SUSE HIGH

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Apr 01, 2026 - 02:30 nvd
Patch available
CVE Published
Mar 31, 2026 - 22:16 nvd
HIGH 8.6

DescriptionGitHub 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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA POC (1) Vendor GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

63
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Siyuan

View all
CVE-2026-69083 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role

CVE-2026-54067 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a

CVE-2026-69084 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements

CVE-2026-54158 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,

CVE-2026-69085 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr

CVE-2024-53507 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t

CVE-2024-53506 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R

CVE-2024-53505 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti

CVE-2024-53504 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c

CVE-2026-23852 CRITICAL POC
9.6 Jan 19

SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex

CVE-2026-56397 CRITICAL POC
9.4 Jun 21

Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package

CVE-2026-54069 CRITICAL POC
9.2 Jun 24

Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy