Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/siyuan-note/siyuan/kernel
  4. ›
  5. CVE-2026-34605

CVE-2026-34605: SiYuan vulnerable to reflected XSS via SVG namespace prefix bypass in SanitizeSVG (getDynamicIcon, unauthenticated)

April 1, 2026

The SanitizeSVG function introduced in v3.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.

References

  • github.com/advisories/GHSA-73g7-86qr-jrg3
  • github.com/siyuan-note/siyuan
  • github.com/siyuan-note/siyuan/issues/17246
  • github.com/siyuan-note/siyuan/releases/tag/v3.6.2
  • github.com/siyuan-note/siyuan/security/advisories/GHSA-73g7-86qr-jrg3
  • nvd.nist.gov/vuln/detail/CVE-2026-34605

Code Behaviors & Features

Detect and mitigate CVE-2026-34605 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20260330031106-f09953afc57a

Fixed versions

  • 0.0.0-20260330031106-f09953afc57a

Solution

Upgrade to version 0.0.0-20260330031106-f09953afc57a or above.

Impact 8.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/siyuan-note/siyuan/kernel/CVE-2026-34605.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 01 Apr 2026 12:19:52 +0000.