mediumCVSS 4.3Vulnerability

CVE-2026-45148

### Summary The advisory `GHSA-c77m-r996-jr3q` patched `getBookmark` so that, when invoked by a publish-mode `RoleReader`, results are filtered through `FilterBlocksByPublishAccess` to remove entries from password-protected / publish-ignored notebooks. Four sibling search handlers in the same file did not receive the equivalent treatment and continue to expose metadata across the publish-access boundary. ### Details **Affected files / lines (v3.6.5):** `kernel/api/router.go:181-190` — all four endpoints registered with `CheckAuth` only, which the publish-service `RoleReader` JWT passes: ```go ginServer.Handle("POST", "/api/search/searchTag", model.CheckAuth, searchTag) ginServer.Handle("POST", "/api/search/searchTemplate", model.CheckAuth, searchTemplate) ginServer.Handle("POST", "/api/search/searchWidget", model.CheckAuth, searchWidget) ginServer.Handle("POST", "/api/search/searchAsset", model.CheckAuth, searchAsset) ``` `kernel/api/search.go` — none of the four handlers branches on `model.IsReadOnlyRoleContext(c)` to filter the response, while their *peers* in the same file do. Compare: ```go // :29-65 listInvalidBlockRefs — DOES filter: if model.IsReadOnlyRoleContext(c) { publishAccess := model.GetPublishAccess() blocks = model.FilterBlocksByPublishAccess(c, publishAccess, blocks) } // :67-93 getAssetContent — DOES filter (FilterAssetContentByPublishAccess) // :95-115 fullTextSearchAssetContent — DOES filter // :250-285 getEmbedBlock — DOES filter (FilterEmbedBlocksByPublishAccess) // :156-176 searchAsset — does NOT filter ret.Data = model.SearchAssetsByName(k, exts) // :178-196 searchTag — does NOT filter tags := model.SearchTags(k) ret.Data = map[string]any{"tags": tags, "k": k} // :198-213 searchWidget — does NOT filter widgets := model.SearchWidget(keyword) // :233-248 searchTemplate — does NOT filter templates := model.SearchTemplate(keyword) ``` `model.SearchAssetsByName`, `model.SearchTags`, `model.SearchWidget`, `model.Sea

Properties

severity
medium
summary
SiYuan has broken access control in `/api/search/{searchAsset,searchTag,searchWidget,searchTemplate}` publish-mode
epss_score
0.00221
cvss_score
4.3
ghsa_published
2026-05-13T15:33:03Z
source_url
https://github.com/advisories/GHSA-fmh9-gpqh-g53g
ghsa_updated
2026-05-15T23:45:23Z
ghsa_id
GHSA-fmh9-gpqh-g53g
cve_id
CVE-2026-45148
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
is_ghsa_only
false
epss_percentile
0.12758

Related Entities (5)

ENRICHED_BY (1)

[Source]FIRST EPSS

VULNERABLE_TO (1)

[Software]go/github.com/siyuan-note/siyuan/kernel

AFFECTS (1)

[Software]go/github.com/siyuan-note/siyuan/kernel

HAS_WEAKNESS (1)

[Weakness]Incorrect Authorization

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-45148 (CVSS 4.3) — Ninja Signal Threat Intelligence | Ninja Signal