High
SiYuan before 3.8.12 OAuth mix-up flaw can leak MCP tokens
The MCP OAuth callback accepts authorization responses missing the iss parameter, so a malicious MCP operator can cross-wire server metadata. The honest issuer's code and PKCE verifier get sent to an attacker-controlled token endpoint, potentially yielding tokens for user-approved scopes.
3.8.12Am I affected?
You are affected if the installed version is older than 3.8.12. Check the version you have and update to 3.8.12 or later. The fixed version is verified against a vendor or advisory source.
Affected software and versions
| Package | Ecosystem | Affected | Fixed in |
|---|---|---|---|
siyuan | other | <3.8.12 | 3.8.12 |
A fixed version is shown only when it is verified against a vendor or advisory source.
Who should check
Anyone running the SiYuan app on macOS, Windows or Linux with a version older than 3.8.12.
Expected outcome after remediation
Report which SiYuan version is installed and whether it is below 3.8.12, then either confirm the update to 3.8.12 or explain why it cannot be done.
Get the fix
FixLane has a reviewed fix procedure for this incident: a read-only check first, then the fix. Ask the Telegram bot, or connect an AI agent to the FixLane MCP server and call get_fix_prompt with incident id 5907 and your operating system.
Related siyuan incidents
- SiYuan before 3.8.12: XSS in agent session titles runs code on hoverHigh3.8.12
- SiYuan XSS in WebDAV sync error messages (fixed in 3.8.10)High3.8.10
- SiYuan AI chat panel XSS lets crafted model replies run OS commandsHigh3.8.11
- SiYuan table caption stored XSS allows code executionCritical3.8.10
- SiYuan stored XSS in Attribute View panel runs OS commandsCritical3.8.10
- SiYuan stored XSS in checkbox column names runs OS commandsCritical3.8.10