elastic/mcp-server-elasticsearch
elastic/mcp-server-elasticsearch;elasticsearch
9e64b842f222elasticsearch-core-mcp-server0.4.6 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
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 and Capability Exposure are shown as partly traced instead of a score: no finding there is not a clean result.
- In 1 place 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
Top risks in plain words
- HIGH20 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
anyhow1.0.103 or later,bytes1.11.1 or later,h20.4.16 or later,openssl0.10.80 or later and 12 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 5 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 (5: 5 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
esqltool Perform an Elasticsearch ES|QL query.
Perform an Elasticsearch ES|QL query.
get_mappingstool Get field mappings for a specific Elasticsearch index
Get field mappings for a specific Elasticsearch index
get_shardstool Get shard information for all or specific indices.
Get shard information for all or specific indices.
list_indicestool List all available Elasticsearch indices
List all available Elasticsearch indices
searchtool Perform an Elasticsearch search with the provided query DSL.
Perform an Elasticsearch search with the provided query DSL.
Text the model reads (5)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
list_indices tool
List all available Elasticsearch indices
get_mappings tool
Get field mappings for a specific Elasticsearch index
search tool
Perform an Elasticsearch search with the provided query DSL.
esql tool
Perform an Elasticsearch ES|QL query.
get_shards tool
Get shard information for all or specific indices.
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 — 5 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 5 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 — 5 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 — 5 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 — 5 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 5 capabilities; 5 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 5 capabilities; 5 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 5 capabilities; 5 more call code the scanner could not follow, where it may happen
Where the code is: 5 handlers in 1 file at commit 9e64b842f222
- 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 HIGH20 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionNo MCP SDK declared in a manifest
- 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 5 capabilities; 5 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 (20 in production)
opensslcrates.io 0.10.73 HIGH 16 advisories 0.10.780.10.790.10.80
- HIGHGHSA-xp3w-r5p5-63rr CVE-2026-42327 RUSTSEC-2026-0474rust-openssl has undefined behavior in X509Ref::ocsp_responders for certificates with non-UTF-8 OCSP URLs
- HIGHGHSA-8c75-8mhr-p7r9 CVE-2026-41678 RUSTSEC-2026-0463rust-openssl has incorrect bounds assertion in aes key wrap
- HIGHGHSA-ghm9-cr32-g9qj CVE-2026-41681 RUSTSEC-2026-0475rust-openssl: rustMdCtxRef::digest_final() writes past caller buffer with no length check
- HIGHGHSA-pqf5-4pqq-29f5 CVE-2026-41676 RUSTSEC-2026-0473rust-openssl: Deriver::derive and PkeyCtxRef::derive can overflow short buffers on OpenSSL 1.1.1
- HIGHGHSA-hppc-g8h3-xhp3 CVE-2026-41898 RUSTSEC-2026-0478rust-openssl: Unchecked callback length in PSK/cookie trampolines leaks adjacent memory to peer
- MEDIUMGHSA-phqj-4mhp-q6mq CVE-2026-45784 RUSTSEC-2026-0477rust-openssl: Potential out-of-bounds write in `CipherCtxRef::cipher_update_inplace` for AES-KW-PAD ciphers
- MEDIUMGHSA-xv59-967r-8726 CVE-2026-44662 RUSTSEC-2026-0476rust-openssl vulnerable to heap buffer overflow when encrypting with AES key-wrap-with-padding
- MEDIUMRUSTSEC-2026-0478 CVE-2026-41898 GHSA-hppc-g8h3-xhp3Unchecked callback lengths in PSK and cookie callbacks
- MEDIUMRUSTSEC-2026-0479 CVE-2026-41677 GHSA-xmgf-hq76-4vx2Out-of-bounds read when a PEM password callback returns an oversized length
- MEDIUMRUSTSEC-2026-0475 CVE-2026-41681 GHSA-ghm9-cr32-g9qjBuffer overflow in `MdCtxRef::digest_final`
- MEDIUMRUSTSEC-2026-0463 CVE-2026-41678 GHSA-8c75-8mhr-p7r9Out-of-bounds write in `aes::unwrap_key`
- MEDIUMRUSTSEC-2026-0476 CVE-2026-44662 GHSA-xv59-967r-8726Buffer overflow with AES key wrap with padding in `cipher_update`
- MEDIUMRUSTSEC-2026-0473 CVE-2026-41676 GHSA-pqf5-4pqq-29f5Buffer overflow in `Deriver::derive` and `PkeyCtxRef::derive` with OpenSSL 1.1.x
- MEDIUMRUSTSEC-2026-0474 CVE-2026-42327 GHSA-xp3w-r5p5-63rr`X509Ref::ocsp_responders` can produce a `&str` that is not valid UTF-8
- MEDIUMRUSTSEC-2026-0477 CVE-2026-45784 GHSA-phqj-4mhp-q6mqBuffer overflow with AES key wrap with padding in `cipher_update_inplace`
- LOWGHSA-xmgf-hq76-4vx2 CVE-2026-41677 RUSTSEC-2026-0479rust-opennssl has an Out-of-bounds read in PEM password callback when returning an oversized length
quinn-protocrates.io 0.11.13 HIGH 10 advisories 0.11.140.11.150.11.17+2 more
- HIGHGHSA-4w2j-m93h-cj5j CVE-2026-25800 RUSTSEC-2026-0185Quinn: Remote memory exhaustion in quinn-proto from unbounded out-of-order stream reassembly
- HIGHGHSA-6xvm-j4wr-6v98 CVE-2026-31812 RUSTSEC-2026-0037Quinn affected by unauthenticated remote DoS via panic in QUIC transport parameter parsing
- MEDIUMRUSTSEC-2026-0037 CVE-2026-31812 GHSA-6xvm-j4wr-6v98Denial of service in Quinn endpoints
- MEDIUMRUSTSEC-2026-0339 GHSA-hmxj-32vh-65vrUnbounded growth of pending connection ID retirements in quinn-proto
- MEDIUMRUSTSEC-2026-0340 GHSA-3g6h-r5qx-f6hqPeer minimum ACK delay can panic quinn-proto when ACK_FREQUENCY transmission is enabled
- MEDIUMRUSTSEC-2026-0342 GHSA-2hv7-gw8g-gpq5Zero-length DATAGRAM frames bypass the receive buffer limit in quinn-proto
- MEDIUMRUSTSEC-2026-0523 GHSA-53rm-773f-4q8cMAX_STREAM_DATA frame can open streams beyond the stream limit
- MEDIUMRUSTSEC-2026-0185 CVE-2026-25800 GHSA-4w2j-m93h-cj5j Remote memory exhaustion in quinn-proto from unbounded out-of-order stream reassembly
- MEDIUMRUSTSEC-2026-0524 GHSA-wppq-2f6r-wfvmLong Retry token can panic or exhaust memory in a QUIC client
- MEDIUMRUSTSEC-2026-0338 GHSA-465w-v9q3-7j98Remote peer can panic quinn-proto with zero-length STREAM frames during unordered reads
rustls-webpkicrates.io 0.103.6 HIGH 9 advisories 0.103.100.103.120.103.13+5 more
- HIGHGHSA-82j2-j2ch-gfr8 CVE-2026-93599 RUSTSEC-2026-0104rustls-webpki: Denial of service via panic on malformed CRL BIT STRING
- MEDIUMGHSA-pwjx-qhcg-rvj4 CVE-2026-93602 RUSTSEC-2026-0049webpki: CRLs not considered authoritative by Distribution Point due to faulty matching logic
- MEDIUMRUSTSEC-2026-0104 CVE-2026-93599 GHSA-82j2-j2ch-gfr8Reachable panic in certificate revocation list parsing
- MEDIUMRUSTSEC-2026-0099 CVE-2026-93601 GHSA-xgp8-3hg3-c2mhName constraints were accepted for certificates asserting a wildcard name
- MEDIUMRUSTSEC-2026-0382 BIT-golang-2026-111943 CVE-2026-111943 GO-2026-6809 RUSTSEC-2026-0381 RUSTSEC-2026-0383Certificate verification may accept distrusted intermediates
- MEDIUMRUSTSEC-2026-0098 CVE-2026-93600 GHSA-965h-392x-2mh5Name constraints for URI names were incorrectly accepted
- MEDIUMRUSTSEC-2026-0049 CVE-2026-93602 GHSA-pwjx-qhcg-rvj4CRLs not considered authoritative by Distribution Point due to faulty matching logic
- LOWGHSA-xgp8-3hg3-c2mh CVE-2026-93601 RUSTSEC-2026-0099webpki: Name constraints were accepted for certificates asserting a wildcard name
- LOWGHSA-965h-392x-2mh5 CVE-2026-93600 RUSTSEC-2026-0098webpki: Name constraints for URI names were incorrectly accepted
rmcpcrates.io 0.2.1 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-0189 CVE-2026-42559 GHSA-89vp-x53w-74fx GHSA-fvh2-gm75-j4j7 RUSTSEC-2026-0140DNS rebinding vulnerability in rmcp Streamable HTTP server transport
- MEDIUMGHSA-9g45-5xwm-f3wc CVE-2026-64684RMCP: Custom HTTP headers leak to cross-origin redirect targets
- MEDIUMRUSTSEC-2026-0462 GHSA-c9f9-cp8h-jcj5Unbounded response body buffering in Streamable HTTP clients
- MEDIUMGHSA-c9xm-49cp-xcr9rmcp OAuth client fetches server-controlled resource_metadata URLs
rustlscrates.io 0.23.32 MEDIUM 8 advisories 0.23.450.23.460.24.0-dev.2
- MEDIUMRUSTSEC-2026-0349 CVE-2026-123611 GHSA-w44r-93j7-qv28Unauthenticated ServerHello can downgrade later connections to classical key exchange
- MEDIUMGHSA-c8m5-c952-6cm4 CVE-2026-123609 RUSTSEC-2026-0346Rustls: Session Debug formatting exposes TLS master secrets and resumption PSKs
- MEDIUMRUSTSEC-2026-0346 CVE-2026-123609 GHSA-c8m5-c952-6cm4`Debug` impls for client session values expose TLS secrets
- MEDIUMGHSA-2mjx-qc3c-rqvc CVE-2026-123613 RUSTSEC-2026-0285Rustls: TLS 1.3 handshake messages incorrectly accepted across encryption level boundaries
- MEDIUMRUSTSEC-2026-0348 CVE-2026-123610 GHSA-h2v8-394m-p7vvBrotli certificate decompression can allocate up to 1 GiB before authentication
- MEDIUMRUSTSEC-2026-0285 CVE-2026-123613 GHSA-2mjx-qc3c-rqvcTLS 1.3 handshake messages incorrectly accepted across encryption level boundaries
- LOWGHSA-h2v8-394m-p7vv CVE-2026-123610 RUSTSEC-2026-0348Rustls: Brotli certificate decompression can allocate an attacker-controlled amount of memory up to 1 GiB before authentication.
- LOWGHSA-w44r-93j7-qv28 CVE-2026-123611 RUSTSEC-2026-0349rustls: An unauthenticated ServerHello poisons the per-name key-exchange record, so later ClientHellos carry only a classical X25519 share
bytescrates.io 1.10.1 MEDIUM 2 advisories 1.11.1
- MEDIUMGHSA-434x-w66g-qw3r CVE-2026-25541 RUSTSEC-2026-0007bytes has integer overflow in BytesMut::reserve
- MEDIUMRUSTSEC-2026-0007 CVE-2026-25541 GHSA-434x-w66g-qw3rInteger overflow in `BytesMut::reserve`
randcrates.io 0.8.5 MEDIUM 2 advisories 0.8.60.9.30.10.1
- MEDIUMRUSTSEC-2026-0097 GHSA-cq8v-f236-94qcRand is unsound with a custom logger using `rand::rng()`
- LOWGHSA-cq8v-f236-94qc RUSTSEC-2026-0097Rand is unsound with a custom logger using rand::rng()
randcrates.io 0.9.2 MEDIUM 2 advisories 0.8.60.9.30.10.1
- MEDIUMRUSTSEC-2026-0097 GHSA-cq8v-f236-94qcRand is unsound with a custom logger using `rand::rng()`
- LOWGHSA-cq8v-f236-94qc RUSTSEC-2026-0097Rand is unsound with a custom logger using rand::rng()
timecrates.io 0.3.44 MEDIUM 2 advisories 0.3.47
- MEDIUMRUSTSEC-2026-0009 CVE-2026-25727 GHSA-r6v5-fh4h-64xcDenial of Service via Stack Exhaustion
- MEDIUMGHSA-r6v5-fh4h-64xc CVE-2026-25727 RUSTSEC-2026-0009time vulnerable to stack exhaustion Denial of Service attack
anyhowcrates.io 1.0.100 MEDIUM 1 advisory 1.0.103
- MEDIUMRUSTSEC-2026-0190Unsoundness in `Error::downcast_mut()`
chronocrates.io 0.4.42 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0543chrono is unmaintained
h2crates.io 0.4.12 MEDIUM 1 advisory 0.4.16
- MEDIUMRUSTSEC-2026-0258 GHSA-q83h-524g-xf6hh2 unbounded empty DATA frames
pastecrates.io 1.0.15 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2024-0436paste - no longer maintained
pin-utilscrates.io 0.1.0 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0441`pin-utils` is unmaintained
quinn-udpcrates.io 0.5.14 MEDIUM 1 advisory 0.5.160.6.3
- MEDIUMRUSTSEC-2026-0538 GHSA-6pp4-4cxf-xf88Receive loop can spin after a truncated datagram
rustixcrates.io 1.1.2 MEDIUM 1 advisory 1.1.6
- MEDIUMRUSTSEC-2026-0486 GHSA-jh2m-fhpj-3vr7xattr functions mark unwritten bytes as initialized when given a zero-length buffer
serde_withcrates.io 3.14.1 MEDIUM 1 advisory 3.21.0
- MEDIUMGHSA-7gcf-g7xr-8hxjserde_with: KeyValueMap serialization panics on empty sequence or map entries
tokiocrates.io 1.47.1 MEDIUM 1 advisory 1.51.61.53.3
- MEDIUMRUSTSEC-2026-0386`AsyncFd::new` and related constructors violate I/O safety
urlcrates.io 2.5.7 MEDIUM 1 advisory 2.5.9
- MEDIUMRUSTSEC-2026-0592 GHSA-hrj5-67jp-wqp9Stack overflow in `Url::origin()` on nested `blob:` URLs
webpki-rootscrates.io 1.0.2 MEDIUM 1 advisory 0.26.111.0.10
- MEDIUMRUSTSEC-2026-0381 BIT-golang-2026-111943 CVE-2026-111943 GO-2026-6809 RUSTSEC-2026-0382 RUSTSEC-2026-0383Bundled root certificates allow trust in distrusted emSign intermediates
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 |
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-11-12 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 6 catalogs (awesome_tensorblock, docker_catalog, github_search, glama, mcp_toplist, mcpservers_org) |
|---|---|
| License | Apache-2.0 |
| Created | 2025-03-24 |
| Topics | elasticsearch mcp mcp-server vector-database |
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.