Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/siyuan-note/siyuan/kernel
  4. ›
  5. GHSA-hjh7-r5w8-5872

GHSA-hjh7-r5w8-5872: SiYuan: Path Traversal via Double URL Encoding in `/export/` Endpoint (Incomplete Fix Bypass for CVE-2026-30869)

April 22, 2026

The fix for CVE-2026-30869 in SiYuan v3.5.10 only added a denylist check (IsSensitivePath) but did not address the root cause — a redundant url.PathUnescape() call in serveExport(). An authenticated attacker can use double URL encoding (%252e%252e) to traverse directories and read arbitrary workspace files including the full SQLite database (siyuan.db), kernel log, and all user documents.

References

  • github.com/advisories/GHSA-2h2p-mvfx-868w
  • github.com/advisories/GHSA-hjh7-r5w8-5872
  • github.com/siyuan-note/siyuan
  • github.com/siyuan-note/siyuan/commit/bb481e1290c4a34255652ede85a546504505d2a7
  • github.com/siyuan-note/siyuan/releases/tag/v3.6.5
  • github.com/siyuan-note/siyuan/security/advisories/GHSA-hjh7-r5w8-5872

Code Behaviors & Features

Detect and mitigate GHSA-hjh7-r5w8-5872 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.5

Fixed versions

  • 3.6.5

Solution

Upgrade to version 3.6.5 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/siyuan-note/siyuan/kernel/GHSA-hjh7-r5w8-5872.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:00 +0000.