# AWS fixes file-write flaw in Pricing MCP server that AI clients could auto-approve

CVE-2026-126816 let anyone who can influence an AI agent write files outside the intended folder. The tool was labelled read-only, so clients could run it without asking. Fixed in 1.0.31; the deprecated cost-analysis server gets no fix.

By [AI Security Times](https://aisecuritytimes.com/authors/ai-security-times) · Published 2026-11-30T16:35:08Z
Canonical: https://aisecuritytimes.com/ai/aws-pricing-mcp-server-file-write-flaw

## Key facts

- CVE: CVE-2026-126816
- Severity: AWS severity "Important (requires attention)"; AWS does not give a CVSS score
- Status: Patch available
- Product: AWS Pricing MCP Server (awslabs.aws-pricing-mcp-server)
- Affected: Versions before 1.0.31; awslabs.cost-analysis-mcp-server 1.0.5 and earlier
- Fixed in: 1.0.31

### What to do now

1. Upgrade awslabs.aws-pricing-mcp-server to 1.0.31 or later, including any forks or code derived from it.
2. If you still use awslabs.cost-analysis-mcp-server, migrate to the Pricing MCP server: no fix will be published for the deprecated package.
3. Remove generate_cost_report from any auto-approve list in your MCP client, and check the output path before approving it.
4. Do not let the agent act on untrusted content while it can call this tool.

Amazon Web Services has fixed a path traversal flaw in its Pricing MCP server, an open-source Model Context Protocol (MCP) server that gives AI agents access to AWS pricing data. The bug, CVE-2026-126816, let a cost report tool write files anywhere the server could write. And because the tool was labelled read-only, AI clients could run it without asking the user first.

## What happened

AWS published security bulletin 2026-184-AWS on Nov 16 and rated the issue "Important." The flaw is in the `generate_cost_report` tool of the `awslabs.aws-pricing-mcp-server` package before version 1.0.31.

According to the bulletin, an actor who can influence the MCP agent could use "absolute paths or directory traversal sequences" in the report's output path to write outside the intended directory. AWS credits Ryan von Brubeck for reporting the issue through coordinated disclosure.

## Why the "read-only" label matters

MCP tools can carry annotations that describe their behavior, for example that a tool only reads data. Some MCP clients use those annotations to decide which tool calls they approve automatically. AWS's bulletin says the tool "was also annotated as read-only, which can lead MCP clients to auto-approve it without user confirmation."

In practice, a prompt injection hidden in content the agent reads could trigger a file write without a human ever seeing the request. The MCP specification itself warns that clients must treat tool annotations as untrusted unless they come from trusted servers.

## Who is affected

- **awslabs.aws-pricing-mcp-server** before 1.0.31. The fix is in 1.0.31.
- **awslabs.cost-analysis-mcp-server** 1.0.5 and earlier. The package is deprecated, and AWS says "no patched release of that package will be published."

## What to do now

Upgrade to 1.0.31, migrate off the deprecated package, and take `generate_cost_report` out of any auto-approve configuration. AWS also advises checking the output path before approving the tool, and not passing untrusted content to the agent.

Related: [How to secure MCP servers: a practical hardening guide](/guides/secure-mcp-servers-guide)

## Sources

1. [AWS Security Bulletin 2026-184-AWS: CVE-2026-126816](https://aws.amazon.com/security/security-bulletins/2026-184-aws/) (Vendor)

Topics: [AI agents](https://aisecuritytimes.com/topics/ai-agents), [Vulnerabilities](https://aisecuritytimes.com/topics/vulnerabilities), [Cloud](https://aisecuritytimes.com/topics/cloud), [MCP security](https://aisecuritytimes.com/topics/mcp-security)
