m13253/pdflens-mcp
An MCP server for reading PDFs, coded by human, designed for AI
844ed086732fpdflens-mcp0.3.3 in Cargo.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
Top risks in plain words
- HIGH4 production dependencies have known vulnerabilities (worst: high).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Update its vulnerable packages
Use
rmcp3.9.0 or later,tokio1.51.6 or later,url2.5.9 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 3 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
None of the tools reaches any of these in the code the scanner could trace.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (3: 3 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
get_pdf_num_pagestool Get the number of pages in a PDF.
Get the number of pages in a PDF.
read_pdf_as_texttool Read a PDF in plain text format. Each page is separated by “\x0c” (U+000C).
Read a PDF in plain text format. Each page is separated by “\x0c” (U+000C). Performance recommendation: Read in chunks of 100 pages. Do not use `read_file` or `readFile` on PDFs because PDFs are binary files.
read_pdf_page_as_imagetool Read one page of a PDF as an image. You may call this tool multiple times in parallel to read multiple pages.
Read one page of a PDF as an image. You may call this tool multiple times in parallel to read multiple pages. Performance recommendation: `read_pdf_as_text` is faster than `read_pdf_page_as_image`.
Text the model reads (3)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
get_pdf_num_pages tool
Get the number of pages in a PDF.
read_pdf_as_text tool
Read a PDF in plain text format. Each page is separated by “\\x0c” (U+000C). Performance recommendation: Read in chunks of 100 pages. Do not use `read_file` or `readFile` on PDFs because PDFs are binary files.
read_pdf_page_as_image tool
Read one page of a PDF as an image. You may call this tool multiple times in parallel to read multiple pages. Performance recommendation: `read_pdf_as_text` is faster than `read_pdf_page_as_image`.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 3 tool handlers traced
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 3 tool handlers traced
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 3 tool handlers traced
- Requests any addressNo tool sends a request to an address the caller supplies — 3 tool handlers traced
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 3 tool handlers traced
- Tools that start processesNot seen in the traced code of 3 capabilities; 3 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 3 capabilities; 3 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 3 capabilities; 3 more call code the scanner could not follow, where it may happen
Where the code is: 3 handlers in 1 file at commit 844ed086732f
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: Cargo.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies HIGH4 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionrmcp 1.2.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 3 capabilities; 3 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (4 in production)
rmcpcrates.io 1.2.0 HIGH 7 advisories 1.4.02.0.02.1.0+1 more
- HIGHGHSA-89vp-x53w-74fx CVE-2026-42559 GHSA-fvh2-gm75-j4j7 RUSTSEC-2026-0140 RUSTSEC-2026-0189rmcp Streamable HTTP server transport has a DNS rebinding vulnerability
- HIGHGHSA-9pj6-vhgr-3mwh CVE-2026-63128RMCP: Unauthenticated permanent session-table leak in rmcp Streamable HTTP server transport leads to remote denial-of-service
- HIGHGHSA-33f5-2c5q-wgwj CVE-2026-63127RMCP: Missing Resource Field Validation in OAuth Protected Resource Metadata Discovery
- MEDIUMRUSTSEC-2026-0462 GHSA-c9f9-cp8h-jcj5Unbounded response body buffering in Streamable HTTP clients
- MEDIUMRUSTSEC-2026-0189 CVE-2026-42559 GHSA-89vp-x53w-74fx GHSA-fvh2-gm75-j4j7 RUSTSEC-2026-0140DNS rebinding vulnerability in rmcp Streamable HTTP server transport
- MEDIUMGHSA-c9xm-49cp-xcr9rmcp OAuth client fetches server-controlled resource_metadata URLs
- MEDIUMGHSA-9g45-5xwm-f3wc CVE-2026-64684RMCP: Custom HTTP headers leak to cross-origin redirect targets
chronocrates.io 0.4.44 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0543chrono is unmaintained
tokiocrates.io 1.50.0 MEDIUM 1 advisory 1.51.61.53.3
- MEDIUMRUSTSEC-2026-0386`AsyncFd::new` and related constructors violate I/O safety
urlcrates.io 2.5.8 MEDIUM 1 advisory 2.5.9
- MEDIUMRUSTSEC-2026-0592 GHSA-hrj5-67jp-wqp9Stack overflow in `Url::origin()` on nested `blob:` URLs
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | rmcp 1.2.0 |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-09-15 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | Apache-2.0 |
| Created | 2025-11-03 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.