---
id: "CVE-2026-126816"
page: "https://infrastack.ai/live/CVE-2026-126816"
kind: "vulnerability"
aliases: ["CVE-2026-126816"]
title: "Improper limitation of a pathname to a restricted directory in the cost report generation tool in AWS Pricing MCP\u2026"
severity: "medium"
cvss: 6.8
epss: null
exploited: false
status: "open"
category: "ai-tooling"
products: []
ecosystems: []
tags: ["ai-tooling", "aws", "claude-code", "lab-disclosure", "mcp", "python"]
not_affected_if: ["server-not-installed", "version-1.0.31-or-later"]
published_at: "2026-11-16T00:00:00+00:00"
first_seen_at: "2026-11-16T20:33:20+00:00"
updated_at: "2026-11-16T20:38:45+00:00"
sources: [{"source": "lab", "url": "https://aws.amazon.com/security/security-bulletins/2026-184-aws/", "first_seen_at": "2026-11-16T20:33:20+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126816", "first_seen_at": "2026-11-16T20:38:45+00:00"}]
exploit_sources: []
---

# Improper limitation of a pathname to a restricted directory in the cost report generation tool in AWS Pricing MCP…

Link for people: https://infrastack.ai/live/CVE-2026-126816 (this .md is for agents)

The cost report generator in AWS Pricing MCP Server accepts absolute paths or directory traversal sequences in its report output path, so content the AI agent controls can be written outside the intended output directory. The tool is also annotated as read-only, so MCP clients may auto-approve it without asking the user.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed version of `awslabs.aws-pricing-mcp-server` with `pip show awslabs.aws-pricing-mcp-server`; versions below `1.0.31` are affected.
- Check whether the deprecated `awslabs.cost-analysis-mcp-server` package is installed; versions `<= 1.0.5` are affected.
- Check MCP client auto-approve settings for `generate_cost_report`.

## Fix

- `awslabs.aws-pricing-mcp-server`: upgrade to `1.0.31` or later.
- `awslabs.cost-analysis-mcp-server`: no patched release will be published; migrate to `awslabs.aws-pricing-mcp-server` `1.0.31` or later.

## Timeline

- 2026-11-16T20:33:20+00:00 lab https://aws.amazon.com/security/security-bulletins/2026-184-aws/ — AWS: CVE-2026-126816 Bulletin for AWS Pricing MCP Server - AWS
- 2026-11-16T20:38:45+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126816

## Documents

- [advisory] AWS: CVE-2026-126816 Bulletin for AWS Pricing MCP Server - AWS https://aws.amazon.com/security/security-bulletins/2026-184-aws/
- [advisory] Vendor advisory: github.com https://github.com/awslabs/mcp/security/advisories/GHSA-mqm3-w68j-75mw
- [advisory] AWS Security Bulletins: CVE-2026-126816 - Path traversal and arbitrary file write in the cost report generator of aws-pricing-mcp-server https://aws.amazon.com/security/security-bulletins/rss/2026-184-aws/

## From the sources

CVE-2026-126816 Bulletin for AWS Pricing MCP Server - AWS

### CVE-2026-126816 - Path traversal and arbitrary file write in the cost report generator of aws-pricing-mcp-server

Bulletin ID: 2026-184-AWS Scope: AWS Content Type: Important (requires attention) Publication Date: 11/16/2026 12:00 PM PST

 Description:

AWS Pricing MCP Server is an open source Model Context Protocol (MCP) server that provides real-time AWS pricing information and cost analysis capabilities to AI assistants.

We identified CVE-2026-126816, an issue in the cost report generation tool of AWS Pricing MCP Server before version 1.0.31. An actor who can influence the MCP agent might be able to write actor controlled content to locations outside the intended output directory via absolute paths or directory traversal sequences in the report output path. The tool was also annotated as read-only, which can lead MCP clients to auto-approve it without user confirmation.

Impacted versions:

- awslabs.aws-pricing-mcp-server < 1.0.31
- awslabs.cost-analysis-mcp-server <= 1.0.5

Resolution:

This issue has been addressed in awslabs.aws-pricing-mcp-server version 1.0.31. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes. Users of the deprecated awslabs.cost-analysis-mcp-server package should migrate to awslabs.aws-pricing-mcp-server version 1.0.31 or later, as no patched release of that package will be published.

Workarounds:

Users unable to upgrade should remove generate_cost_report from any auto-approve configuration in their MCP client, so that each invocation requires explicit confirmation and the output path can be checked before approving. Users should also avoid passing untrusted content to the agent.

References:

- CVE-2026-126816
- GHSA-mqm3-w68j-75mw

Acknowledgement:

We would like to thank Ryan von Brubeck for collaborating on this issue through the coordinated vulnerability disclosure process.

 Please email aws-security@amazon.com with any s ecurity questions or concerns.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
