CVE-2026-23852CWE-94

SiYuan vulnerable to Stored XSS / RCE via `setBlockAttrs` icon attribute

Medium · published January 19, 2026

CVSS v4.0
5.8
EPSS
1%
Percentile
56.5
In the wild
Unconfirmed
What it is

⚠️ SiYuan has a sneaky stored XSS vulnerability that lets attackers inject malicious HTML attributes into dynamic icons! This issue affects all versions before 3.5.4! Think of it like a restaurant that allows customers to put whatever they want on their orders without checking the ingredients. If a chef isn’t careful, someone might sneak in something harmful that ends up on everyone’s plate! An attacker can exploit this vulnerability to inject harmful scripts that get stored and rendered later. This could lead to data theft, session hijacking, or even remote code execution in certain environments—absolutely devastating!

Put simply

Think of it like a restaurant that allows customers to put whatever they want on their orders without checking the ingredients. If a chef isn’t careful, someone might sneak in something harmful that ends up on everyone’s plate! This stored XSS vulnerability in SiYuan allows injection of arbitrary HTML attributes via the `/api/attr/setBlockAttrs` API, which are then executed in an unsanitized context in the dynamic icons feature, enabling potential remote code execution.

What to do

An attacker can exploit this vulnerability to inject harmful scripts that get stored and rendered later. This could lead to data theft, session hijacking, or even remote code execution in certain environments—absolutely devastating! Upgrade to SiYuan version 3.5.4 immediately to patch this vulnerability. Ensure you review your application for any unauthorized scripts and implement proper input sanitization for the dynamic icon feature. Regularly audit your APIs to catch any sneaky vulnerabilities! You've got this! With a quick upgrade and some vigilance, you'll have your system locked down tight! 🛡️

The record
Technical detail
CVSS v4.0
5.8 · MEDIUM
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
EPSS
0.00810 · 56.5th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-01-19T20:00Z
EPSS history
Timeline
  • 19 JAN 20:00Z
    SiYuan vulnerable to Stored XSS / RCE via `setBlockAttrs` icon attribute
    cvelistv5