Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/siyuan-note/siyuan/kernel
  4. ›
  5. GHSA-7m5h-w69j-qggg

GHSA-7m5h-w69j-qggg: SiYuan: Publish Reader Can Arbitrarily Delete Attribute View Files via `/api/av/removeUnusedAttributeView`

April 10, 2026

An authenticated publish-service reader can invoke /api/av/removeUnusedAttributeView and cause persistent deletion of arbitrary attribute view (AV) definition files from the workspace.

The route is protected only by generic CheckAuth, which accepts publish RoleReader requests. The handler forwards a caller-controlled id directly into a model function that deletes data/storage/av/<id>.json without verifying either:

  • that the caller is allowed to perform write/destructive actions; or
  • that the target AV is actually unused.

This is a persistent integrity and availability issue reachable from the publish surface.

References

  • github.com/advisories/GHSA-7m5h-w69j-qggg
  • github.com/siyuan-note/siyuan
  • github.com/siyuan-note/siyuan/security/advisories/GHSA-7m5h-w69j-qggg

Code Behaviors & Features

Detect and mitigate GHSA-7m5h-w69j-qggg 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 0.0.0-20260407035653-2f416e5253f1

Fixed versions

  • 0.0.0-20260407035653-2f416e5253f1

Solution

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

Impact 8.1 HIGH

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

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization

Source file

go/github.com/siyuan-note/siyuan/kernel/GHSA-7m5h-w69j-qggg.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:07 +0000.