AWS: Pricing MCP Server report tool before 1.0.31 has path traversal
CVE-2026-126816 - Path traversal and arbitrary file write in the cost report generator of aws-pricing-mcp-server
AWS released a security advisory disclosing vulnerability CVE-2026-126816 in the cost report generation tool of its open-source MCP server AWS Pricing MCP Server. The server provides AI assistants with real-time AWS pricing information and cost analysis capabilities; versions before 1.0.31 are affected, and an attacker able to influence the MCP agent may, through absolute paths or directory traversal sequences in the report output path, write controlled content outside the intended output directory; the tool is labeled read-only, which may cause MCP clients to automatically approve calls without user confirmation. The deprecated awslabs.cost-analysis-mcp-server (1.0.5 and earlier versions) is also affected and will not receive a fixed version, and users need to migrate to awslabs.aws-pricing-mcp-server 1.0.31 or later. Users unable to upgrade should remove generate_cost_report from the MCP client's auto-approval configuration and avoid passing untrusted content to the agent.
The advisory notes that read-only tool labeling may cause MCP clients to skip user confirmation and auto-approve, and teams deploying MCP servers can use this to check their auto-approval configurations and upgrade promptly.