Skip to content
Heist/ feed
Back to feed
High

SiYuan has an arbitrary file deletion vulnerability

Type: advisorySources: OSV

SiYuan is self-hosted, open source personal knowledge management software. SiYuan Note version 3.1.18 has an arbitrary file deletion vulnerability. The vulnerability exists in the `POST /api/history/getDocHistoryContent` endpoint. An attacker can craft a payload to exploit this vulnerability, resulting in the deletion of arbitrary files on the server. Commit d9887aeec1b27073bec66299a9a4181dc42969f3 fixes this vulnerability and is expected to be available in version 3.1.19.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-21609
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 21:11 UTC · Revision 1

Source evidence

SiYuan has an arbitrary file deletion vulnerability

core-osv · Original source

Published 3 Jan 2025, 16:26 UTC

SiYuan is self-hosted, open source personal knowledge management software. SiYuan Note version 3.1.18 has an arbitrary file deletion vulnerability. The vulnerability exists in the `POST /api/history/getDocHistoryContent` endpoint. An attacker can craft a payload to exploit this vulnerability, resulting in the deletion of arbitrary files on the server. Commit d9887aeec1b27073bec66299a9a4181dc42969f3 fixes this vulnerability and is expected to be available in version 3.1.19.

osv:CVE-2025-21609
Complete source record
{
  "id": "d671ed1b8920e6a0a2747ec6f854abc8bd0ff3ed2488ee7e39ed45bc0d1add2f",
  "url": "https://osv.dev/vulnerability/CVE-2025-21609",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "SiYuan has an arbitrary file deletion vulnerability",
    "summary": "SiYuan is self-hosted, open source personal knowledge management software. SiYuan Note version 3.1.18 has an arbitrary file deletion vulnerability. The vulnerability exists in the `POST /api/history/getDocHistoryContent` endpoint. An attacker can craft a payload to exploit this vulnerability, resulting in the deletion of arbitrary files on the server. Commit d9887aeec1b27073bec66299a9a4181dc42969f3 fixes this vulnerability and is expected to be available in version 3.1.19.",
    "evidence": "osv:CVE-2025-21609",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-21609",
      "aliases": [
        "CVE-2025-21609",
        "GHSA-8fx8-pffw-w498",
        "GO-2025-3362"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/siyuan-note/siyuan",
              "type": "GIT",
              "events": [
                {
                  "introduced": "adc819973b71901ef0b163eb3f8dd85016bf0796"
                },
                {
                  "fixed": "d9887aeec1b27073bec66299a9a4181dc42969f3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "= 3.1.18"
                      },
                      {
                        "last_affected": "= 3.1.18"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d9887aeec1b27073bec66299a9a4181dc42969f3"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.1.18-NA",
            "= 3.1.18",
            "v3.1.18"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21609.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.702033696Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21609.json",
        "https://github.com/siyuan-note/siyuan/security/advisories/GHSA-8fx8-pffw-w498",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-21609",
        "https://github.com/siyuan-note/siyuan/commit/d9887aeec1b27073bec66299a9a4181dc42969f3"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-459",
          "CWE-552"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21609.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-21609",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507074,
  "published_at": "2025-01-03T16:26:36.42+00:00"
}