セキュリティ
MCPサーバーのAPIキー、設定しただけで効いていると思っていませんか。
PDFを読むMCPサーバー @sylphx/pdf-reader-mcp は、HTTPで動かすとそのキーを検証していませんでした。
起動時に「認証が有効」と出ていても、ポートに届く相手は認証なしで使えました。
既定のstdioでつないでいる場合は影響を受けません。
HTTPで公開しているなら今日のうちに3.0.1へ更新し、すぐできないなら待ち受けを127.0.0.1に絞ってください。
出典の原文(引用)
GHSA-q344-5v34-gm84 / CVE-2026-62264 / Severity: High (CVSS 7.5) / Published: 2026-10-29T16:34:35Z / Package: npm @sylphx/pdf-reader-mcp / Vulnerable Version Range: >= 2.2.0, < 3.0.1 / First Patched Version: 3.0.1 。本文該当箇所の原文: "### Impact When `@sylphx/pdf-reader-mcp` is run as an HTTP server (`MCP_TRANSPORT=http`), it reads the `MCP_API_KEY` environment variable and logs `API key authentication enabled (X-API-Key header)` at startup, but it never validated the `X-API-Key` header on incoming requests. The key was read into a variable and never enforced on the request path. As a result, the `/mcp` endpoint accepted **unauthenticated** requests. Combined with the default bind address of `0.0.0.0` (all interfaces), any client able to reach the port could invoke every PDF tool and read the contents of any PDF the server process could open anywhere on the host." / "This affects only the opt-in HTTP transport; the default `stdio` transport is unaffected." / "### Patches Fixed in `@sylphx/pdf-reader-mcp@3.0.1`. The fix enforces the `X-API-Key` header with a constant-time comparison (rejecting missing/mismatched keys with HTTP 401), changes the default bind host to `127.0.0.1` (loopback)" / "### Workarounds For deployments that cannot upgrade immediately: - Bind to loopback only: `MCP_HTTP_HOST=127.0.0.1`."— github.com
