aws-pricing-mcp-server cost report generator has path traversal and arbitrary file write vulnerabilities
Path traversal and arbitrary file write in the cost report generator of aws-pricing-mcp-server
AWS released a security advisory (GHSA-mqm3-w68j-75mw, CVE-2026-126816) disclosing a path traversal and arbitrary file write vulnerability in the cost report generation tool of AWS Pricing MCP Server versions before 1.0.31: an attacker able to influence content read by the MCP agent could cause the agent to write a cost report embedding attacker-controlled field values outside the intended output directory. The tool had previously been labeled read-only, and MCP clients configured to auto-approve read-only tools may execute it without user confirmation; exploitation requires the server to be installed locally and the agent to process attacker-influenced content, and the impact is limited to files writable by the server process, not involving AWS managed services. 1.0.31 has fixed it: the output_file parameter is restricted to within a base directory (configurable via the AWS_PRICING_MCP_OUTPUT_DIR environment variable, defaulting to the server process's working directory), rejecting absolute paths, .. traversal segments and escaping symlinks, and the readOnlyHint annotation was changed to False.