The /api/asset/upload endpoint in Siyuan is vulnerable to both arbitrary file write to the host and stored XSS (via the file write).
Arbitrary file write
{ "nvd_published_at": "2024-12-12T02:15:32Z", "cwe_ids": [ "CWE-22" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2024-12-11T18:44:49Z" }