The report
A tool labeled read-only can still change files if the code beneath its metadata writes to disk. That mismatch was documented in the November 16 AWS Labs Pricing MCP security advisory for aws-pricing-mcp-server before 1.0.31: a cost-report generator accepted an output_file location that could escape its intended report directory, and its MCP annotation told clients the operation was read-only.
From tool description to filesystem effect
An attacker first needed influence over content the victim's AI assistant processed. If that content induced a call to generate_cost_report with a crafted output path and report fields, the installed MCP process could create or overwrite a file outside the expected location. Clients configured to auto-approve read-only tools could then skip a prompt that might otherwise expose the write. The actual filesystem reach depended on the permissions of the local MCP process, not the marketing description of the tool or the model's intended behavior.
The advisory distinguishes the exposed open-source Python package from AWS-managed services, which were not affected by this local flaw. It also identifies the deprecated cost-analysis-mcp-server package as affected without a patched release. AWS directs users of that package to migrate to aws-pricing-mcp-server 1.0.31 or later rather than await a fix for the deprecated branch.
Which fix changes the boundary?
The updated report generator constrains outputs to a configured directory and changes the inaccurate readOnlyHint to false. These are complementary controls: correcting metadata helps a client decide whether a call requires permission, while path validation prevents an approved call from writing outside its allowed destination. The canonical dossier preserves the affected-package scope and prerequisites.
No compromise of AWS infrastructure or confirmed exploitation count appears in the disclosed evidence. The generalizable failure is more precise: a permission policy based solely on an agent tool's self-description can be undermined by ordinary filesystem behavior that the policy never checks.