News · SiYuan · 2 min read
Event date: · Published:
SiYuan patches an MCP OAuth callback flaw that could let attackers steal tokens
SiYuan fixed a high-severity vulnerability in its MCP OAuth callback that could let a malicious MCP service steal authorization codes and tokens users had already approved.
SiYuan, a self-hosted note-taking application with built-in MCP client support, has fixed a high-severity vulnerability in its MCP OAuth callback, according to an advisory from GitHub Security Advisories published on December 6, 2026. The flaw let a malicious MCP service redirect authorization codes and PKCE verifiers to an attacker-controlled token endpoint.
What changed
- CVE-2026-145600, rated 8.8 (High) on the CVSS scale and classified as CWE-940 (Improper Verification of Source of a Communication Channel)
- The flaw affects SiYuan versions before 3.8.12
- It is fixed in SiYuan 3.8.12
- SiYuan's MCP OAuth callback route accepted authorization responses missing the iss (issuer) parameter, even though SiYuan's own metadata declares support for issuer validation
- A malicious MCP service could manipulate authorization-server metadata to cross-wire the honest issuer's authorization code and PKCE verifier to an attacker-controlled token endpoint
- That cross-wiring could let an attacker obtain tokens for scopes the user had already approved
What it means for builders
The vulnerability sits in the OAuth plumbing that connects SiYuan to external MCP tool servers, so a malicious or compromised MCP server could silently steal a user's already-approved access tokens. For anyone wiring MCP servers into a productivity tool, the case is a reminder that an authorization callback must verify which issuer actually sent the response, not just trust whatever metadata a connected service presents.
Who's affected and what to do
The issue affects SiYuan versions before 3.8.12 and is fixed in SiYuan 3.8.12. Anyone running an MCP-connected SiYuan instance on an older version should update to close the token-theft path.
Sources
- SiYuan OAuth mix-up in MCP callback (CVE-2026-145600) (GitHub Security Advisories, December 6, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.