obsidian-sync-mcpに脆弱性、悪意あるWebサイトからVaultのノートを操作されるおそれ
Summary
obsidian-sync-mcpの0.5.7より前のバージョンで、MCP_AUTH_TOKENを設定せずに運用している環境が対象です。悪意あるWebサイトを開くだけで、DNSリバインディングなどを使ってVaultのノートを読み取り、作成、上書き、削除、移動されるおそれがあります。修正版の0.5.7で対応しているため、速やかに更新してください。MCP_AUTH_TOKENを設定している環境は影響を受けないとされています。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
obsidian-sync-mcpの0.5.7より前のバージョンで、MCP_AUTH_TOKENを設定せずに運用している環境が対象です。悪意あるWebサイトを開くだけで、DNSリバインディングなどを使ってVaultのノートを読み取り、作成、上書き、削除、移動されるおそれがあります。修正版の0.5.7で対応しているため、速やかに更新してください。MCP_AUTH_TOKENを設定している環境は影響を受けないとされています。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| es617obsidian-sync-mcp | — | Not listed |
| npmobsidian-sync-mcp |
< 0.5.7→ 0.5.7 |
0.5.7 |
Original description The description as published by the source.
When obsidian-sync-mcp runs without MCP_AUTH_TOKEN (the documented no-auth mode for local use), the HTTP MCP endpoint does not validate the Host or Origin header before dispatching MCP methods (CWE-350). The no-auth mode's "local network only" assumption therefore does not hold: a malicious web page the operator visits can use DNS rebinding to resolve an attacker-controlled hostname to 127.0.0.1 (or the operator's LAN/VPN/Docker-published address) and issue requests the server accepts as trusted local calls, reaching the full tool surface (read_note, write_note, edit_note, delete_note, move_note, list_notes, list_folders, list_tags, get_note_metadata).
Affected versions: <= 0.5.6
Patched version: 0.5.7
Impact
Any deployment running without MCP_AUTH_TOKEN — including the README "Filesystem mode (simplest)" quickstart and the self-hosted docker-compose setup (where MCP_AUTH_TOKEN defaults to empty)" — is exposed to any website the operator visits while the server is running. That page's JavaScript can silently read the entire vault and create/overwrite/delete/move notes, with no credentials and no prompt. In CouchDB/Self-hosted LiveSync mode, the same code path applies, so vault content in CouchDB is equally reachable. Deployments that set MCP_AUTH_TOKEN are not affected — a bearer token is not attached by browsers, so a forged request returns HTTP 401.
Remediation
Upgrade to 0.5.7, which validates both the Host and Origin headers in no-auth mode: any request whose H…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com