Arbitrary Code Injection Affecting github.com/siyuan-note/siyuan/kernel/sql package, versions <3.6.4-dev2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.54% (41st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMSIYUANNOTESIYUANKERNELSQL-16318321
  • published28 Apr 2026
  • disclosed8 Apr 2026
  • creditNgocnn97

Introduced: 8 Apr 2026

CVE-2026-39846  (opens in a new tab)
CWE-79  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade github.com/siyuan-note/siyuan/kernel/sql to version 3.6.4-dev2 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection in the handling of table captions during the rendering process. An attacker can execute arbitrary code with the privileges of the desktop client by syncing a crafted note containing malicious HTML or JavaScript in the caption attribute, which is then rendered and executed when the victim opens the note in the Electron desktop client.

Note: This is only exploitable if the Electron renderer is configured with nodeIntegration enabled and contextIsolation disabled, allowing attacker-supplied JavaScript to access Node.js APIs.

CVSS Base Scores

version 4.0
version 3.1