SiYuan before 3.8.10 Stored XSS to RCE via Table Caption
SiYuan before 3.8.10 persists a table block's caption attribute into IAL properties without HTML sanitization, causing stored cross-site scripting upon import or sync. Attackers can inject an entity-encoded caption with an onerror handler that executes in the Electron client's nodeIntegration context to achieve remote code execution.
Improper Control of Generation of Code CWE-94
An attacker can get the software to run code they supply.
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Siyuan-note Siyuan | Software | from 0, before 3.8.10 | 3.8.10 |
The 9.4 severity score (critical) from vulncheck.com, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Setup needed on the target | None | No special setup on the target is needed. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | Passive | A person has to do something simple, such as view a page. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Other systems: data exposed | High | Total loss of confidentiality in other systems the vulnerable one connects to: everything they hold can be read. |
| Other systems: data changed | High | The attacker can change or delete anything in other systems the vulnerable one connects to. |
| Other systems: service disrupted | High | The attacker can take down other systems the vulnerable one connects to. |
Scorers can disagree. NIST scores every flaw the same way; the reporting company knows its own product best.
NIST lists 1 sources for this flaw, none tagged as a vendor patch.