NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Other MCP servers and tools

CVE-2026-62264: @sylphx/pdf-reader-mcp: HTTP transport accepts unauthenticated requests despite a configured MCP_API_KEY

highCVSS 3.1 7.5GHSA-q344-5v34-gm84

@sylphx/pdf-reader-mcp from 2.2.0 up to 3.0.1 does not check the X-API-Key header when run as an HTTP server (MCP_TRANSPORT=http). Anyone who can reach the port can call every PDF tool and read PDFs the process can open, even when MCP_API_KEY is set. Upgrade to 3.0.1. The default stdio transport is not affected.

Published Oct 29, 2026 · Analysis Oct 30, 2026

What an attacker can do

In HTTP mode the server reads MCP_API_KEY and logs "API key authentication enabled (X-API-Key header)" at startup. It never compares the header against incoming requests. The /mcp endpoint therefore accepts unauthenticated calls.

The default bind address was 0.0.0.0, so the endpoint listened on every network interface. An attacker with network access needs no credentials and no user interaction. They can invoke the PDF tools and read the contents of any PDF the server process can open anywhere on the host. URL-based sources also allow limited SSRF. Private and loopback addresses are blocked unless the server runs with --allow-private-ips.

The startup log makes this worse. An operator who set the key believes the server is protected, so the exposure goes unnoticed. For teams that give an AI agent this server, the risk is that contracts, invoices or other documents on the host become readable by anyone on the network.

Who is affected

Versions >= 2.2.0 and < 3.0.1 of the npm package are affected, but only when started with MCP_TRANSPORT=http. The default stdio transport is not affected. Check the installed version:

npm ls @sylphx/pdf-reader-mcp

Also check how the server is launched. Look for MCP_TRANSPORT=http in service files, containers and MCP client configs, and note whether MCP_HTTP_HOST is set. If it is not, the server listened on 0.0.0.0.

@sylphx/pdf-reader-mcp

Ecosystem
npm
Affected
>= 2.2.0, < 3.0.1
Fixed in
3.0.1
Check
npm ls @sylphx/pdf-reader-mcp

How to fix it

Upgrade to 3.0.1:

npm install @sylphx/[email protected]

The fix enforces X-API-Key with a constant-time comparison and returns HTTP 401 for a missing or wrong key. It also changes the default bind host to 127.0.0.1 and warns at startup when a non-loopback host is used without a key.

If you cannot upgrade yet, the advisory gives these workarounds:

  • Bind to loopback with MCP_HTTP_HOST=127.0.0.1.
  • Put a reverse proxy that enforces authentication in front of the server.
  • Use the stdio transport instead of HTTP.
  • Limit filesystem reach with --allow-dir or MCP_PDF_ALLOWED_DIRS.

Rotate nothing on the key alone: on affected versions the key was never checked.

How to tell if you were hit

The advisory lists no indicators. Start by finding instances running MCP_TRANSPORT=http on a version below 3.0.1, and check whether their port is reachable from untrusted networks. Review reverse proxy or access logs for requests to /mcp that lack an X-API-Key header or come from unknown hosts. Review the PDF paths and URLs those requests asked for. Because the server never rejected requests, successful responses to keyless calls on an affected version are the sign of exposure. If an AI agent uses this server, Beam records MCP tool calls the agent makes, which shows what that agent read through it. It does not see direct network requests.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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. URL-based sources also enable limited SSRF (private/loopback addresses are blocked by default unless --allow-private-ips is set).

The misleading startup log made the exposure silent: an operator who set MCP_API_KEY reasonably believed the server was protected when it was not.

This affects only the opt-in HTTP transport; the default stdio transport is unaffected.

Patches

Fixed in @sylphx/[email protected]. 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), and emits a startup warning when binding a non-loopback host without an API key.

Workarounds

For deployments that cannot upgrade immediately:

  • Bind to loopback only: MCP_HTTP_HOST=127.0.0.1.
  • Place a reverse proxy in front that enforces authentication.
  • Use the default stdio transport instead of HTTP.
  • Restrict filesystem reach with --allow-dir / MCP_PDF_ALLOWED_DIRS.

Reported privately by novice-22 via responsible disclosure.

Credited to novice-22.

Questions

Does setting MCP_API_KEY protect @sylphx/pdf-reader-mcp before 3.0.1?

No. The server read the variable and logged that authentication was enabled, but it never validated the X-API-Key header on requests. Upgrade to 3.0.1 to get real enforcement.

Is the stdio transport affected?

No. Only the opt-in HTTP transport, enabled with MCP_TRANSPORT=http, is affected. The default stdio transport is not.

Is CVE-2026-62264 exploited in the wild?

The sources do not report exploitation, and it is not in CISA's KEV catalog. The flaw needs only network access to the port, so exposed HTTP instances are easy targets.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Other MCP servers and tools vulnerabilities

All Other MCP servers and tools entries