{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "3.7.2"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "726dae1d518927f70ea609bc146288b9aa95e366"
            }
          ],
          "repo": "https://github.com/siyuan-note/siyuan",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-q2vg-7qgx-x5fc"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72811.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "3.7.4"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "3.7.4"
              }
            ],
            "source": "CPE_FIELD",
            "strategy": "CPEApplicability"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "3.7.4"
              }
            ],
            "source": "DESCRIPTION"
          }
        ]
      }
    ]
  },
  "details": "SiYuan versions \u003c= v3.7.2 contain a SQL injection vulnerability in the backlink/mention search query (kernel/model/backlink.go), which concatenates stored block metadata (title, name, alias, anchor text) and the client-supplied keyword into a SQL MATCH/search statement while escaping only the double-quote character and not the single quote. A single quote in the client keyword (first-order, reachable by an anonymous or RoleReader user on the publish surface) or in stored document metadata (second-order) breaks out of the string literal. Because the query runs on the main read-write siyuan.db handle via a statement-stacking-capable driver, an attacker can execute arbitrary SQL, enabling cross-notebook read and write. Fixed in v3.7.4.",
  "id": "CVE-2026-72811",
  "modified": "2026-10-21T02:30:28.021602071Z",
  "published": "2026-08-14T11:35:24.767Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72811.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/siyuan-note/siyuan/security/advisories/GHSA-q2vg-7qgx-x5fc"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-72811"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/siyuan-before-sql-injection-via-backlink-search"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "SiYuan before v3.7.4 SQL Injection via backlink search"
}