Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
High
VulnerabilityCVE-2026-23851cvecve-2026-23851cwe-22
Published: Mon Jan 19 2026 (01/19/2026, 19:57:29 UTC)
Source: CVE Database V5
Vendor/Project: siyuan-note
Product: siyuan

Description

CVE-2026-23851 is a high-severity path traversal vulnerability in SiYuan Note versions prior to 3. 5. 4. It allows authenticated users to copy arbitrary files from anywhere on the server's filesystem into the application workspace due to improper validation of source file paths in the /api/file/globalCopyFiles endpoint. The vulnerability arises because the code only checks if the source file exists but does not restrict the source path to the authorized workspace directory. Exploitation requires authentication but no user interaction and can lead to unauthorized access to sensitive files, potentially compromising confidentiality. The issue is patched in version 3. 5. 4. European organizations using affected versions should prioritize updating and restrict access to the API endpoint to mitigate risks.

AI-Powered Analysis

AILast updated: 01/19/2026, 20:20:17 UTC

Technical Analysis

CVE-2026-23851 is a path traversal vulnerability classified under CWE-22 affecting SiYuan Note, a personal knowledge management system. The flaw exists in versions prior to 3.5.4 within the /api/file/globalCopyFiles endpoint, where the function globalCopyFiles accepts a JSON array of source file paths (srcs) to copy files into the application's workspace. The vulnerability stems from insufficient validation of these source paths: the code verifies only the existence of the source files using filelock.IsExist(src) but fails to ensure that these paths are confined within the authorized workspace directory. Consequently, an authenticated user can specify arbitrary absolute or relative paths to files anywhere on the server's filesystem, enabling unauthorized copying of sensitive files into the workspace. This can lead to exposure of confidential information or further exploitation if sensitive configuration or credential files are accessed. The vulnerability does not require user interaction and can be exploited remotely over the network, but it does require the attacker to have authenticated access to the application. The CVSS 4.0 score is 8.3 (high), reflecting the network attack vector, low attack complexity, no privileges required beyond authentication, no user interaction, and high impact on confidentiality. The issue was addressed in SiYuan Note version 3.5.4 by implementing proper path validation to restrict source files to the workspace directory. No known exploits are reported in the wild yet, but the vulnerability poses a significant risk to affected deployments.

Potential Impact

For European organizations using SiYuan Note versions prior to 3.5.4, this vulnerability can lead to unauthorized disclosure of sensitive files stored on the server hosting the application. This could include configuration files, credentials, or other confidential data, potentially resulting in data breaches and compliance violations under regulations such as GDPR. The ability to copy arbitrary files into the workspace might also facilitate further attacks, such as privilege escalation or lateral movement within the network. Since the vulnerability requires authentication, insider threats or compromised accounts pose a particular risk. The impact on confidentiality is high, while integrity and availability impacts are limited but possible if critical files are manipulated. Organizations relying on SiYuan Note for knowledge management, especially those handling sensitive or regulated data, face increased risk of data exposure and operational disruption.

Mitigation Recommendations

European organizations should immediately upgrade SiYuan Note to version 3.5.4 or later to apply the official patch that enforces proper path validation. Until the upgrade is possible, restrict access to the /api/file/globalCopyFiles endpoint by implementing strict access controls, such as IP whitelisting, network segmentation, or application-layer firewalls. Enforce strong authentication mechanisms and monitor authenticated user activities for suspicious file copy requests. Conduct regular audits of server file permissions to minimize exposure of sensitive files. Additionally, implement logging and alerting on file copy operations within the application to detect potential exploitation attempts. Educate users about the risks of compromised credentials and enforce least privilege principles to limit the impact of any account compromise. Finally, consider isolating the SiYuan Note server from critical systems to reduce potential lateral movement.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-01-16T15:46:40.843Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 696e8ea44623b1157ccb6c5c

Added to database: 1/19/2026, 8:05:56 PM

Last enriched: 1/19/2026, 8:20:17 PM

Last updated: 1/19/2026, 9:22:08 PM

Views: 4

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 in Console -> Billing for AI refresh and higher limits.

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

Latest Threats