Skip to main content
Menu
Advisories

Sensitive data redaction bypass in the troubleshooting tool in Amazon ECS MCP Server

GHSA-PPC7-5JF2-GCFCPublished Updated GitHub

Description

Amazon ECS MCP Server is an open-source Model Context Protocol server that lets AI agents and assistants manage and troubleshoot Amazon ECS workloads using the operator's AWS credentials. An issue exists where, under certain circumstances, the troubleshooting tool of the Amazon ECS MCP Server returns cleartext container environment variable values and secret references from ECS task definitions even when the server's sensitive data setting is configured to redact them.

Impact

A remote actor who can place content that the operator's AI agent processes, for example through prompt injection, might cause the agent to request troubleshooting guidance and obtain cleartext environment variable values and secret references from the operator's ECS task definitions. The issue requires the operator to have the agent process the actor's content, and it is limited to task definitions the operator's AWS credentials can describe. The affected tool is read-only and does not modify ECS resources, and the server uses a local stdio transport by default.

Impacted versions: < 0.1.36

Patches

This issue has been addressed in awslabs.ecs-mcp-server version 0.1.36. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes. Users should also rotate any credentials stored as plaintext task definition environment variables.

Workarounds

None. Upgrade to 0.1.36 or later.

References

If you have any questions or comments about this advisory, we ask that you contact AWS Security via our vulnerability reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.

Acknowledgement

We would like to thank Liu-tong for collaborating on this issue through the coordinated vulnerability disclosure process.

Affected versions

References

GitHub · awslabs/mcp