Skip to main content
VulnerabilityPublished

CVE-2026-32940: siyuan · Cross-site Scripting

Affects siyuanSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 9.3 Critical : upgrade to 3.6.1 as a priority.

Data as of 31 Oct 2026, 08:20 UTC

CVSS 3.1 base score
9.3Critical
How severe the flaw is on the 0–10 CVSS scale.

Contested

Critical score, yet low EPSS after six months
EPSS
0.3% chance of exploitation in 30 days – higher than 23% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade siyuan and siyuan-note/siyuan to 3.6.1.

Affected software

ProductAffectedFixed in
siyuan-notesiyuanAffected
  • <3.6.1
Fixed in
  • 3.6.1
GitHubsiyuan-note/siyuanpkg:github/siyuan-note/siyuanOther threatsAffected
  • <3.6.1
Fixed in
  • 3.6.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Organizations should immediately upgrade SiYuan to version 3.6.1 or later, where the vulnerability is fixed. Until upgrade is possible, implement strict network access controls to restrict access to the /api/icon/getDynamicIcon endpoint, limiting it to trusted users or internal networks only. Employ web application firewalls (WAFs) with custom rules to detect and block requests containing suspicious SVG content or data URI schemes like data:text/xml and data:application/xml in href attributes. Educate users about the risks of clicking unknown or suspicious links, especially those involving SVG content. Review and sanitize any user-generated SVG content before rendering or embedding it in web pages or documents. Monitor logs for unusual requests to the vulnerable endpoint and signs of attempted exploitation. Consider disabling or restricting embedding of SVGs via <object> or <embed> tags in user-facing applications if feasible. Conduct regular vulnerability scanning and penetration testing to detect similar issues proactively.

Description

CVE-2026-32940 is a critical cross-site scripting (XSS) vulnerability in SiYuan personal knowledge management system versions 3.6.0 and below. The vulnerability arises from incomplete sanitization of SVG content in the unauthenticated /api/icon/getDynamicIcon endpoint, which improperly allows JavaScript execution via crafted SVGs using bypassed MIME types (data:text/xml and data:application/xml). An attacker can craft a URL that, when visited or embedded via <object> or <embed>, triggers JavaScript execution through injected interactive links inside SVG images. The vulnerability does not affect <img> tag rendering due to lack of interactivity. Exploitation requires user interaction (clicking the injected link) but no authentication. This issue has been fixed in version 3.6.1.

References

Community reviews

Loading reviews…