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
{
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2024-12-12T02:15:32Z",
"github_reviewed_at": "2024-12-11T18:44:49Z",
"cwe_ids": [
"CWE-22"
]
}