Skip to main content

SiYuan Note EUVDEUVD-2026-118292

| CVE-2026-123492 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-11-06 VulnCheck GHSA-pxf5-vpcp-gg52
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid SiYuan API token
  2. Delivery
    Initialize MCP session (initialize + notifications/initialized)
  3. Exploit
    Send resources/read for nonexistent resource
  4. Execution
    Typed-nil deref panics kernel
  5. Impact
    Process exits, service interrupted

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires: (1) the SiYuan MCP server endpoint (/mcp on port 6806 by default) reachable by the attacker; (2) a valid API token configured in conf.json, supplied as Authorization: Bearer; (3) a fully initialized MCP session (initialize followed by notifications/initialized). With those met, a single resources/read request carrying any params.uri value (including an empty string or siyuan://doc/x) reliably crashes the kernel; the same request fails safely before initialization or when params are omitted entirely, so an initialized session is the key trigger condition. Limiting factors: exploitation needs the valid API token (PR:H, so not an unauthenticated attack), the MCP feature must be in use, and impact is availability-only - the kernel auto-restarts (~2.6s) under Docker 'unless-stopped'/restart policies, but a 'no' restart policy or non-container deployment can leave the service down until manual intervention, with possible loss of unsaved edits.

Impact

This is a moderate-severity availability-only issue, not a top-tier emergency. The vendor CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H, score 6.9) is internally consistent with the evidence: network-reachable, low complexity, but requiring high privileges (a valid SiYuan API token), with impact confined to availability (VC:N/VI:N) - no confidentiality or integrity loss. The vuln.today decision label is 'this_month' rather than act_now/emergency, which aligns with the signals. No CISA KEV entry and no EPSS score are present in the input, so there is no indication of active exploitation or statistically-modeled exploitation likelihood; the absence of these feeds is a data gap, not evidence of safety. A detailed public reproduction (curl steps) is published in the GHSA advisory. The signals are mutually reinforcing rather than conflicting: a reliable, trivially-triggered crash (single resources/read request) offset by the PR:H precondition and the fact that the kernel auto-recovers (~2.6s under Docker restart policies). The main caveat is PR:H - the SiYuan API token is a single operator/config credential, so 'authenticated' here means anyone holding that one token (or a connected AI/MCP client configured with it), which materially narrows the attacker population.

Exploit ScenarioDerived

An attacker or misbehaving automated MCP client that already holds a valid SiYuan API token opens an initialized MCP session and sends a single resources/read request for any (even empty or arbitrary) URI. Because SiYuan registers no MCP resources, the go-sdk returns a typed-nil *ReadResourceResult plus an error, and privateCacheMiddleware dereferences it, panicking the kernel and terminating the process. A public curl-based reproduction is included in the GHSA advisory; in Docker the container exits with code 2 and restarts in roughly 2.6 seconds, briefly interrupting all other clients.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 06, 2026

SiYuan Note kernels at or below v3.8.8 can be crashed by any holder of a valid API token who sends a single resources/read request to the built-in MCP endpoint (/mcp on port 6806) after completing MCP session initialization, terminating the kernel process and interrupting service for all connected clients. The flaw is a nil pointer dereference in the privateCacheMiddleware caching wrapper, which unconditionally dereferences a typed-nil *ReadResourceResult returned with an error when a nonexistent resource is requested. Impact is availability-only: under Docker restart policies the container returns in roughly 2.6 seconds (observed exit code 2), but a 'no' restart policy or a non-container deployment leaves the service down until manual intervention, and in-flight writes may be lost. The vulnerability requires a valid API token (high privilege) and no public exploitation against real deployments is confirmed; the reporter documented a working curl-based reproduction in v3.8.8.

RemediationAI

