News · AWS Labs · 2 min read
Event date: · Published:
AWS patches path-traversal flaw in its own Pricing MCP server
AWS Labs fixed a path-traversal bug in its official Pricing MCP server that let auto-approved tool calls write files outside the intended directory. The issue is tracked as CVE-2026-126816.
AWS Labs disclosed a path-traversal vulnerability in its official AWS Pricing MCP server in a security advisory published on November 16, 2026. The flaw let a connected MCP client write files outside the server's intended output directory, because a report-generation tool meant to be read-only had been mislabeled and accepted absolute file paths and path-traversal sequences.
What changed
- Tracked as CVE-2026-126816 (
GHSA-mqm3-w68j-75mw), with a CVSS score of 5.5 (Moderate severity) - Affects
awslabs.aws-pricing-mcp-serverversions before 1.0.31 - Also affects the deprecated
awslabs.cost-analysis-mcp-serverin versions up to and including 1.0.5 - The report-generation tool accepted absolute paths and path-traversal sequences in its
output_fileparameter - The tool was incorrectly flagged
readOnlyHint: true, letting auto-approving MCP clients run it without user confirmation - Version 1.0.31 confines output to a base directory configurable via
AWS_PRICING_MCP_OUTPUT_DIR, blocks absolute paths and traversal sequences, and corrects thereadOnlyHintflag
Why it matters for AI builders
The issue shows that the mislabeled-read-only-tool pattern, where a tool is marked safe to auto-approve but can still modify the filesystem, now shows up in AWS's own official MCP servers and not only in third-party ones. Teams that auto-approve MCP tool calls inside agent pipelines should patch to the fixed version and re-audit their approval rules rather than trusting a tool's readOnlyHint label on its own.
Fix and credit
The fix ships in awslabs.aws-pricing-mcp-server version 1.0.31. The deprecated awslabs.cost-analysis-mcp-server, affected in versions up to and including 1.0.5, is also covered by the advisory. AWS credited researcher Ryan von Brubeck with reporting the vulnerability.
Sources
- GHSA-mqm3-w68j-75mw: aws-pricing-mcp-server path traversal (AWS Labs / GitHub Security Advisories, November 16, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.