elleryfamilia/terminal-mcp
A terminal emulator exposed via MCP for AI assistants
8c029cdde241@ellery/terminal-mcp0.5.1 in package.jsonPaths 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
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 18 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 2 places in the code register tools whose names are computed at run time; how many tools that makes cannot be read from the code
Top risks in plain words
- CRITICAL13 production dependencies have known vulnerabilities (worst: critical).
- HIGHTool with a name computed at run time runs programs by design: an agent steered by prompt injection can use it that way.
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.
- Run it in a container or a virtual machine
src/tools/index.ts:37can start programs or run code they are given. Keep it away from your home folder, keys and other projects. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
src/tools/index.ts:37, switch them off. - Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
@hono/node-server1.19.18 or later,@modelcontextprotocol/sdk1.32.0 or later,ajv8.18.0 or later,body-parser2.4.0 or later and 9 more. - 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 7 tools, 1 prompt. 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.
(name computed at run time)(name computed at run time)(name computed at run time)(name computed at run time)No tool was seen to: start other programs on the machine; connect to the internet or other hosts.
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.
Not all three are present in the tools the scanner traced.
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 (8: 7 tools, 1 prompt)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
(name computed at run time)prompt
No description.
(name computed at run time)tool FilesCredentialsEnv varsSensitive paths
No description.
getContenttool Get the current content of the terminal buffer
Get the current content of the terminal buffer
sendKeytool Send a special key to the terminal (e.g., enter, tab, ctrl+c)
Send a special key to the terminal (e.g., enter, tab, ctrl+c)
startRecordingtool Start recording terminal output to an asciicast v2 file. Returns the recording ID and path where the file will be saved. Only one recording can be active at a t
Start recording terminal output to an asciicast v2 file. Returns the recording ID and path where the file will be saved. Only one recording can be active at a time.
stopRecordingtool Stop a recording and finalize the asciicast file. Returns metadata about the saved recording including the file path and duration.
Stop a recording and finalize the asciicast file. Returns metadata about the saved recording including the file path and duration.
takeScreenshottool Take a screenshot of the terminal. Format 'text' (default) returns plain JSON. Format 'ansi' returns JSON with ANSI color escape codes preserved. Format 'png' r
Take a screenshot of the terminal. Format 'text' (default) returns plain JSON. Format 'ansi' returns JSON with ANSI color escape codes preserved. Format 'png' returns a color screenshot image.
typetool Type text into the terminal
Type text into the terminal
Text the model reads (8)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
type tool
Type text into the terminal
sendKey tool
Send a special key to the terminal (e.g., enter, tab, ctrl+c)
getContent tool
Get the current content of the terminal buffer
takeScreenshot tool
Take a screenshot of the terminal. Format 'text' (default) returns plain JSON. Format 'ansi' returns JSON with ANSI color escape codes preserved. Format 'png' returns a color screenshot image.
startRecording tool
Start recording terminal output to an asciicast v2 file. Returns the recording ID and path where the file will be saved. Only one recording can be active at a time.
stopRecording tool
Stop a recording and finalize the asciicast file. Returns metadata about the saved recording including the file path and duration.
(name computed at run time) tool
(name computed at run time) prompt
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 chooses1 finding the scanner could not decide; see the findings below
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 8 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 8 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 8 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 8 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 8 capabilities; 7 more call code the scanner could not follow, where it may happen
- Tools that touch files1 of 8 capabilities touch files; 6 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 8 capabilities; 7 more call code the scanner could not follow, where it may happen
Where the code is: 8 handlers in 3 files at commit 8c029cdde241
- 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: package.json
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies CRITICAL13 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK version@modelcontextprotocol/sdk ^1.0.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 credentials1 of 8 capabilities read credentials; 6 more call code the scanner could not follow, where it may happen
- Environment variables1 capability reads environment variables (often API keys)
- 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 (2 only in code no tool reaches)
- 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 (13 in production)
shell-quotenpm 1.8.3 CRITICAL 2 advisories 1.8.41.9.0
- CRITICALGHSA-w7jw-789q-3m8p CVE-2026-9277shell-quote quote() does not escape newlines in object .op values
- HIGHGHSA-395f-4hp3-45gv CVE-2026-13311shell-quote: Quadratic-complexity Denial of Service in `parse()` (CWE-407)
proxy-addrnpm 2.0.7 CRITICAL 1 advisory 2.0.8
- CRITICALGHSA-jqcg-44mw-7w3h CVE-2026-90711proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet
hononpm 4.11.6 HIGH 43 advisories 4.11.74.11.104.12.4+12 more
- HIGHGHSA-88fw-hqm2-52qc CVE-2026-54290hono: CORS Middleware reflects any Origin with credentials when `origin` defaults to the wildcard
- HIGHGHSA-q5qw-h33p-qvwr CVE-2026-29045Hono vulnerable to arbitrary file access via serveStatic vulnerability
- MEDIUMGHSA-qp7p-654g-cw7p CVE-2026-44458Hono has CSS Declaration Injection via Style Object Values in JSX SSR
- MEDIUMGHSA-9r54-q6cx-xmh5 CVE-2026-24771Hono vulnerable to XSS through ErrorBoundary component
- MEDIUMGHSA-h7mg-cq63-vhpq CVE-2026-126358Hono: RegExpRouter skips wildcard middleware for some route sets and for paths with an encoded line terminator
- MEDIUMGHSA-9vqf-7f2p-gf9v CVE-2026-44456Hono: bodyLimit() can be bypassed for chunked / unknown-length requests
- MEDIUMGHSA-p6xx-57qc-3wxr CVE-2026-29085Hono Vulnerable to SSE Control Field Injection via CR/LF in writeSSE()
- MEDIUMGHSA-j6c9-x7qj-28xf CVE-2026-54287hono: AWS Lambda adapter merges multiple `Set-Cookie` headers into one value, dropping cookies on ALB single-header and Lattice
- MEDIUMGHSA-458j-xx4x-4375 CVE-2026-56761hono Improperly Handles JSX Attribute Names Allows HTML Injection in hono/jsx SSR
- MEDIUMGHSA-hxh3-vqpv-xpqv CVE-2026-93981hono/jsx renders plain strings unescaped in boundary components, leading to XSS
- MEDIUMGHSA-w332-q679-j88p CVE-2026-24473Hono has an Arbitrary Key Read in Serve static Middleware (Cloudflare Workers Adapter)
- MEDIUMGHSA-26pp-8wgv-hjvm CVE-2026-56762Hono missing validation of cookie name on write path in setCookie()
- MEDIUMGHSA-4m76-xfj5-7975 CVE-2026-126357Hono: `mount()` and `app.mount()` can forward a path that bypasses middleware scoped inside the mount prefix
- MEDIUMGHSA-wwfh-h76j-fc44 CVE-2026-54286hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)
- MEDIUMGHSA-f23p-vx2j-j53r CVE-2026-71850Hono: `memo()` retains SSR output across requests, leading to cross-user data disclosure
- MEDIUMGHSA-8j4g-w8fx-2239 CVE-2026-69207Hono: ReDoS in CORS middleware via Access-Control-Request-Headers
- MEDIUMGHSA-46wx-v44x-9hh2 CVE-2026-126355Hono: `csrf()` does not check requests sent by hyperlink auditing (`text/ping`)
- MEDIUMGHSA-v8w9-8mx6-g223 CVE-2026-56763Hono vulnerable to Prototype Pollution possible through __proto__ key allowed in parseBody({ dot: true })
- MEDIUMGHSA-xpcf-pg52-r92g CVE-2026-39409Hono has incorrect IP matching in ipRestriction() for IPv4-mapped IPv6 addresses
- MEDIUMGHSA-wmmm-f939-6g9c CVE-2026-39407Hono: Middleware bypass via repeated slashes in serveStatic
- MEDIUMGHSA-3hrh-pfw6-9m5x CVE-2026-47675Hono: Cookie helper does not sanitize sameSite and priority, allowing Set-Cookie injection
- MEDIUMGHSA-gqvv-2mrq-wpjv CVE-2026-84365Hono: Incomplete fix for CVE-2026-39408: `toSSG()` still writes files outside the output directory
- MEDIUMGHSA-rv63-4mwf-qqc2 CVE-2026-54288hono: Body Limit Middleware can be bypassed on AWS Lambda by understating `Content-Length`
- MEDIUMGHSA-w62v-xxxg-mg59 CVE-2026-59895Hono: Server-Side XSS via JSX Escaping Bypass in cx() Utility
- MEDIUMGHSA-crvj-82cr-hjcx CVE-2026-84363Hono: Query parser reads parameters after the URL fragment, causing cache-key and proxy interpretation differentials
- MEDIUMGHSA-2gcr-mfcq-wcc3 CVE-2026-47676Hono: app.mount() strips mount prefix using undecoded path, causing incorrect routing for percent-encoded paths
- MEDIUMGHSA-g6gw-c38x-mqfc CVE-2026-84364Hono: Unbounded dot-notation nesting in `parseBody()` can cause memory exhaustion
- MEDIUMGHSA-xrhx-7g5j-rcj5 CVE-2026-47674Hono: IP Restriction bypasses static deny rules for non-canonical IPv6
- MEDIUMGHSA-r354-f388-2fhh CVE-2026-24398Hono IPv4 address validation bypass in IP Restriction Middleware allows IP spoofing
- MEDIUMGHSA-p77w-8qqv-26rm CVE-2026-44457Hono's Cache Middleware ignores Vary: Authorization / Vary: Cookie leading to cross-user cache leakage
- MEDIUMGHSA-xf4j-xp2r-rqqx CVE-2026-39408Hono: Path traversal in toSSG() allows writing files outside the output directory
- MEDIUMGHSA-wgpf-jwqj-8h8p CVE-2026-54289hono: Lambda@Edge adapter keeps only the last value of a repeated request header, dropping the rest
- MEDIUMGHSA-r5rp-j6wh-rvv4 CVE-2026-39410Hono: Non-breaking space prefix bypass in cookie name handling in getCookie()
- MEDIUMGHSA-f577-qrjj-4474 CVE-2026-47673Hono: JWT middleware accepts any Authorization scheme, not only Bearer
- MEDIUMGHSA-5pq2-9x2x-5p6w CVE-2026-29086Hono Vulnerable to Cookie Attribute Injection via Unsanitized domain and path in setCookie()
- MEDIUMGHSA-xgm2-5f3f-mvvc CVE-2026-59897Hono: API Gateway v1 adapter can drop a distinct repeated request header value during de-duplication
- MEDIUMGHSA-6wqw-2p9w-4vw4 CVE-2026-24472Hono cache middleware ignores "Cache-Control: private" leading to Web Cache Deception
- MEDIUMGHSA-69xw-7hcm-h432 CVE-2026-44455hono/jsx has Unvalidated JSX Tag Names that May Allow HTML Injection
- MEDIUMGHSA-4h7h-rv7c-7m2v CVE-2026-126356Hono: `validator('form')` skips validation for `multipart/form-data` requests with extra parameters
- LOWGHSA-3gg2-335m-rxc6 CVE-2026-126359Hono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injection
- LOWGHSA-79qm-7rj5-m7r9 CVE-2026-71849Hono: Proxy Helper does not remove response headers listed in the `Connection` header
- LOWGHSA-hm8q-7f3q-5f36 CVE-2026-44459Hono has improper validation of NumericDate claims (exp, nbf, iat) in JWT verify()
- LOWGHSA-gq3j-xvxp-8hrf CVE-2026-56764Hono added timing comparison hardening in basicAuth and bearerAuth
fast-urinpm 3.1.0 HIGH 12 advisories 2.4.12.4.22.4.3+21 more
- HIGHGHSA-7p8r-x3mc-p8w7 CVE-2026-18446fast-uri vulnerable to host confusion via backslash authority introducer
- HIGHGHSA-qw65-cvwx-89v3 CVE-2026-84292fast-uri vulnerable to authority injection via an unvalidated port in serialize
- HIGHGHSA-v2hh-gcrm-f6hx CVE-2026-16221fast-uri vulnerable to host confusion via literal backslash authority delimiter
- HIGHGHSA-q3j6-qgpj-74h6 CVE-2026-6321fast-uri vulnerable to path traversal via percent-encoded dot segments
- HIGHGHSA-jqff-g426-hqxp CVE-2026-76172fast-uri vulnerable to host confusion via percent-encoded scheme normalization
- HIGHGHSA-4c8g-83qw-93j6 CVE-2026-13676fast-uri vulnerable to host confusion via failed IDN canonicalization
- HIGHGHSA-v39h-62p7-jpjc CVE-2026-6322fast-uri vulnerable to host confusion via percent-encoded authority delimiters
- HIGHGHSA-f65p-4m7j-42xc CVE-2026-75975fast-uri vulnerable to server-side request forgery via malformed IPv6 normalization
- MEDIUMGHSA-hrr3-gc8f-f4qj CVE-2026-86472fast-uri vulnerable to inconsistent host case normalization via percent-encoded octets
- MEDIUMGHSA-w74x-v6f9-j3xg CVE-2026-110306fast-uri vulnerable to URI scheme spoofing via percent-encoded scheme decoding
- LOWGHSA-xhq7-xmqj-769h CVE-2026-110095fast-uri vulnerable to improper path equivalence in relative reference normalization
- LOWGHSA-333x-w4r6-6crp CVE-2026-110725fast-uri vulnerable to scheme injection via an unescaped first-segment colon in suffix references
@modelcontextprotocol/sdknpm 1.25.3 HIGH 7 advisories 1.26.01.30.11.31.0+1 more
- HIGHGHSA-46jr-4wx8-v453 CVE-2026-111768MCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation
- HIGHGHSA-22jm-h49p-29qw CVE-2026-111767MCP TypeScript SDK: Experimental tasks were not tied to the session that created them
- HIGHGHSA-345p-7cg4-v4c7 CVE-2026-25536@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse
- HIGHGHSA-f897-62hf-6gxqMCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length
- HIGHGHSA-6qxp-vccf-f47h CVE-2026-104850MCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
- MEDIUMGHSA-rvq5-wwqv-78pq CVE-2026-111771MCP TypeScript SDK: Server bearer authentication accepted tokens issued for another service
- MEDIUMGHSA-6prh-2h8m-c8cw CVE-2026-111769MCP TypeScript client SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodies
@hono/node-servernpm 1.19.9 HIGH 4 advisories 1.19.101.19.131.19.15+3 more
- HIGHGHSA-wc8c-qw6v-h7f6 CVE-2026-29087@hono/node-server has authorization bypass for protected static paths via encoded slashes in Serve Static Middleware
- MEDIUMGHSA-jpvv-r467-5p4w CVE-2026-126210@hono/node-server: Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxy
- MEDIUMGHSA-frvp-7c67-39w9Node.js Adapter for Hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)
- MEDIUMGHSA-92pp-h63x-v22m CVE-2026-39406@hono/node-server: Middleware bypass via repeated slashes in serveStatic
body-parsernpm 2.2.2 HIGH 2 advisories 1.20.61.20.92.3.0+1 more
- HIGHGHSA-27r3-jxmh-p828 CVE-2026-111181body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body
- LOWGHSA-v422-hmwv-36x6 CVE-2026-12590body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement
lodash-esnpm 4.17.23 HIGH 2 advisories 4.18.04.18.1
- HIGHGHSA-r5fr-rjxr-66jc CVE-2026-4800lodash vulnerable to Code Injection via `_.template` imports key names
- MEDIUMGHSA-f23m-r3pf-42rh CVE-2026-2950lodash vulnerable to prototype pollution via array-path bypass in `_.unset`, `_.omit`, and `_.pullAt
path-to-regexpnpm 8.3.0 HIGH 2 advisories 8.4.0
- HIGHGHSA-j3q9-mxjg-w52f CVE-2026-4926path-to-regexp vulnerable to Denial of Service via sequential optional groups
- MEDIUMGHSA-27v5-c462-wpq7 CVE-2026-4923path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards
smol-tomlnpm 1.6.1 HIGH 2 advisories 1.7.11.9.0
- HIGHGHSA-7w5x-hrqm-74c2 CVE-2026-85730smol-toml: Denial of Service via malformed TOML documents
- MEDIUMGHSA-r4xh-jqrq-34v2smol-toml: Quadratic-time parse() from parseKey rescanning to end of document on each key line
zodnpm 3.25.76 HIGH 1 advisory 4.6.6
- HIGHGHSA-mrhx-c7xc-m3w5 CVE-2023-54404Zod can exhaust memory while validating oversized constrained collections
qsnpm 6.14.1 MEDIUM 4 advisories 6.14.26.15.26.16.0+1 more
- MEDIUMGHSA-4mjr-xmp4-gh2g CVE-2026-82417qs: Denial of Service via Attacker Controlled isBuffer
- MEDIUMGHSA-6pq8-jhm2-2vcw CVE-2026-110816qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)
- MEDIUMGHSA-q8mj-m7cp-5q26 CVE-2026-8723qs has a remotely triggerable DoS: qs.stringify crashes with TypeError on null/undefined entries in comma-format arrays when encodeValuesOnly is set
- LOWGHSA-w7fw-mjwx-w883 CVE-2026-2391qs's arrayLimit bypass in comma parsing allows denial of service
ajvnpm 8.17.1 MEDIUM 1 advisory 6.14.08.18.0
- MEDIUMGHSA-2g4f-4pwh-qvx6 CVE-2025-69873ajv has ReDoS when using `$data` option
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 | stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | @modelcontextprotocol/sdk ^1.0.0 |
| Servers in the code | 2 (terminal-mcp) |
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-08-21 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 2 catalogs (github_search, mcpservers_org) |
|---|---|
| License | MIT |
| Created | 2026-01-22 |
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.