8.3high
SiYuan before v3.7.3 Path Traversal via unvalidated avID
- Severity
- 8.3high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-7hm9-v7vf-7g4wGO-2026-6373
Description
SiYuan versions before v3.7.3 fail to validate the avID parameter on all code branches in attribute-view read endpoints, allowing attackers to construct traversal paths that escape the storage directory. Authenticated users with RoleReader permissions or anonymous clients when publish authentication is disabled can read JSON files outside the attribute-view directory to disclose cross-scope database content.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| siyuan-note siyuan | before 3.7.3 Not affected: 3.7.3 | CVE List |
| github.com/siyuan-note/siyuan/kernel (Go) | before 0.0.0-20260720151813-0f5a0e7c67b0 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| VulnCheck | 8.3high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N |
| VulnCheck | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
SiYuan versions before v3.7.3 fail to validate the avID parameter on all code branches in attribute-view read endpoints, allowing attackers to construct traversal paths that escape the storage directory. Authenticated users with RoleReader permissions or anonymous clients when publish authentication is disabled can read JSON files outside the attribute-view directory to disclose cross-scope database content.
GitHub Advisory Database
CVE: This vulnerability corresponds to CVE-2026-69086.
Summary
Four attribute-view read endpoints build a filesystem path from a caller-controlled id/avID and read it without confining the result to the attribute-view storage directory (DataDir/storage/av/). On the load (file-exists) code path there is no boundary check, so an avID containing ../ segments escapes storage/av/ and causes the kernel to read a .json file elsewhere in the workspace.
The endpoints require only CheckAuth, which the publish service's RoleReader token satisfies; when Publish.Auth.Enable is false the publish proxy uses the anonymous account, making the surface reachable with no credentials.
Details
Affected endpoints (all gated by CheckAuth only, no CheckAdminRole):
POST /api/av/renderAttributeView→arg["id"]POST /api/av/getAttributeViewKeysByID→arg["avID"]POST /api/av/getAttributeViewKeys→arg["id"]POST /api/av/getCurrentAttrViewImages→arg["id"]
In model.RenderAttributeView (model/attribute_view_render.go), the only identifier guard ast.IsNodeIDPattern(avID) sits inside the if !filelock.IsExist(existPath) (create) branch:
existPath = GetAttributeViewDataPath(avID) // path built from avID, no check
if !filelock.IsExist(existPath) { // NOT-EXIST / CREATE branch
if !createIfNotExist {
return // NotFound
}
if !ast.IsNodeIDPattern(avID) { // <-- ONLY id guard, create branch only
return ErrInvalidID
}
// ... create ...
}
attrView, err = av.ParseAttributeView(avID) // LOAD runs unconditionally
When the traversal avID resolves to a file that already exists, the !filelock.IsExist(...) condition is false, the entire block (including the line with ast.IsNodeIDPattern) is skipped, and control falls straight through to av.ParseAttributeView(avID). That function rebuilds the path via filepath.Join(DataDir, "storage", "av", avID+".json") and calls filelock.ReadFile with no filepath.Rel / IsSubPath / .. rejection:
// av.ParseAttributeView -> attributeViewDataPathByBox / GetAttributeViewDataPath
avJSONPath = filepath.Join(DataDir, "storage", "av", avID+".json") // no boundary check
// -> parseAttributeViewByPathInBox(avJSONPath, boxID)
data, _ = filelock.ReadFile(avJSONPath) // SINK
filepath.Join cleans the path but does not reject .. segments, so it provides no containment. The three getAttributeView* endpoints call ParseAttributeView with no create branch at all, so they never even reach the ast.IsNodeIDPattern check same defect, same auth tier.
The root cause is that identifier validation is placed on a single code branch rather than confining the load to the AV base directory, so the load path reads a caller-controlled location.
PoC
Precondition: publish mode enabled (default port 6808); reachable by a RoleReader publish token, or anonymously when Publish.Auth.Enable is false.
A request to /api/av/renderAttributeView with an id composed of ../ path segments that resolves to an existing .json file outside DataDir/storage/av/ causes that file to be read and parsed instead of being rejected, because the identifier validation is only reached on the not-exist/create branch.
I have withheld the exact encoded id value from this draft to avoid publishing a live traversal against internet-exposed publish instances. I'm happy to provide the precise value and a screenshot privately in this thread on request.
Impact
An authenticated publish RoleReader or an anonymous client when publish auth is disabled can cause the kernel to read .json files outside the attribute-view directory. Because the loaded file is unmarshalled into the attribute-view structure, the reliable primitives are:
- Disclosure of attribute-view (database) content from other scopes/notebooks the reader is not authorized to see.
- A
.json-path existence oracle for arbitrary workspace locations.
Files not conforming to the AV schema are read but reflect little content, and the .json suffix is force-appended, so this is not a general arbitrary-file read. No admin role, CSRF token, or write permission is required.
Suggested fix
Validate avID with ast.IsNodeIDPattern before path construction on all branches (move it ahead of FindAttributeViewPath / GetAttributeViewDataPath), or preferably, so every caller inherits it confine at the sink: in attributeViewDataPathByBox / GetAttributeViewDataPath, compute the joined path and reject it unless filepath.Rel(avBaseDir, cleaned) stays within avBaseDir (no leading ..). Sink-side confinement also covers the three getAttributeView* endpoints that never reach the create-branch guard.
Go Vulnerability Database
SiYuan: Path Traversal via unvalidated avID in RenderAttributeView/AV read endpoints : reader-reachable cross-scope attribute-view disclosure in github.com/siyuan-note/siyuan/kernel
NVD (es)
Las versiones de SiYuan anteriores a la v3.7.3 no validan el parámetro avID en todas las ramas de código en los puntos finales de lectura de la vista de atributos, lo que permite a los atacantes construir rutas de recorrido que escapan del directorio de almacenamiento. Los usuarios autenticados con permisos de RoleReader o los clientes anónimos cuando la autenticación de publicación está deshabilitada pueden leer archivos JSON fuera del directorio de la vista de atributos para divulgar contenido de la base de datos de ámbito cruzado.
References
| https://github.com/siyuan-note/siyuan/security/advisories/GHSA-7hm9-v7vf-7g4w | advisory, vendor-advisory, web | |
| https://www.vulncheck.com/advisories/siyuan-before-path-traversal-via-unvalidated-avid | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-69086 | advisory | |
| https://github.com/siyuan-note/siyuan | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-69086 changed 2026-08-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7hm9-v7vf-7g4w changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6373 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-69086 changed 2026-10-23 | Public domain |