Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/siyuan-note/siyuan/kernel
  4. ›
  5. GHSA-vw86-c94w-v3x4

GHSA-vw86-c94w-v3x4: SiYuan: Publish Reader Path Traversal Delete via `removeUnusedAttributeView`

April 10, 2026

SiYuan’s publish/read-only boundary can be broken through /api/av/removeUnusedAttributeView.

A publish-service Reader context can call this endpoint because it is protected only by CheckAuth, and publish requests are forwarded upstream with a valid RoleReader JWT. The handler accepts attacker-controlled id input and passes it directly into a filesystem delete sink:

  • no admin check
  • no readonly check
  • no node-ID validation
  • no subpath enforcement
  • no verification that the target AV is actually unused

Because the sink builds the file path with:

filepath.Join(util.DataDir, "storage", "av", id+".json")

an attacker can supply ../ path traversal sequences and delete arbitrary .json files reachable from the workspace, rather than only data/storage/av/<id>.json.

This is a real write/destructive authorization bug, not a visible=false listing issue.

References

  • github.com/advisories/GHSA-vw86-c94w-v3x4
  • github.com/siyuan-note/siyuan
  • github.com/siyuan-note/siyuan/security/advisories/GHSA-vw86-c94w-v3x4

Code Behaviors & Features

Detect and mitigate GHSA-vw86-c94w-v3x4 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.6.40.0.0-20260407035653-2f416e5253f1

Fixed versions

  • 3.6.40.0.0-20260407035653-2f416e5253f1

Solution

Upgrade to version 3.6.40.0.0-20260407035653-2f416e5253f1 or above.

Impact 8.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H

Learn more about CVSS

Weakness

  • CWE-24: Path Traversal: '../filedir'

Source file

go/github.com/siyuan-note/siyuan/kernel/GHSA-vw86-c94w-v3x4.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:15 +0000.