---
id: CVE-2026-93591
title: >-
  SiYuan versions before 3.8.3 contain an SQL injection vulnerability in the
  graph.go query2Stmt function where tag values are concatenated raw into SQL
  string literals without escaping single quotes
summary: >-
  SiYuan versions before 3.8.3 contain an SQL injection vulnerability in the
  graph.go query2Stmt function where tag values are concatenated raw into SQL
  string literals without escaping single quotes. A publish-mode reader or
  anonymous vis…
severity: high
cvss: 7.6
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L'
cwe:
  - CWE-89
vendor: siyuan-note
product: siyuan
affected:
  - siyuan < 3.8.3
published: '2026-09-18'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T20:17:33.037'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-93591'
references:
  - url: >-
      https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5rwv-4j4c-f954
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/siyuan-before-3.8.3-sql-injection-via-unescaped-tag-in-graph-go
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5rwv-4j4c-f954
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-18T19:55:27.380887Z'
ingestedAt: '2026-09-18T13:41:41.666Z'
epss: 0.00288
epssPercentile: 0.21501
---

## Overview

SiYuan versions before 3.8.3 contain an SQL injection vulnerability in the graph.go query2Stmt function where tag values are concatenated raw into SQL string literals without escaping single quotes. A publish-mode reader or anonymous visitor can inject SQL via inline HTML span tags in the getGraph endpoint to execute arbitrary queries on the read-write database and exfiltrate private data across notebooks.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
