Resolved

The redactor returned the secrets it was meant to hide

The Amazon ECS MCP server, even with its sensitive-data setting configured to redact, still sent container environment variables and secret references back in cleartext under some conditions. A prompt injection only had to steer the agent to ask.

Logged 26 Nov 2026

The redaction was the protection

The Amazon ECS MCP server lets an agent inspect clusters, tasks and container definitions, and it is meant to redact sensitive data before that detail reaches the model. With its sensitive-data setting configured to redact, it was supposed to strip container environment variables and secret references, so the agent could reason about a deployment without seeing the credentials inside it. Under some conditions, it did not strip them.

Even with redaction configured, the server returned the cleartext environment variables and secret references inside its responses in certain circumstances, which quietly defeats the entire purpose of a redaction layer. Because the tool relied on that redaction as its main protection, any route that reached those fields returned the very values the operator expected it to hide. The guard was cosmetic.

Prompt injection makes it reachable

A prompt injection does not need to break the server, because it only has to steer the agent into asking for the fields the redactor was supposed to cover. The agent would then fetch them using the operator's own AWS credentials, so the leak stays inside the permissions the tool was deliberately granted. The credentials did the work.

That makes the flaw a quiet one, since nothing fails and no alarm fires while the secrets travel back through a tool the operator installed on purpose. The vendor scored the issue 5.5 under CVSS 3.1 as a medium-severity local flaw, or 6.8 under CVSS 4.0, a rating that arguably understates how easily a model can be talked into making the request. The score looks low.

No workaround but a fix

Version 0.1.36 fixed the redaction, and the AWS bulletin offers no workaround for earlier releases beyond upgrading to the patched build. Operators are told to rotate any credential that sat in a plaintext environment variable, because the value may already have passed through the tool's output and into a model's context. Rotate, then upgrade.

Log take: Redaction is a promise. A tool that returns the secrets it claims to hide has taught the agent, and anyone reading its logs, exactly what it was meant to keep back. The lesson is to verify the redaction on real output rather than trusting the label, and to keep plaintext secrets out of environment variables where a tool can lift them; no exploitation has been reported.

Sources

Research