CVE-2026-34605

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*

History

03 Apr 2026, 16:01

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 6.1
CPE cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Summary
  • (es) SiYuan es un sistema de gestión de conocimiento personal. Desde la versión 3.6.0 hasta antes de la versión 3.6.2, la función SanitizeSVG introducida en la versión 3.6.0 para corregir XSS en el endpoint no autenticado /API/icon/getDynamicIcon puede ser eludida mediante el uso de nombres de elementos con prefijo de espacio de nombres como . El analizador HTML5 de Go registra la etiqueta del elemento como 'x:script' en lugar de 'script', por lo que la verificación de la etiqueta lo permite pasar. El SVG se sirve con Content-Type: image/svg+xml y sin Política de Seguridad de Contenido; cuando un navegador abre la respuesta directamente, su analizador XML resuelve el prefijo al espacio de nombres SVG y ejecuta el script incrustado. Este problema ha sido parcheado en la versión 3.6.2.
References () https://github.com/siyuan-note/siyuan/issues/17246 - () https://github.com/siyuan-note/siyuan/issues/17246 - Issue Tracking
References () https://github.com/siyuan-note/siyuan/releases/tag/v3.6.2 - () https://github.com/siyuan-note/siyuan/releases/tag/v3.6.2 - Release Notes
References () https://github.com/siyuan-note/siyuan/security/advisories/GHSA-73g7-86qr-jrg3 - () https://github.com/siyuan-note/siyuan/security/advisories/GHSA-73g7-86qr-jrg3 - Exploit, Vendor Advisory
First Time B3log
B3log siyuan

31 Mar 2026, 22:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-31 22:16

Updated : 2026-04-03 16:01


NVD link : CVE-2026-34605

Mitre link : CVE-2026-34605

CVE.ORG link : CVE-2026-34605


JSON object : View

Products Affected

b3log

  • siyuan
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')