All vulnerabilities

npm

CVE-2026-62264

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

Severity
High 7.5
Published
29 Oct 2026
Last changed
29 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
3.0.1
Exploit chance
0.4% in the next 30 daysHigher than 37% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Information exposure (CWE-200)Improper authentication (CWE-287)Missing authentication (CWE-306)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Also known as
GHSA-q344-5v34-gm84
Sources
OSV.dev and GitHub

Description

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.

From the GitHub Advisory Database, CC BY 4.0.

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.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
@sylphx/pdf-reader-mcpnpm · osv:npm:@sylphx/pdf-reader-mcp
  • From 2.2.0 before 3.0.1

About @sylphx/pdf-reader-mcp

Weekly downloads (npm)
8,930npm, 24 Nov 2026

This is the only vulnerability in @sylphx/pdf-reader-mcp in our list.

References