Skip to main content

SiYuan Note CVE-2026-134249

| EUVDEUVD-2026-132197 HIGH
Improper Authentication (CWE-287)
2026-11-21 VulnCheck GHSA-c32w-2pcj-785f
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach public SiYuan reverse proxy
  2. Exploit
    Send raw GET /history/<path> with Host: localhost:6806 and X-Forwarded-For: 127.0.0.1
  3. Execution
    Kernel derives local client IP and grants Administrator via no-password branch
  4. Impact
    Read 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

SiYuan 0 <3.8.10

Affected Packages

euvd siyuan fix: 3.8.10

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 50% exploitable
Prevalence
Low
self-hosted personal knowledge-base app, niche non-enterprise deployment footprint
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Siyuan

View all
CVE-2026-69083 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role

CVE-2026-54067 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a

CVE-2026-69084 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements

CVE-2026-54158 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,

CVE-2026-69085 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr

CVE-2024-53507 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t

CVE-2024-53506 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R

CVE-2024-53505 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti

CVE-2024-53504 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c

CVE-2026-23852 CRITICAL POC
9.6 Jan 19

SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex

CVE-2026-56397 CRITICAL POC
9.4 Jun 21

Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package

CVE-2026-54069 CRITICAL POC
9.2 Jun 24

Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy