CVE-2026-62264
@sylphx/pdf-reader-mcp: HTTP transport accepts unauthenticated requests despite a configured MCP_API_KEY
Impact
PDF Reader MCP is a Model Context Protocol server for reading PDF documents. In versions 2.2.0 and later prior to 3.0.1, when `MCP_TRANSPORT=http` enables the opt-in HTTP server, `@sylphx/pdf-reader-mcp` reads `MCP_API_KEY` and logs that `X-API-Key` authentication is enabled but never validates the `X-API-Key` header on incoming requests. The `/mcp` endpoint consequently accepts unauthenticated clients. With the default bind address of `0.0.0.0`, any client able to reach the port can invoke every PDF tool and read any PDF the server process can open on the host, despite the misleading authentication-enabled startup log. URL-based sources additionally permit limited server-side request forgery; private and loopback destinations are blocked by default unless `--allow-private-ips` is set. The default `stdio` transport is unaffected. This issue is fixed in version 3.0.1.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @sylphx/pdf-reader-mcp | >= 2.2.0, < 3.0.1 | 3.0.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| SylphxAI | Pdf-Reader-Mcp | from 2.2.0, before 3.0.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-q344-5v34-gm84
- https://github.com/SylphxAI/pdf-reader-mcp/security/advisories/GHSA-q344-5v34-gm84
- https://github.com/SylphxAI/anymd/pull/332
- https://github.com/SylphxAI/anymd/commit/4c35f72862d729301e3912ab8c8317d2828cf4c2
- https://github.com/SylphxAI/anymd/releases/tag/v3.0.1
- https://github.com/SylphxAI/anymd/security/advisories/GHSA-q344-5v34-gm84
- https://github.com/SylphxAI/anymd/tree/v3.0.1