Live threats

All CVEs / B3log

CVE-2026-31809B3log Siyuan

Medium 6.4 No auth needed

Priority
53
CVSS 4.0
6.4
EPSS
—
Auth required
No
Published
Mar 10, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/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. Prior to 3.5.10, SiYuan's SVG sanitizer (SanitizeSVG) checks href attributes for the javascript: prefix using strings.HasPrefix(). However, inserting ASCII tab (	), newline (
), or carriage return (
) characters inside the javascript: string bypasses this prefix check. Browsers strip these characters per the WHATWG URL specification before parsing the URL scheme, so the JavaScript still executes. This allows an attacker to inject executable JavaScript into the unauthenticated /api/icon/getDynamicIcon endpoint, creating a reflected XSS. This is a second bypass of the fix for CVE-2026-29183 (fixed in v3.5.9). This vulnerability is fixed in 3.5.10.

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-20260310025236-297bd526708f 0.0.0-20260310025236-297bd526708f go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260310025236-297bd526708f
Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260310025236-297bd526708f 0.0.0-20260310025236-297bd526708f go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260310025236-297bd526708f

Per OSV / GitHub Advisories (GHSA-pmc9-f5qr-2pcr, GO-2026-4669). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
b3logsiyuan< 3.5.10

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.