What happened
In the AWS Pricing MCP Server before 1.0.31, the cost report generation tool improperly limits a pathname to a restricted directory (CWE-22 path traversal, CVSS 5.5). An actor who can influence the MCP agent can write attacker-controlled content to arbitrary locations outside the intended output directory. Fixed in 1.0.31 (AWS Security Bulletin 2026-184-AWS).
Why it matters
After the AWS API MCP Server policy bypass and the Timestream MCP token leak, this is another MCP-tool weak spot in the official AWS MCP server family. An agent steered by untrusted content can write files outside the output sandbox, enabling path/location-based tampering or planting files on the host.
Attack vector
Agent-influenced call to the cost-report generation tool with a crafted path value writes content outside the intended output directory
Affected systems
aws-pricing-mcp-server before 1.0.31
Mitigation
Upgrade to aws-pricing-mcp-server 1.0.31+