What happened
The troubleshooting tool in the Amazon ECS MCP Server before 0.1.36 does not properly remove sensitive information, so a remote actor who can influence the agent's input can obtain cleartext container environment-variable values and secret references from ECS task definitions that the server's sensitive-data setting is meant to redact — reachable via prompt injection that makes the agent request troubleshooting guidance. Published 2026-11-24; fixed in 0.1.36.
Why it matters
This is a concrete prompt-injection-to-credential-exfiltration path in an official AWS MCP server: a prompt-injected agent running in an environment with ECS access can be steered into dumping secret environment variables, which an attacker can then use to pivot into the workload's infrastructure.
Attack vector
An attacker who can influence the agent's input (e.g. via prompt injection or untrusted content in the agent's context) causes the agent to request troubleshooting guidance; the ECS MCP Server troubleshooting tool returns cleartext container environment-variable values and secret references from ECS task definitions, bypassing the server's intended sensitive-data redaction (CWE-212; CVSS 3.1 5.5).
Affected systems
awslabs.ecs-mcp-server < 0.1.36
Mitigation
Upgrade to awslabs.ecs-mcp-server 0.1.36 or later and rotate any credentials stored as plaintext task-definition environment variables. AWS bulletin: https://aws.amazon.com/security/security-bulletins/2026-200-aws/