Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid SiYuan API token
-
DeliveryInitialize MCP session (initialize + notifications/initialized)
-
ExploitSend resources/read for nonexistent resource
-
ExecutionTyped-nil deref panics kernel
-
ImpactProcess 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role
Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a
SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements
Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,
SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr
A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex
Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package
Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro
EUVD-2026-118292
GHSA-pxf5-vpcp-gg52
NVD
CVE.org
EPSS
Exploit-DB