Vendor-released patch: upgrade to SiYuan v3.8.9 or later, which fixes the nil pointer dereference per the GitHub advisory GHSA-2x3p-x74g-442x (https://github.com/siyuan-note/siyuan/security/advisories/GHSA-2x3p-x74g-442x); the Docker image b3log/siyuan must be repulled to a tag at or above 3.8.9, and admins running v3.8.7 or v3.8.8 builds, including those tracking dev/master, should verify the fix is actually present since the unguarded code was still observed on those branches on 2026-10-22. Until upgrading, restrict reachability of the MCP endpoint: bind SiYuan to localhost or place /mcp on port 6806 behind a firewall or reverse-proxy allowlist so only trusted clients can reach it, accepting that this breaks remote MCP integrations. Because a valid API token is mandatory for the trigger, rotate or narrow token distribution to trusted automation only, and note that this does not stop a compromised or careless MCP client, which may probe resources/* on its own. Configure the container restart policy (for example unless-stopped) so a crash recovers in roughly 2.6 seconds and monitor logs for 'panic: runtime error: invalid memory address or nil pointer dereference' in newServer.privateCacheMiddleware.func1.1 as the crash signature, understanding that with a 'no' restart policy or a non-container install the outage persists until manual restart and unsaved edits may be lost. Upstream fixes should add an err != nil early return and per-branch nil checks in the middleware and return the standard JSON-RPC -32002 Resource not found error instead of leaking a typed-nil result.

Affected VersionsENISA

SiYuan 0 <3.8.9

Affected Packages

euvd siyuan fix: 3.8.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SiYuan's kernel exposes a Model Context Protocol (MCP) server implemented with github.com/modelcontextprotocol/go-sdk v1.8.0. In kernel/mcp/server.go, privateCacheMiddleware wraps every MCP method handler and uses a Go type switch to stamp CacheScope = "private" onto the returned result; the ReadResourceResult branch dereferences the pointer without checking it for nil. When a client requests an unregistered resource, the go-sdk readResource handler returns ResourceNotFoundError with a typed-nil *ReadResourceResult (a non-nil interface holding a nil pointer). The type switch therefore matches, and writing to cacheable.CacheScope faults at address offset 0x18, producing SIGSEGV and killing the kernel process with exit code 2. SiYuan registers no resources at all (its server capabilities advertise only tools, and resources/list returns an empty list), yet the go-sdk always registers the resources/read method and its request validation only checks that the method name is known, not that the server declared the resources capability - so any client that probes resources/read on an initialized session triggers the panic. This is CWE-476 (NULL Pointer Dereference); the trigger requires an initialized MCP session (initialize followed by notifications/initialized), and the same request fails safely with a protocol error before initialization or when params are omitted. A related but distinct MCP crash involving a forced type assertion in kernel/mcp/tools/todo.go is tracked separately as issue #18918.

Know when Siyuan gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 4.9 MEDIUM

Network-reachable MCP endpoint and a single low-complexity request give AV:N/AC:L/UI:N; a valid API token (operator credential) is required so PR:H; impact is kernel crash only, so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 06, 2026 - 16:02 EUVD

DescriptionCVE.org

SiYuan before 3.8.9 contains a nil pointer dereference vulnerability in privateCacheMiddleware that allows authenticated attackers to crash the kernel by reading nonexistent MCP resources. Attackers with a valid API token can send a resources/read request in an initialized MCP session, causing a panic that terminates the kernel process and interrupts service.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
self-hosted open-source note-taking app, limited production/enterprise footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Siyuan

View all
CVE-2026-69083 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role

CVE-2026-54067 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a

CVE-2026-69084 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements

CVE-2026-54158 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,

CVE-2026-69085 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr

CVE-2024-53507 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t

CVE-2024-53506 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R

CVE-2024-53505 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti

CVE-2024-53504 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c

CVE-2026-23852 CRITICAL POC
9.6 Jan 19

SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex

CVE-2026-56397 CRITICAL POC
9.4 Jun 21

Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package

CVE-2026-54069 CRITICAL POC
9.2 Jun 24

Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy