Skip to main content
EPSS 0.5%top 59%

CVE-2026-74798: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in siyuan-note siyuan

0
Critical
Published: 08/17/2026 (08/17/2026, 11:04:34 UTC)
Source: CVE Database V5
Vendor/Project: siyuan-note
Product: siyuan

Description

SiYuan kernel before v3.7.4 contains a path traversal vulnerability in the database_clean MCP tool. The tool performs only an empty-string check on the id parameter before passing it to RemoveUnusedAttributeView (kernel/model/attribute_view.go), which builds a filesystem path via filepath.Join without validating that id matches SiYuan's node-ID format. An authenticated MCP client can supply path traversal sequences in id to cause the kernel to copy an arbitrary file readable by the process into SiYuan's history directory (arbitrary file read) and then delete the original file (arbitrary file deletion). The corresponding HTTP API handler was hardened in GHSA-7hm9-v7vf-7g4w, but this MCP caller was not.

CVSS v4.0

Score 9.3critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

Affected software

siyuan-note

siyuan

Affected versions
>=0 <3.7.4

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/24/2026, 13:09:35 UTC

Technical Analysis

CVE-2026-74798 is a path traversal vulnerability in the SiYuan kernel prior to version 3.7.4, specifically in the database_clean MCP tool. The tool insufficiently validates the id parameter, performing only an empty-string check before passing it to RemoveUnusedAttributeView, which constructs filesystem paths without verifying that id conforms to the expected node-ID format. An authenticated MCP client can exploit this by supplying path traversal sequences in id, causing the kernel to copy arbitrary readable files into SiYuan's history directory and subsequently delete the original files. While the HTTP API handler was secured in a separate advisory (GHSA-7hm9-v7vf-7g4w), the MCP interface remains vulnerable. The vulnerability has a CVSS 4.0 score of 9.3, indicating critical severity. No patch or official remediation level has been published to date.

Potential Impact

An authenticated MCP client can exploit this vulnerability to read arbitrary files accessible by the SiYuan process and delete those files from the filesystem. This can lead to unauthorized data disclosure and data loss. The vulnerability affects the integrity and confidentiality of the system running the SiYuan kernel prior to version 3.7.4.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since the HTTP API handler was hardened but the MCP caller remains vulnerable, avoid using the MCP interface until an official fix is released. Monitor vendor communications for updates and apply patches promptly once available.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-08-16T12:59:42.223Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a82f001bf8831d539c482c1

Added to database: 08/17/2026, 11:26:57 UTC

Last enriched: 08/24/2026, 13:09:35 UTC

Last updated: 10/02/2026, 05:50:17 UTC

Views: 52

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses