---
id: "CVE-2026-116167"
kind: "vulnerability"
aliases: ["CVE-2026-116167"]
title: "SiYuan: unauthenticated /check-auth page runs javascript links, reads workspace"
severity: "high"
cvss: 7.6
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["desktop", "package", "self-hosted", "siyuan"]
not_affected_if: ["already-on-3.8.7"]
published_at: "2026-10-25T14:16:55+00:00"
first_seen_at: "2026-10-25T14:41:23+00:00"
updated_at: "2026-10-25T14:42:34+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116167", "first_seen_at": "2026-10-25T14:41:23+00:00"}]
---

# SiYuan: unauthenticated /check-auth page runs javascript links, reads workspace

SiYuan versions 2.9.0 before 3.8.7 have a cross-site scripting flaw in the unauthenticated /check-auth page, which assigns the 'to' parameter to window.location.href without checking the scheme. A crafted link with a javascript: URI runs script in the victim's session after login, and that script can call kernel APIs to read or change workspace content and settings.

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

## How to check

- Check the installed SiYuan version; affected versions are 2.9.0 up to but not including `3.8.7`.
- Confirm whether the SiYuan instance is reachable by others, since the victim has to open the crafted link.

## Fix

- Upgrade SiYuan to `3.8.7` or later.

## Timeline

- 2026-10-25T14:41:23+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-116167

## From the sources

SiYuan from 2.9.0 before 3.8.7 contains a cross-site scripting vulnerability in the unauthenticated /check-auth page that assigns the to parameter to window.location.href without scheme validation. Attackers can send a crafted link with a javascript: URI that executes after victim login, invoking kernel APIs to read or modify workspace content and settings.

---

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