Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach public publish service with publish auth disabled
-
ExploitSubmit DOM referencing known private non-encrypted asset path to /api/block/getDOMText
-
ExecutionHandler renders caller DOM and reads global path-keyed OCR cache without publish-access check
-
ImpactReceive cached OCR text of unpublished asset (confidentiality loss)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires ALL of: (1) a reachable public SiYuan publish service with publish authentication DISABLED (so PublishServiceTransport forwards anonymous requests using the public Reader token); (2) a specific, already-KNOWN filesystem path to a non-encrypted asset outside the published set (e.g. assets/<name>.png); and (3) OCR text already present in the global path-keyed cache for that asset. The attack targets the /api/block/getDOMText endpoint, which renders caller-supplied DOM and resolves image src via util.GetAssetText without a Reader publish-access decision. Key LIMITS on real-world exploitation, stated by the advisory: the proof did NOT demonstrate any way to discover arbitrary private asset paths, nor to warm/populate the OCR cache remotely, and encrypted assets are out of scope; impact is confined to confidentiality of already-cached OCR text (no integrity or availability impact). If publish authentication is enabled (the default protective posture), the anonymous path does not apply. |
| Impact | This is a confidentiality-only missing-authorization flaw (CWE-862) in SiYuan's publish service. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H) scores 8.7 and the GHSA's own CVSS 3.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) scores 7.5 - both treat it as network-reachable, anonymous, high-confidentiality. However, the raw score overstates real-world risk because the advisory's own reproduction narrows exploitation sharply: it works only when publish authentication is disabled (a non-default, operator-chosen exposure), and additionally requires a KNOWN non-encrypted asset path plus OCR text that is ALREADY cached for that path. The advisory explicitly states the proof did NOT establish a way to discover arbitrary private paths or to warm the cache remotely - these are preconditions the attacker cannot control, which is why I assess AC:H (3.1) / AT:P (4.0) rather than the AC:L in the input. No EPSS score and no KEV listing are provided, and there is no SSVC-style automatable/technical-impact breakdown; the only decision signal is vuln.today's 'this_week' priority, consistent with a real but non-emergency issue. A public PoC reference exists (a complete route-level Go test embedded in the GHSA advisory); it is not independently verified as a working drop-in exploit, and PoC availability is not evidence of active exploitation. Net: a genuine data-exposure bug worth patching on a normal cycle, not a mass-exploitation emergency, chiefly because it depends on a non-default publish configuration and attacker-uncontrollable cache/path preconditions. |
| Exploit ScenarioDerived | An organization runs a public SiYuan publish service with publish authentication disabled. An anonymous visitor who already knows the path of a private scanned asset (e.g. assets/private-ocr-probe.png) sends a crafted DOM referencing that image to POST /api/block/getDOMText and receives the asset's cached OCR text in the response, exposing readable contents of a document that was never published. A public PoC reference (route-level test) is included in the GHSA advisory, though it is not verified as turnkey exploit code and the attacker must independently know the path and rely on the OCR already being cached. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
Missing publish-authorization enforcement in SiYuan's /api/block/getDOMText endpoint lets anonymous visitors to a publish service with publish authentication disabled retrieve cached OCR text belonging to private, non-encrypted assets - provided the attacker already knows the exact asset path and OCR text for it has already been cached. Affected ranges are 3.6.0 before 3.6.2 and 3.7.3 before 3.8.10, with runtime verification on 3.8.8 and the same code path reviewed in 3.8.9; the issue is confidentiality-only (no integrity or availability impact), and the advisory's proof does not show how arbitrary private paths could be discovered or how the OCR cache could be warmed remotely. A public proof-of-concept reproduction, including a negative control, accompanies the GHSA advisory; there is no CISA KEV listing or confirmed active exploitation, and vendor fixes ship in v3.8.10 (with the 3.6.x branch corrected in 3.6.2).
RemediationAI
Upgrade to SiYuan v3.8.10 (or 3.6.2 for the 3.6.x branch), which contain upstream commit 0432ef213d112e5ace886963f8e57fdf348c76c5: the getDOMText handler now checks for RoleReader and routes Reader requests through model.GetDOMTextWithoutOCRAssets, and the renderer/sql layer gains NodeStaticContentWithoutOCRAssets so util.GetAssetText is never called for Reader-supplied DOM. Upgrade guidance is in the vendor advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-vmvr-gf8m-x483 and the fix commit is at https://github.com/siyuan-note/siyuan/commit/0432ef213d112e5ace886963f8e57fdf348c76c5. Where upgrading is not immediately possible, the single precondition an operator controls is publish authentication: keeping publish authentication enabled prevents anonymous requests from being forwarded under the public Reader token, which is the path the advisory's proof exercises - the trade-off is that visitors must authenticate before reading published content. Because exploitation also requires a known private asset path and pre-cached OCR text, exposure is further reduced by not exposing the publish service to untrusted networks until the patched build is deployed; the advisory did not establish a way to discover arbitrary asset paths or to populate the OCR cache remotely, so no additional network-level control is documented as sufficient on its own.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is CWE-862 (Missing Authorization) in SiYuan's publish/Reader boundary. When publish authentication is disabled, PublishServiceTransport forwards anonymous publish requests to the kernel API using the public account's Reader token, so a remote visitor reaches server-side endpoints as a low-privilege Reader. The getDOMText API handler accepts a caller-supplied dom field and passes it to model.GetDOMText, which parses the DOM with Lute and renders its blocks; image rendering reaches sql.NodeStaticContent, which resolves the image src through util.GetAssetText. That OCR lookup is keyed only by asset path and receives no Reader role, document identity, or publish-access decision, so the handler never applies the asset-level publish filtering that PR #16041 added for other Reader asset-content paths. The upstream fix (commit 0432ef213d112e5ace886963f8e57fdf348c76c5) adds a role check in the getDOMText handler: when model.GetGinContextRole(c) is RoleReader the request is routed to a new model.GetDOMTextWithoutOCRAssets, and the rendering chain gains an includeOCRAssets flag so sql.NodeStaticContentWithoutOCRAssets skips the util.GetAssetText lookup while editors and administrators retain full OCR rendering. Regression coverage was added in kernel/api/block_dom_text_test.go asserting that Reader responses omit the OCR canary while editor/administrator responses include it. Note that the published advisory's own metrics (CVSS v3.1 7.5) and our assessed vector rate this AC:H because of the stacked preconditions - publish authentication disabled, a known private asset path, and a pre-populated OCR cache entry - rather than the higher network-only severity implied by the raw score supplied with the CVE feed.
Know when Siyuan gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable and anonymous when publish auth is disabled (AV:N, PR:N); AC:H because exploitation needs an attacker-uncontrollable known asset path plus pre-existing cached OCR; full OCR disclosure gives C:H, no I/A impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
SiYuan 3.6.0 before 3.6.2 and 3.7.3 before 3.8.10 contains a missing authorization vulnerability in the /api/block/getDOMText endpoint, which renders caller-supplied DOM without checking publish access for referenced image paths. When publish authentication is disabled, anonymous visitors can submit DOM referencing a known unpublished, non-encrypted asset path to retrieve its already-cached OCR text.
Technical POC Analysis
CWE-862 (Missing Authorization).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SiYuan, a knowledge management platform, has a high-severity vulnerability (CVE-2026-134246) that could allow anonymous users to access cached OCR text from private assets under specific conditions. This primarily affects organizations running SiYuan as a publish service with authentication disabled. Leadership should prioritize patching because the vulnerability is publicly known and could lead to unauthorized disclosure of sensitive information contained in private documents.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role
Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a
SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements
Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,
SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr
A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex
Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package
Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro
EUVD-2026-132194
GHSA-qmx4-2295-q724
NVD
CVE.org
EPSS
Exploit-DB