Skip to content
Heist/ feed
Back to feed
Medium

SiYuan before v3.8.7 SQL Injection via History Search op and query

Type: advisorySources: Official CVE List

SiYuan before v3.8.7 contains an sql injection vulnerability that allows admin-token holders to read history.db by injecting unescaped op and type=3 query values. Attackers can send crafted UNION SELECT payloads to searchHistory or getHistoryItems endpoints to exfiltrate deleted document content, titles, and paths.

Products
siyuan
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-116170
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 18:35 UTC · Revision 1

Source evidence

SiYuan before v3.8.7 SQL Injection via History Search op and query

core-cve · Original source

Published 25 Oct 2026, 13:20 UTC

SiYuan before v3.8.7 contains an sql injection vulnerability that allows admin-token holders to read history.db by injecting unescaped op and type=3 query values. Attackers can send crafted UNION SELECT payloads to searchHistory or getHistoryItems endpoints to exfiltrate deleted document content, titles, and paths.

cve:CVE-2026-116170

siyuan

Fixed versions: Not specified

Complete source record
{
  "id": "c5814995702d49b157b3525c404fb8a0ab23a35b3e88cae301e8e9be0fccbcca",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-116170",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "SiYuan before v3.8.7 SQL Injection via History Search op and query",
    "summary": "SiYuan before v3.8.7 contains an sql injection vulnerability that allows admin-token holders to read history.db by injecting unescaped op and type=3 query values. Attackers can send crafted UNION SELECT payloads to searchHistory or getHistoryItems endpoints to exfiltrate deleted document content, titles, and paths.",
    "evidence": "cve:CVE-2026-116170",
    "products": [
      {
        "name": {
          "value": "siyuan",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-116170",
      "aliases": [
        "CVE-2026-116170"
      ],
      "metrics": [
        {
          "format": "CVSS",
          "cvssV4_0": {
            "version": "4.0",
            "baseScore": 6.9,
            "attackVector": "NETWORK",
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
            "userInteraction": "NONE",
            "attackComplexity": "LOW",
            "attackRequirements": "NONE",
            "privilegesRequired": "HIGH",
            "subIntegrityImpact": "NONE",
            "vulnIntegrityImpact": "NONE",
            "subAvailabilityImpact": "NONE",
            "vulnAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "NONE",
            "vulnConfidentialityImpact": "HIGH"
          }
        },
        {
          "format": "CVSS",
          "cvssV3_1": {
            "scope": "UNCHANGED",
            "version": "3.1",
            "baseScore": 4.9,
            "attackVector": "NETWORK",
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N",
            "integrityImpact": "NONE",
            "userInteraction": "NONE",
            "attackComplexity": "LOW",
            "availabilityImpact": "NONE",
            "privilegesRequired": "HIGH",
            "confidentialityImpact": "HIGH"
          }
        }
      ],
      "affected": [
        {
          "vendor": "siyuan-note",
          "product": "siyuan",
          "versions": [
            {
              "status": "affected",
              "version": "0",
              "lessThan": "3.8.7",
              "versionType": "semver"
            },
            {
              "status": "unaffected",
              "version": "3.8.7",
              "versionType": "semver"
            }
          ],
          "packageURL": "pkg:golang/github.com/siyuan-note/siyuan/kernel",
          "defaultStatus": "unaffected"
        }
      ],
      "modified": "2026-10-25T14:27:42.570Z",
      "provider": "cve",
      "references": [
        "https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4hjx-84f6-gr7c",
        "https://www.vulncheck.com/advisories/siyuan-before-3.8.7-sql-injection-via-history-search-op-and-query"
      ],
      "provider_metadata": {
        "cna": {
          "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
          "shortName": "VulnCheck",
          "dateUpdated": "2026-10-25T14:27:42.570Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-116170",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 154819,
  "published_at": "2026-10-25T13:20:12.378+00:00"
}