
An MCP tool marked read-only could write files anywhere on disk. AWS Pricing MCP Server before 1.0.31 has a path traversal in generate_cost_report (CVE-2026-126816, Nov 16). The report output path accepted absolute paths and ../ sequences, so anyone who can steer the agent could write their own content outside the output folder. The worse part: the tool was annotated as read-only. MCP clients can auto-approve read-only tools, so that write could skip the confirmation prompt entirely. Fix: upgrade awslabs.aws-pricing-mcp-server to 1.0.31. The deprecated awslabs.cost-analysis-mcp-server (1.0.5 and below) gets no patch, so migrate off it. Can't upgrade yet? Take generate_cost_report out of auto-approve. Tool annotations are the server author describing their own tool. They're hints, not permissions. If your client auto-approves on readOnlyHint, you're trusting every server's self-description.



