{"id":"CVE-2026-23852","state":"PUBLISHED","title":"SiYuan vulnerable to Stored XSS / RCE via `setBlockAttrs` icon attribute","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.","publishedAt":"2026-01-19T20:00:05.839Z","updatedAt":"2026-01-20T20:05:02.903Z","severity":{"score":5.8,"label":"Medium","version":"4.0","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:H/E:P","source":"GitHub_M"},"assigner":"GitHub_M","products":["siyuan-note siyuan"],"affected":[{"vendor":"siyuan-note","product":"siyuan","versions":[{"version":"< 3.5.4","status":"affected"}]}],"references":["https://github.com/siyuan-note/siyuan/security/advisories/GHSA-7c6g-g2hx-23vv","https://github.com/siyuan-note/siyuan/commit/0be7e1d4e0da9aac0da850b7aeb9b50ede7e5bdb"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/23xxx/CVE-2026-23852.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-23852","state":"PUBLISHED","datePublished":"2026-01-19T20:00:05.839Z","dateUpdated":"2026-01-20T20:05:02.903Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-01-16T15:46:40.843Z"},"containers":{"cna":{"title":"SiYuan vulnerable to Stored XSS / RCE via `setBlockAttrs` icon attribute","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"siyuan-note","product":"siyuan","versions":[{"version":"< 3.5.4","status":"affected"}]}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-7c6g-g2hx-23vv","name":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-7c6g-g2hx-23vv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/siyuan-note/siyuan/commit/0be7e1d4e0da9aac0da850b7aeb9b50ede7e5bdb","name":"https://github.com/siyuan-note/siyuan/commit/0be7e1d4e0da9aac0da850b7aeb9b50ede7e5bdb","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","subAvailabilityImpact":"HIGH","baseScore":5.8,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-01-19T20:00:05.839Z"},"source":{"advisory":"GHSA-7c6g-g2hx-23vv","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-01-20T20:03:58.175698Z","id":"CVE-2026-23852","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-20T20:05:02.903Z"}}]}}}