Two AWS MCP bugs show why tool trust is a security decision
If your team uses AI agents with MCP servers, you may have an auto-approve list. It saves clicks. It is also a security decision. On November 16, AWS published two security bulletins for two AWS Labs MCP servers. In one, a tool annotated as read-only could write content outside its output directory. In the other, prompt injection could make the server send its configured InfluxDB API token to an endpoint an attacker controls. Here is what happened and what to change.
Some background on MCP
The Model Context Protocol (MCP) lets an AI agent call tools that a server offers. The MCP specification's section on tools says clients should "Present confirmation prompts to the user for operations." It also says there "SHOULD always be a human in the loop with the ability to deny tool invocations." Servers can add annotations, which are optional properties that describe how a tool behaves. The spec says clients "MUST consider tool annotations to be untrusted unless they come from trusted servers."
Bug 1: a read-only tool that could write files
AWS bulletin 2026-184 (CVE-2026-126816) covers the cost report tool of the AWS Pricing MCP Server before version 1.0.31. An attacker who can influence the agent might write content they control to places outside the intended output folder. They would do this with absolute paths or directory traversal sequences in the report output path.
The tool was also annotated as read-only. AWS says this "can lead MCP clients to auto-approve it without user confirmation." So the label that made the tool look safe could also remove the human check.
Affected packages:
awslabs.aws-pricing-mcp-serverbefore 1.0.31. The fix is in 1.0.31, which has been on PyPI since June 9, 2026.awslabs.cost-analysis-mcp-server1.0.5 and earlier. This package is deprecated. AWS says no patched release of it will be published, and its users should migrate.
If you cannot upgrade, AWS says to remove generate_cost_report from any auto-approve list. Then each call needs your confirmation, and you can check the output path first. AWS also says not to pass untrusted content to the agent. The bulletin describes a potential scenario and does not report exploitation.
Bug 2: prompt injection that could leak an API token
AWS bulletin 2026-185 (CVE-2026-126681) covers the Timestream for InfluxDB MCP Server, from 0.0.12 up to (not including) 0.0.19. The server did not restrict which endpoints it connected to. AWS says a remote, unauthenticated attacker "could use prompt injection to introduce a crafted InfluxDB URL into the MCP client context." The server could then send its InfluxDB API token to an endpoint the attacker controls.
In plain terms, prompt injection means hiding instructions in content the agent reads. That definition is ours, not the bulletin's. The fix is in 0.0.19, which has been on PyPI since July 28, 2026. AWS says users of affected versions should rotate their InfluxDB API tokens. AWS also says no workaround fully fixes the issue. Until you upgrade, use a token with the least permissions needed. Do not use the server with clients that process untrusted content. The bulletin text we have does not mention exploitation.
What the two bugs have in common
This is our reading, not a claim from AWS. In both bugs, a check trusted an input too much. A client that auto-approved the Pricing tool trusted its read-only label, and the label was wrong. The Timestream server trusted a URL from the agent's context, and an attacker could put text into that context. AWS has released fixed versions of both servers, though not of the deprecated cost-analysis package. But you can build the same weakness into your own setup. An auto-approve list based on labels, or a server that connects to any URL the agent gives it, has it.
What to do this week
- Upgrade
awslabs.aws-pricing-mcp-serverto 1.0.31 or later. Move offawslabs.cost-analysis-mcp-server. - Upgrade
awslabs.timestream-for-influxdb-mcp-serverto 0.0.19 or later. Then rotate the InfluxDB tokens it used. - If you forked the Pricing server or copied its code, patch that too. The 2026-184 bulletin asks for this.
- Review every auto-approve list in your team's MCP clients. Approve a tool because you know what it does, not because of its label.
- Give each MCP server its own narrow credential. A leaked read-only token for one database is a small incident. A leaked admin token is not.
- Keep agents that read untrusted content apart from agents that hold production credentials. Untrusted content includes web pages, inbound email and customer tickets. If you cannot split them, keep approval on for every tool that can write or connect out.
- Limit which hosts each MCP server can reach. This is our advice, not part of the bulletins. A server that can reach only your database host has fewer places to send a token.
None of this means you should stop using MCP. It means the approval prompt is a real control. Each tool you auto-approve should earn that place.
Sources
- AWS Security Bulletin 2026-184-AWS: CVE-2026-126816, AWS Pricing MCP Server (November 16, 2026)
- AWS Security Bulletin 2026-185-AWS: CVE-2026-126681, Timestream for InfluxDB MCP Server (November 16, 2026)
- PyPI: awslabs.aws-pricing-mcp-server 1.0.31 (released June 9, 2026) and awslabs.timestream-for-influxdb-mcp-server 0.0.19 (released July 28, 2026)
- Model Context Protocol specification (2026-07-28): Tools (reference)