LiveActive security incident?Get immediate response
CVE Record

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

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.

MediumCVSS 5.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2026-23852 affects SiYuan, a personal knowledge management app. Before version 3.5.4, attackers can store unsafe content in a block icon attribute. When later viewed, it can run script in the user’s session and may become remote code execution in the desktop app. Upgrade priority is higher for desktop or shared SiYuan deployments.

Executive priority

Treat as urgent for organizations using SiYuan desktop or collaborative/shared notebooks. The business risk is unauthorized script execution and possible code execution on endpoints. Patch to 3.5.4 should be scheduled promptly, especially where external or low-trust content is handled.

Technical view

Versions before SiYuan 3.5.4 allow arbitrary HTML attributes in the block `icon` attribute through `/api/attr/setBlockAttrs`. The dynamic icon renderer later uses this data without sufficient sanitization, causing stored XSS and potential desktop RCE. The advisory says this bypasses a prior fix for issue #15970. CVSS v4 score is 5.8.

Likely exposure

Exposure is limited to SiYuan installations below 3.5.4. Risk is greatest where untrusted users can create or modify blocks, or where desktop clients open shared or attacker-influenced content.

Exploitation context

The sources describe stored XSS with user interaction required and potential RCE in desktop environments. CISA KEV status is false in the provided bundle, and no cited source states active exploitation.

Researcher notes

The vulnerability is a stored XSS-to-potential-RCE issue in dynamic icon handling. It is specifically described as a bypass of the earlier #15970 fix. Public sources identify the fixed version and commit, but do not provide evidence of exploitation in the wild.

Mitigation direction

  • Upgrade SiYuan to version 3.5.4 or later.
  • Review the GitHub advisory for vendor guidance and any deployment-specific notes.
  • Restrict untrusted access to block attribute modification until upgraded.
  • Avoid opening untrusted shared workspaces or notes on desktop clients before remediation.

Validation and detection

  • Inventory SiYuan desktop and server versions across managed systems.
  • Confirm all installations report version 3.5.4 or later.
  • Review access paths to `/api/attr/setBlockAttrs` in exposed deployments.
  • Check vendor advisory and commit references against deployed build provenance.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-94: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-23852 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.8 (4.0)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.8CVSS 4.0MediumCVSS: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——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

5.8Medium
CVSS 4.0 vector shape for CVE-2026-23852Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
siyuan-notesiyuan< 3.5.4Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-94 · source CWE mapping

Improper Control of Generation of Code ('Code Injection')

Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.