{"question":"We run the AWS Labs Timestream for InfluxDB MCP server with an InfluxDB token in its environment so an assistant can query our time-series data. What is CVE-2026-126681, which version fixes it, and what else should we change?","slug":"can-prompt-injection-send-your-influxdb-token-to-another-host-timestream-for-influxdb-mcp-server-cve-2026-126681","url":"https://www.rightshold.com/answers/can-prompt-injection-send-your-influxdb-token-to-another-host-timestream-for-influxdb-mcp-server-cve-2026-126681","short_answer":"It could before version 0.0.19. CVE-2026-126681 (GHSA-2f9r-g4f3-wc2j, published November 16, 2026) affects awslabs.timestream-for-influxdb-mcp-server 0.0.12 up to, but not including, 0.0.19. The server didn't restrict which endpoints its InfluxDB tools connected to, so text the assistant read could slip a crafted InfluxDB URL into a tool call, and the server would connect there carrying the InfluxDB API token configured in its environment. Whoever ran that endpoint got the token and, with it, whatever access the token grants to your InfluxDB data. AWS says 0.0.19 fixes it and that anyone who used an affected version should rotate the InfluxDB tokens configured for the server. The current README describes the rule now in place: a URL supplied in a tool call must match INFLUXDB_URL or an entry in INFLUXDB_ALLOWED_URLS, and the server's own token is never used to complete a partly caller-supplied connection. Until you upgrade, AWS's only mitigations are a least-privilege token and keeping the server away from clients that process untrusted content.","checklist":["Check the installed version: awslabs.timestream-for-influxdb-mcp-server 0.0.12 through 0.0.18 is affected and 0.0.19 is the fix. PyPI listed 0.1.4 as the newest release on November 20, 2026.","Rotate every InfluxDB API token that was set in INFLUXDB_TOKEN while an affected version ran, as AWS recommends. Upgrading doesn't recall a token that already went somewhere else.","Restart clients that launch the server through uvx with @latest so they load a new build; a pinned or cached copy stays on the old version.","Give the server a token scoped to the buckets and permissions the assistant needs. AWS's workaround and the README's best practice both point to a least-privilege, ideally read-only, token.","If the assistant needs more than one InfluxDB endpoint, list each one in INFLUXDB_ALLOWED_URLS rather than letting tool calls name hosts freely.","Leave ALLOW_WRITE and INFLUXDB_WRITE_MODE unset unless a task needs writes. The README says both are set by whoever starts the server and can't be changed by a tool call.","Check InfluxDB and network logs from the period an affected version ran for requests carrying that token from addresses you don't recognise."],"sections":[{"heading":"What CVE-2026-126681 in the Timestream for InfluxDB MCP server does","points":["AWS's advisory GHSA-2f9r-g4f3-wc2j (CVE-2026-126681, moderate, CVSS 3.1 5.5, AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N, CWE-923, published November 16, 2026) says the server's connection handling did not restrict which endpoints it connected to. An unauthenticated remote actor could use prompt injection to introduce a crafted InfluxDB URL into the MCP client's context; the server would connect to that URL and send the InfluxDB API token configured on the server to an endpoint the actor controls.","The token is the server's own secret, set through INFLUXDB_TOKEN alongside INFLUXDB_URL and INFLUXDB_ORG in the client config. Its permissions decide what the leak opens up: the advisory says the token could then be used to reach your InfluxDB data with whatever rights it carries.","The server's tools cover both the AWS control plane (database instances, clusters, parameter groups, tags) and InfluxDB's own APIs (queries, writes, buckets, organizations). The InfluxDB data tools are where a connection URL comes into play."]},{"heading":"How version 0.0.19 and the current README handle connections","points":["AWS says the issue is addressed in 0.0.19. PyPI shows 0.0.19 uploaded on July 28, 2026, well before the November 16 advisory, so installs updated since then already carry the fix; pinned older copies don't.","The README's \"InfluxDB Connection Security\" section describes connection parameters as a single trust boundary. Tools use the INFLUXDB_URL, INFLUXDB_TOKEN and INFLUXDB_ORG environment variables when a call supplies no connection parameters. If a call supplies any, it must supply all that tool needs, and the server's environment credentials are never used to fill in the rest. A caller-supplied URL must match INFLUXDB_URL or an entry in the optional, comma-separated INFLUXDB_ALLOWED_URLS.","The README calls this a breaking change for clients that sent only some connection parameters and relied on the environment for the others. Those clients now have to send nothing, or a complete configuration for an approved URL."]},{"heading":"The pattern to avoid when your MCP server holds a secret","points":["This is the same shape as the Amazon MQ MCP server's CVE-2026-18655: a tool attaches a stored secret to an outbound request, and the model's tool call chooses where the request goes. Prompt injection only has to change one string.","The fix pattern is to decide the destination outside the model's reach: an exact allowlist set when the server starts, or an identifier the server resolves itself. Refuse any call whose target isn't on the list before a credential is attached, and never mix a caller-supplied host with a stored token.","Keep the stored secret as narrow as the job. A read-only token for one bucket limits what a leak, a bug or a mistaken tool call can reach, whatever the server version."]}],"checks":[],"ask_rightshold":{"start":"https://www.rightshold.com/start?ref=seo","mcp_endpoint":"https://www.rightshold.com/mcp","ask":"We upgraded the Timestream for InfluxDB MCP server past the CVE-2026-126681 fix, rotated the InfluxDB token it used, and set INFLUXDB_ALLOWED_URLS. Record that change so we have a dated entry outside our own logs.","mcp_call":{"tool":"record_action","arguments":{"action_type":"security.credential_rotated","outcome":"success","occurred_at":"2026-11-20T23:30:00Z","client_event_id":"influxdb-mcp:upgrade-rotate-2026-11-20","summary":"awslabs.timestream-for-influxdb-mcp-server upgraded to 0.1.4 (CVE-2026-126681 / GHSA-2f9r-g4f3-wc2j fixed in 0.0.19); InfluxDB API token used by the server revoked and replaced with a read-only token for one bucket; INFLUXDB_ALLOWED_URLS set to our two InfluxDB endpoints"}},"also":["Needs your API key (or accept_terms:true once to open a free account; the key comes back once). It returns a ledger-committed receipt of what you submitted and when. It proves the entry was recorded, not that the upgrade or rotation happened as described.","Keep tokens, hostnames you'd rather not publish and customer details out of summary, because recorded events can't be edited or deleted. To keep details private, hash a sidecar file and send action_sha256 (64-character hex) instead."],"scope":"Rightshold isn't affiliated with AWS or InfluxData. It doesn't scan MCP server code, check token scopes or watch outbound connections, and a recorded entry isn't a finding that a setup is safe. Advisory details are as published by AWS in GitHub's advisory database (GHSA-2f9r-g4f3-wc2j), connection and write settings as described in the server's README in the awslabs/mcp repository, and release dates as listed on PyPI, all read November 20, 2026; advisories get updated, so confirm fixed versions on the linked pages."},"sources":[{"title":"GitHub Advisory: GHSA-2f9r-g4f3-wc2j / CVE-2026-126681, improper restriction of intended endpoints in AWS Labs Timestream for InfluxDB MCP Server","url":"https://github.com/awslabs/mcp/security/advisories/GHSA-2f9r-g4f3-wc2j"},{"title":"awslabs/mcp: Timestream for InfluxDB MCP server README (InfluxDB Connection Security, Write Mode)","url":"https://github.com/awslabs/mcp/tree/main/src/timestream-for-influxdb-mcp-server"},{"title":"PyPI: awslabs.timestream-for-influxdb-mcp-server release history","url":"https://pypi.org/project/awslabs.timestream-for-influxdb-mcp-server/#history"}],"related":[{"title":"Can prompt injection make the Amazon MQ MCP server send broker credentials to another host (CVE-2026-18655)?","url":"https://www.rightshold.com/answers/can-prompt-injection-make-the-amazon-mq-mcp-server-send-broker-credentials-to-another-host-cve-2026-18655"},{"title":"Blocking SSRF and path traversal in MCP tool URL arguments and resource templates","url":"https://www.rightshold.com/answers/how-to-block-ssrf-and-path-traversal-in-mcp-tool-url-arguments-and-resource-templates"},{"title":"Keeping API keys and tokens out of mcp.json and claude_desktop_config.json","url":"https://www.rightshold.com/answers/how-to-keep-api-keys-and-tokens-out-of-mcp-json-and-claude-desktop-config-files"},{"title":"Stopping prompt injection in fetched web and file content from triggering MCP write tools","url":"https://www.rightshold.com/answers/how-to-stop-prompt-injection-in-fetched-web-or-file-content-from-triggering-mcp-write-tools"}],"computed_from":"Curated guidance; license verdicts computed from Rightshold's license profiles at render time. Not legal advice.","updated":"2026-11-20"}