---
id: "GHSA-3cm4-ccvw-6xr6"
kind: "vulnerability"
aliases: ["GHSA-3cm4-ccvw-6xr6", "GO-2026-6662"]
title: "SiYuan: /history/*path and /repo/diff/*path potentially exposing historical snapshots of data/.siyuan/publishAccess.json and data/templates/* in github.com/siyuan-note/siyuan/kernel"
severity: "unknown"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "github.com/siyuan-note/siyuan/kernel", "fixed": ["0.0.0-20260816034002-035bf9a8c311"], "affected": "< 0.0.0-20260816034002-035bf9a8c311", "ecosystem": "go"}]
ecosystems: ["go"]
tags: ["go", "package", "self-hosted", "siyuan"]
not_affected_if: ["default-config"]
published_at: "2026-10-07T14:10:39+00:00"
first_seen_at: "2026-10-23T19:13:08+00:00"
updated_at: "2026-10-23T20:20:10+00:00"
sources: [{"source": "govuln", "url": "https://pkg.go.dev/vuln/GO-2026-6662", "first_seen_at": "2026-10-23T19:13:08+00:00"}]
---

# SiYuan: /history/*path and /repo/diff/*path potentially exposing historical snapshots of data/.siyuan/publishAccess.json and data/templates/* in github.com/siyuan-note/siyuan/kernel

SiYuan's kernel exposes history and repo diff endpoints that can return historical snapshots of data/.siyuan/publishAccess.json and data/templates/* files. An attacker who can reach those endpoints can read past versions of publish access settings and templates.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- go:github.com/siyuan-note/siyuan/kernel affected < 0.0.0-20260816034002-035bf9a8c311 fixed 0.0.0-20260816034002-035bf9a8c311

## Fix

Update github.com/siyuan-note/siyuan/kernel to version 0.0.0-20260816034002-035bf9a8c311 or later.

## Timeline

- 2026-10-23T19:13:08+00:00 govuln https://pkg.go.dev/vuln/GO-2026-6662

## From the sources

SiYuan: /history/*path and /repo/diff/*path potentially exposing historical snapshots of data/.siyuan/publishAccess.json and data/templates/* in github.com/siyuan-note/siyuan/kernel

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
