CVE-2026-34605
Published: 31 March 2026
Summary
CVE-2026-34605 is a high-severity Cross-site Scripting (CWE-79) vulnerability in B3Log Siyuan. Its CVSS base score is 8.6 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 37.0th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
SiYuan is a personal knowledge management system affected by an XSS vulnerability (CWE-79) in versions 3.6.0 through 3.6.1. The SanitizeSVG function added in 3.6.0 to protect the unauthenticated /api/icon/getDynamicIcon endpoint can be bypassed when an attacker supplies namespace-prefixed SVG elements such as <x:script xmlns:x="http://www.w3.org/2000/svg">. Because the Go HTML5 parser records the tag name literally as "x:script", the sanitization check passes the element through; the response is then served with Content-Type image/svg+xml and no Content-Security-Policy header, allowing a browser's XML parser to resolve the namespace and execute the script when the URL is loaded directly.
An unauthenticated remote attacker can exploit the flaw by crafting a malicious icon request that returns executable script in the SVG response. When a victim’s browser renders that response, the attacker can achieve arbitrary JavaScript execution in the victim’s context, resulting in high impact on confidentiality, integrity, and limited availability according to the CVSS 8.6 rating.
The project’s GitHub security advisory and release notes for version 3.6.2 state that the issue has been patched by updating the sanitization logic to handle namespace-prefixed elements correctly.
EPSS for the CVE rose from a low baseline of 0.0016 to a peak of 0.0107, indicating that exploitation interest increased after disclosure.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-17687
Vulnerability details
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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Unauthenticated public API endpoint (/api/icon/getDynamicIcon) with bypassable SVG sanitization directly enables server-side XSS via T1190.
CVEs Like This One
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.