Live threats

All CVEs / B3log

CVE-2026-34605B3log Siyuan

High 8.6 No auth needed

Priority
67
CVSS 4.0
8.6
EPSS
—
Auth required
No
Published
Mar 31, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Siyuan.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260330031106-f09953afc57a 0.0.0-20260330031106-f09953afc57a go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260330031106-f09953afc57a
Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260330031106-f09953afc57a 0.0.0-20260330031106-f09953afc57a go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260330031106-f09953afc57a

Per OSV / GitHub Advisories (GHSA-73g7-86qr-jrg3, GO-2026-5201). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
b3logsiyuan≥ 3.6.0 < 3.6.2

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.