Cyber Resilience

CVE-2026-34605

HighPublic PoC

Published: 31 March 2026

Published
31 March 2026
Modified
03 April 2026
KEV Added
Patch
CVSS Score v4 8.6 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0047 37.0th percentile
Risk Priority 55 floored blend · peak EPSS

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

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

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Why these techniques?

Unauthenticated public API endpoint (/api/icon/getDynamicIcon) with bypassable SVG sanitization directly enables server-side XSS via T1190.

Confidence: HIGH · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2026-29183Same product: B3Log Siyuan
CVE-2026-34453Same product: B3Log Siyuan
CVE-2026-32940Same product: B3Log Siyuan
CVE-2026-33066Same product: B3Log Siyuan
CVE-2026-33067Same product: B3Log Siyuan
CVE-2026-32751Same product: B3Log Siyuan
CVE-2026-23852Same product: B3Log Siyuan
CVE-2026-33476Same product: B3Log Siyuan
CVE-2026-40259Same product: B3Log Siyuan
CVE-2026-32749Same product: B3Log Siyuan

Affected Assets

b3log
siyuan
3.6.0 — 3.6.2

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.

addresses: CWE-79

Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.

addresses: CWE-79

Validates web inputs to reject script-related content that could produce XSS.

addresses: CWE-79

Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.

References