Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach public SiYuan reverse proxy
-
ExploitSend raw GET /history/<path> with Host: localhost:6806 and X-Forwarded-For: 127.0.0.1
-
ExecutionKernel derives local client IP and grants Administrator via no-password branch
-
ImpactRead private note-history plaintext files
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a specific deployment: SiYuan reachable through a reverse proxy whose loopback address the kernel trusts (Gin trusts 127.0.0.1/::1), where the proxy preserves the caller-supplied Host (the README NGINX example uses proxy_set_header Host $http_host;) AND passes the caller-supplied X-Forwarded-For through unchanged, AND no lock-screen (access-auth) password is set. Under those conditions an unauthenticated remote caller sets Host: localhost:6806 and X-Forwarded-For: 127.0.0.1 so IsLocalRequest treats the request as local and CheckAuth grants RoleAdministrator on the /history/*path route. Limiting factors that fully block the tested request: a proxy that rewrites X-Forwarded-For to the socket peer address ($remote_addr), a proxy that rejects/overwrites the spoofed Host, or an enabled lock-screen password. Directly exposing the kernel without a loopback-trusted proxy, or using the fixed v3.8.10 NGINX guidance, also prevents it. |
| Impact | Signals are moderate and mostly consistent. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, VC:H, score 8.7) and the advisory's CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, 7.5) agree on a network-reachable, unauthenticated confidentiality-only issue with no integrity or availability impact. The vuln.today decision label is 'this_week' (not act_now or emergency), which fits a serious-but-conditional disclosure flaw rather than mass-exploited RCE. No EPSS score and no CISA KEV entry are present in the input, so there is no evidence of active exploitation - treat exploitation status as 'no public exploit identified' in the KEV sense, while noting a source-matched PoC harness is published. The headline CVSS arguably understates the real-world preconditions: exploitation depends on a specific deployment shape (publicly reachable loopback-trusted reverse proxy that preserves Host and passes caller-supplied X-Forwarded-For through unchanged, AND no lock-screen password). Those conditions are not reflected as attacker-independent complexity in the AC:L scoring, so the paper severity is higher than the conditional, deployment-dependent exploitability. This is a genuine priority for the subset of self-hosted SiYuan installs exposed behind the documented default NGINX example, but is not a broad internet-wide emergency; reported by VulnCheck and fixed in v3.8.10. |
| Exploit ScenarioDerived | A SiYuan instance is published through the documented NGINX reverse proxy (which preserves the client Host and forwards request headers unchanged) with no lock-screen password set. An unauthenticated remote attacker sends a raw GET to /history/<known-history-path> with Host: localhost:6806 and X-Forwarded-For: 127.0.0.1; the kernel trusts the loopback proxy's forwarded address, treats the caller as a local Administrator, and returns private note-history contents. A source-matched Go harness demonstrates the auth bypass and history disclosure in isolation, but the full NGINX-to-kernel network path was not executed end to end. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
Authentication bypass in SiYuan Note before 3.8.10 allows an unauthenticated remote caller to be granted the Administrator role and read private note-history contents when the instance is published through a reverse proxy whose loopback peer address the kernel trusts. The caller simply sets Host: localhost:6806 and X-Forwarded-For: 127.0.0.1 on a raw request to /history/*path, which makes the no-password authentication branch treat the request as local; the chain only works where the proxy preserves the caller-supplied Host and forwards X-Forwarded-For unchanged and no lock-screen password is configured. Exploitation is precondition-heavy rather than universal: a proxy that rewrites X-Forwarded-For to $remote_addr, one that rejects or overwrites the spoofed Host, an enabled lock-screen password, or the corrected v3.8.10 NGINX guidance all block the request. A source-matched proof-of-concept harness is published in the advisory; it was validated against copied kernel code in a Gin test harness and was not exercised against a packaged release or a live proxy, and no CISA KEV entry or other confirmed active exploitation was reported.
RemediationAI
Upgrade SiYuan Note to v3.8.10 or later; the vendor's fix commit f951019168faf035b36c98f8e672719d511881ac ships updated guidance, and the authoritative advisory is at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-gmcm-mggw-8759. Because the release addresses the issue through proxy configuration guidance, operators must also apply it: in every proxy location set proxy_set_header X-Forwarded-For $remote_addr; so the kernel receives the address observed on the proxy socket, and do not pass a caller-supplied X-Forwarded-For through unchanged. Note the trade-offs: rewriting the header discards any original client-IP chain your logging or geo logic relies on, and if you need multi-hop client-IP propagation you must use a proxy mechanism that overwrites the header at the edge (for example real_ip style modules) rather than trusting inbound values. Also configure the proxy to reject or overwrite caller-supplied Host values, since the documented example preserves Host with proxy_set_header Host $http_host; and unmatched Host values route to the default server. Enabling the lock-screen/access-auth password blocks the demonstrated request and is a viable interim control, with the side effect that all users must authenticate before accessing the workspace. Finally, do not expose the kernel port 6806 directly to untrusted networks, and add regression coverage that sends a loopback X-Forwarded-For through a loopback-trusted proxy and verifies the request stays unauthorized while normal public-Host and lock-screen-password controls continue to return 401.
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 an improper authentication issue (CWE-287) rooted in how SiYuan's Gin-based kernel derives the client address. kernel/server/serve.go configures Gin to trust 127.0.0.1 and ::1 as reverse proxies, so when the immediate TCP peer is that loopback proxy, Gin populates ClientIP() from the X-Forwarded-For header rather than the socket address. In kernel/model/session.go, CheckAuth reaches its no-password branch and grants RoleAdministrator when IsLocalRequest judges the request local; with no access-auth (lock-screen) password set, an empty Origin and X-Forwarded-Host are accepted as long as the derived host is local. Because the /history/*path route is registered behind both CheckAuth and CheckAdminRole, that local-admin determination is enough to serve permitted plaintext history files. The trust chain depends on proxy behaviour outside SiYuan: the README's NGINX example uses proxy_set_header Host $http_host; to preserve the incoming Host, and NGINX's proxy module forwards original request headers by default unless told otherwise, so a caller-supplied X-Forwarded-For is not replaced. The published tested revision is bfe36100477b7bbd66db1a8b8cff5547b2ccdb59, and the advisory explicitly notes that external routing through a live NGINX deployment was not executed as part of the test. The upstream commit f951019168faf035b36c98f8e672719d511881ac changes documentation and built-in guide text across all README translations to require proxy_set_header X-Forwarded-For $remote_addr; in both proxy locations; the code path itself is guarded by deployment configuration and the lock-screen password.
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
Unauthenticated network request abuses the auth-bypass (PR:N) to read private history (C:H); no modification or disruption shown (I:N/A:N); kept AC:L consistent with the advisory despite deployment preconditions.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
SiYuan before 3.8.10 contains an authentication bypass vulnerability that allows unauthenticated attackers to gain Administrator role by spoofing X-Forwarded-For through a loopback-trusted reverse proxy. Attackers can send requests with Host set to localhost and X-Forwarded-For set to 127.0.0.1 to read private note-history contents via the /history/*path route when no lock-screen password is set.
Technical POC Analysis
CWE-287 (Improper Authentication) in SiYuan's own Go/Gin kernel, not in a third-party dependency.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SiYuan Note versions prior to 3.8.10 contain an authentication bypass that could allow an unauthenticated attacker to gain administrator access and read private note histories, but only under specific deployment configurations. Leadership should care because successful exploitation could expose sensitive organizational knowledge and allow unauthorized administrative actions, though the risk is currently limited to publicly exposed instances behind certain reverse proxies without a lock-screen password.
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-132197
GHSA-c32w-2pcj-785f
NVD
CVE.org
EPSS
Exploit-DB