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

Medium 6.8 Published Updated

An actor influencing the MCP agent can write files outside the output directory via traversal in cost report paths; AWS Pricing MCP Server users should care.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Harmful if only installed
No
Needs a specific call
No
Fix
None listed

What is CVE-2026-126816?

CVE-2026-126816 is a medium-severity path traversal vulnerability in aws-pricing-mcp-server, published on 16 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Improper limitation of a pathname to a restricted directory in the cost report generation tool in AWS Pricing MCP Server (aws-pricing-mcp-server) before 1.0.31 might allow an actor who can influence the MCP agent to write actor controlled content to arbitrary locations outside the intended output directory via absolute paths or directory traversal sequences in the report output path.

To remediate this issue, users should upgrade to version 1.0.31 or later. Users of the deprecated awslabs.cost-analysis-mcp-server package should migrate to awslabs.aws-pricing-mcp-server version 1.0.31 or later.

Weakness: CWE-357, CWE-22

Which versions are affected by CVE-2026-126816?

An affected version is exposed as installed. No special setting or call is needed.

How do I fix CVE-2026-126816?

No fix has been published for CVE-2026-126816 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-126816 being exploited?

There is no known exploitation of CVE-2026-126816 in the wild and no public exploit code.

Sources

Is CVE-2026-126816 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free