CVE-2026-59854
JSON

4.9medium

SiYuan: Incomplete IsSensitivePath denylist: globalCopyFiles reads home-dir credential dotfiles into the workspace

Severity
4.9medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.28% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, POST /api/file/globalCopyFiles accepts attacker-supplied absolute source paths and relies on util.IsSensitivePath in kernel/util/path.go, whose denylist misses common home-directory credential files such as .git-credentials, .netrc, .pgpass, .kube/config, .docker/config.json, and .gnupg, allowing an authenticated administrator or API-token user to copy those files into the workspace and exfiltrate them through the file API. This issue is fixed in versions 3.7.1-alpha.2 and 3.7.1.

Affected

Product or packageVersionsReported by
siyuan-note siyuan< 3.7.1CVE List

Classification

CWE-693

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, POST /api/file/globalCopyFiles accepts attacker-supplied absolute source paths and relies on util.IsSensitivePath in kernel/util/path.go, whose denylist misses common home-directory credential files such as .git-credentials, .netrc, .pgpass, .kube/config, .docker/config.json, and .gnupg, allowing an authenticated administrator or API-token user to copy those files into the workspace and exfiltrate them through the file API. This issue is fixed in versions 3.7.1-alpha.2 and 3.7.1.

NVD (es)

SiYuan es un sistema de gestión de conocimiento personal de código abierto. Antes de la versión 3.7.1, POST /API/file/globalCopyFiles acepta rutas de origen absolutas proporcionadas por el atacante y se basa en util.IsSensitivePath en kernel/util/path.go, cuya lista de denegación omite archivos de credenciales comunes del directorio de inicio como .git-credentials, .netrc, .pgpass, .kube/config, .docker/config.json y .gnupg, lo que permite a un administrador autenticado o a un usuario con token de API copiar esos archivos en el espacio de trabajo y exfiltrarlos a través de la API de archivos. Este problema se ha solucionado en las versiones 3.7.1-alpha.2 y 3.7.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-59854 changed 2026-07-10CVE Terms of Use
NVDCVE-2026-59854 changed 2026-10-25Public domain