CVE-2026-135614: Amazon ECS MCP Server's troubleshooting tool returned cleartext task-definition environment variables and secret references despite the redaction setting, reachable through prompt injection (fixed 0.1.36)
The Amazon ECS MCP Server (awslabs.ecs-mcp-server) lets AI agents manage and troubleshoot ECS workloads with the operator's AWS credentials, and has a sensitive-data setting meant to redact secrets. Before 0.1.36, its troubleshooting tool could still return cleartext container environment variable values and secret references from ECS task definitions. Someone who can put content in front of the operator's agent could use prompt injection to make it ask for troubleshooting guidance and get those values. The tool is read-only, limited to task definitions the credentials can describe, and the server uses local stdio by default. Fixed in 0.1.36; rotate any credentials stored as plaintext task-definition environment variables.
What it is
Affected: awslabs.ecs-mcp-server (PyPI) before 0.1.36; fixed in 0.1.36 (AWS security bulletin 2026-200-AWS, GHSA-ppc7-5jf2-gcfc). Credit: Liu-tong.
Precondition: the operator's agent processes attacker-controlled content (prompt injection) while the ECS MCP Server is connected.
Exposed data: environment variable values set in plaintext in ECS task definitions, and secret references from those task definitions.
GitHub and NVD published the advisory and CVE on 24 November 2026.
How to check
- Check the installed version (pip show awslabs.ecs-mcp-server, or the version pinned in your MCP client config's uvx command): before 0.1.36 is affected.
- List ECS task definitions the server's credentials can describe that hold secrets as plaintext environment variables.
How to fix
- Upgrade awslabs.ecs-mcp-server to 0.1.36 or later.
- Rotate credentials stored as plaintext task-definition environment variables and move them to Secrets Manager or Parameter Store references.
- Give the MCP server's AWS role only the read access it needs, and don't run it in sessions where the agent reads untrusted content.
pip show awslabs.ecs-mcp-server | grep -i ^version
# or pin it in the MCP client config:
uvx [email protected] Sources
- criticalCVE-2026-87911: AWS postgres-mcp-server's read-only mode can be bypassed to run OS commands
- highCVE-2026-142134: AWS HealthOmics MCP Server ran its workflow linters inside the workflow bundle's folder, so a crafted bundle could shadow Python modules and run code (fixed 0.1.10)
- highCVE-2026-115413: AWS API MCP Server accepted OAuth tokens issued to other apps, letting them run AWS commands with the server's credentials
- mediumCVE-2026-130901: AWS Labs Document Loader MCP Server skipped its base-directory restriction when CI or test environment variables were set, letting crafted documents read files outside it and write PNG slides elsewhere (fixed 1.0.21)