# CVE-2026-23852: SiYuan vulnerable to Stored XSS / RCE via `setBlockAttrs` icon attribute

- Severity: Medium 5.8 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-19T20:00:05.839Z
- Modified: 2026-06-17T10:22:12.460Z
- Weaknesses: CWE-79, CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

SiYuan is a personal knowledge management system. Versions prior to 3.5.4 have a stored Cross-Site Scripting (XSS) vulnerability that allows an attacker to inject arbitrary HTML attributes into the `icon` attribute of a block via the `/api/attr/setBlockAttrs` API. The payload is later rendered in the dynamic icon feature in an unsanitized context, leading to stored XSS and, in the desktop environment, potential remote code execution (RCE). This issue bypasses the previous fix for issue `#15970` (XSS → RCE via dynamic icons). Version 3.5.4 contains an updated fix.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 3.5.4
- b3log siyuan: before 3.5.4

## Every score

- GitHub_M: CVSS:4.0 5.8 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:P`
- NVD: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-7c6g-g2hx-23vv> (exploit, patch, vendor-advisory)
- <https://github.com/siyuan-note/siyuan/commit/0be7e1d4e0da9aac0da850b7aeb9b50ede7e5bdb> (patch)

## Sources

- CVE List: [CVE-2026-23852](https://www.cve.org/CVERecord?id=CVE-2026-23852), CVE Terms of Use, modified 2026-01-20
- NVD: [CVE-2026-23852](https://nvd.nist.gov/vuln/detail/CVE-2026-23852), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23852 · Whole record: https://cve.day/CVE-2026-23852.json · Rebuilt by cve.day 2026-11-25T22:59:12.955Z
