CVE-2026-75519: anymd: read_pdf url source - SSRF and file:// local-file read bypass path confinement
anymd is a Model Context Protocol server for reading PDF documents. Prior to version 2.4.1, the readpdf 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.4.1
Event History
Frequently Asked Questions
What access does an attacker need to exploit this issue?
They need the ability to invoke the read_pdf tool and supply a URL as its source. Affected versions pass that URL directly to PDF.js without SSRF or scheme validation.
What systems or data could be exposed?
The issue can be used to request internal HTTP endpoints, including private hosts reached through redirects. It can also read arbitrary local PDF files through file:// URLs, bypassing the confinement applied to path-based sources.
What is the available remediation?
Upgrade anymd to version 2.4.1 or later. The issue is patched in version 2.4.1.