High
SiYuan has an arbitrary file write in the host via /api/asset/upload
Type: advisorySources: OSV
SiYuan is a personal knowledge management system. Prior to version 3.1.16, the `/api/asset/upload` endpoint in Siyuan is vulnerable to both arbitrary file write to the host and stored cross-site scripting (via the file write). Version 3.1.16 contains a patch for the issue.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-55659
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 18:06 UTC · Revision 1
Source evidence
SiYuan has an arbitrary file write in the host via /api/asset/upload
core-osv · Original sourcePublished 11 Dec 2024, 22:53 UTC
SiYuan is a personal knowledge management system. Prior to version 3.1.16, the `/api/asset/upload` endpoint in Siyuan is vulnerable to both arbitrary file write to the host and stored cross-site scripting (via the file write). Version 3.1.16 contains a patch for the issue.
osv:CVE-2024-55659
Complete source record
{
"id": "be35c6da129508fae6882445e3ccd01c9d977f03477ecdf361232788f407021a",
"url": "https://osv.dev/vulnerability/CVE-2024-55659",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "SiYuan has an arbitrary file write in the host via /api/asset/upload",
"summary": "SiYuan is a personal knowledge management system. Prior to version 3.1.16, the `/api/asset/upload` endpoint in Siyuan is vulnerable to both arbitrary file write to the host and stored cross-site scripting (via the file write). Version 3.1.16 contains a patch for the issue.",
"evidence": "osv:CVE-2024-55659",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-55659",
"aliases": [
"CVE-2024-55659",
"GHSA-fqj6-whhx-47p7",
"GO-2024-3326"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/siyuan-note/siyuan",
"type": "GIT",
"events": [
{
"introduced": "5129ad926a21176a352cf5f630e0651011bf9c83"
},
{
"fixed": "e70ed57f6e4852e2bd702671aeb8eb3a47a36d71"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:b3log:siyuan:3.1.15:-:*:*:*:*:*:*",
"range": [
{
"introduced": "3.1.15-NA"
},
{
"last_affected": "3.1.15-NA"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "e70ed57f6e4852e2bd702671aeb8eb3a47a36d71"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"3.1.15-NA",
"v3.1.15"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-55659.json"
}
}
],
"modified": "2026-10-28T02:30:38.446922022Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/55xxx/CVE-2024-55659.json",
"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-fqj6-whhx-47p7",
"https://nvd.nist.gov/vuln/detail/CVE-2024-55659",
"https://github.com/siyuan-note/siyuan/commit/e70ed57f6e4852e2bd702671aeb8eb3a47a36d71"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22",
"CWE-79"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/55xxx/CVE-2024-55659.json"
}
},
"related_cves": [
{
"value": "CVE-2024-55659",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 505597,
"published_at": "2024-12-11T22:53:45.983+00:00"
}