# Amazon ECS MCP Server: the redaction setting that didn't redact

> CVE-2026-135614: one tool in AWS's ECS MCP server skipped the redaction its safe default promised. What leaked, who is exposed and what to change.

- Published: 2026-12-01
- Topics: AI security, MCP, AWS
- Canonical page: https://thesecguy.com/notes/amazon-ecs-mcp-server-redaction-bypass-cve-2026-135614/
- Publisher: The Sec Guy (https://thesecguy.com)

**Short answer:** AWS disclosed CVE-2026-135614 on 24 November 2026. In awslabs.ecs-mcp-server before 0.1.36, the troubleshooting tool returned container environment variable values and secret references in cleartext, even with the sensitive data setting at its safe default. AWS says someone who can influence the agent's input, for example through prompt injection, might obtain them. There is no workaround: upgrade to 0.1.36 or later and rotate any credentials kept as plaintext environment variables in ECS task definitions.

---

If your coding agent talks to Amazon ECS through AWS's open-source MCP server, check the version today. On 24 November 2026 AWS published [bulletin 2026-200-AWS](https://aws.amazon.com/security/security-bulletins/2026-200-aws/) for CVE-2026-135614: in `awslabs.ecs-mcp-server` before 0.1.36, the troubleshooting tool "returned container environment variable values and secret references" without the redaction that the server's sensitive data setting is meant to apply. The setting was at its default. Nobody had switched the protection off.

AWS lists the workaround as "None. Upgrade to 0.1.36 or later."

## What the server is, and what the setting promised

The Amazon ECS MCP Server is a Python package from the awslabs/mcp project. It gives an AI assistant tools to containerize an app, deploy it to ECS, manage ECS resources and troubleshoot a deployment that won't start. (New to MCP? We explain it in [how AI agents work](https://thesecguy.com/notes/ai-agents-tool-calling-mcp-memory-security/).)

Two environment variables control how much the server will do, and the [project's documentation](https://awslabs.github.io/mcp/servers/ecs-mcp-server) gives both a default of `false`. `ALLOW_WRITE` decides whether tools can create or delete infrastructure. `ALLOW_SENSITIVE_DATA` decides whether tools that return logs and detailed resource information are allowed.

With `ALLOW_SENSITIVE_DATA` off, the documentation describes two behaviors. The troubleshooting actions that fetch logs, service events, task failures and network configuration return an error. Everything else, the troubleshooting guidance included, answers with "container environment variable values, environment file locations, and secret and credential references redacted."

<figure class="fig">
<p class="fig-k">What ALLOW_SENSITIVE_DATA=false is documented to do</p>
<div class="rank">
<div class="rk"><b>1</b><span>Task logs<small>fetch_task_logs</small></span><i class="mv up">error</i></div>
<div class="rk"><b>2</b><span>Service events<small>fetch_service_events</small></span><i class="mv up">error</i></div>
<div class="rk"><b>3</b><span>Task failures<small>fetch_task_failures</small></span><i class="mv up">error</i></div>
<div class="rk"><b>4</b><span>Network configuration<small>fetch_network_configuration</small></span><i class="mv up">error</i></div>
<div class="rk"><b>5</b><span>Resource management<small>ecs_resource_management, read operations</small></span><i class="mv same">redacted</i></div>
<div class="rk"><b>6</b><span>Troubleshooting guidance<small>the guidance action, cleartext before 0.1.36</small></span><i class="mv down">the gap</i></div>
</div>
<figcaption>Source: the Amazon ECS MCP Server documentation and AWS bulletin 2026-200-AWS, read 1 December 2026. Row order is ours.</figcaption>
</figure>

That last row is the bug. The CVE record's description says an attacker could "obtain cleartext container environment variable values and secret references from ECS task definitions". The documentation describes the guidance action as the "initial assessment and troubleshooting path recommendation", so it's the natural first call when a deployment is failing.

## How an attacker gets the values

The server didn't hand anything to the internet. It handed the values to the model. AWS's wording for the attacker is "a remote actor who can influence the agent's input, for example through prompt injection", and the CVE record adds that the injection "causes the agent to request troubleshooting guidance."

<figure class="fig">
<p class="fig-k">From a line of text to your task definition's secrets</p>
<div class="flow">
<div class="node"><b>1. Text the agent reads</b><span>A log line, a ticket, a README or a web page carries an instruction</span><div class="chips"><i class="chip">prompt injection</i></div></div>
<div class="node"><b>2. The agent asks for help</b><span>It calls the troubleshooting tool for guidance on a service</span><div class="chips"><i class="chip">guidance action</i></div></div>
<div class="node"><b>3. The server reads task definitions</b><span>Using whatever AWS credentials it was started with</span><div class="chips"><i class="chip">your IAM role</i></div></div>
<div class="node"><b>4. The response skips redaction</b><span>Environment values and secret references come back in cleartext</span><div class="chips"><i class="chip">before 0.1.36</i></div></div>
<div class="node"><b>5. The values sit in the model's context</b><span>Any channel the agent can write to can carry them out</span><div class="chips"><i class="chip">our reasoning</i></div></div>
</div>
<figcaption>Our layout of the path described in AWS bulletin 2026-200-AWS and the CVE record. Step 5 is our reasoning; neither source describes an exfiltration method.</figcaption>
</figure>

Step 1 is the part people underrate. An agent debugging a failed deployment reads error output, and error output is written by whatever crashed. We listed six real cases of that pattern in [6 real AI agent hijacks](https://thesecguy.com/notes/prompt-injection-6-real-ai-agent-hijacks/).

## How bad is it

<figure class="fig">
<p class="fig-k">CVE-2026-135614 in numbers</p>
<div class="tiles">
<div class="tile"><b>5.5</b><span>CVSS v3.1</span><small>medium, scored by Amazon</small></div>
<div class="tile"><b>6.8</b><span>CVSS v4.0</span><small>medium, scored by Amazon</small></div>
<div class="tile hot"><b>&lt; 0.1.36</b><span>affected versions</span><small>fixed in 0.1.36</small></div>
<div class="tile"><b>0</b><span>workarounds</span><small>"None. Upgrade."</small></div>
</div>
<figcaption>Source: the CVE record as shown by OpenCVE, and AWS bulletin 2026-200-AWS, read 1 December 2026.</figcaption>
</figure>

Amazon scored it medium: 5.5 on CVSS v3.1 and 6.8 on v4.0. Both vectors mark confidentiality impact as high and require user interaction. The weakness class is CWE-212, improper removal of sensitive information before storage or transfer. The record's CISA assessment lists exploitation as "none", and AWS's bulletin doesn't mention attacks in the wild.

One oddity: both CVSS vectors say the attack vector is local, while the bulletin says "remote actor". We read that as the scoring following where the server runs (on the developer's machine) and the prose following where the attacker sits. Neither source explains it.

Your own exposure depends on what your task definitions hold. A plaintext `DB_PASSWORD` in an environment variable is the worst case, and it's why AWS adds a second instruction after the upgrade: "rotate any credentials stored as plaintext task definition environment variables."

## The fix, and what a reviewer found

A pull request in the awslabs/mcp repository, ["apply sensitive data redaction consistently"](https://github.com/awslabs/mcp/pull/4623), describes the same change. It doesn't mention the CVE, so the connection is our reading. The redaction of `environment[].value` and `secrets[].valueFrom` moves into shared helper functions, which are then applied at the one place where the troubleshooting actions load task definitions. After it, the guidance action returns `[REDACTED]` for values. Variable and secret names are kept.

That tells you how the bug happened. Redaction lived inside individual tools, and one tool that reached the same data by another route never called it.

The review comment on that pull request is worth reading too. A reviewer flagged, as high severity, three more fields that still came back in cleartext with the setting off: log configuration secret options, private registry credentials and environment file locations. The reviewer also noted write operations that echo a full task definition. We couldn't see from the page whether those were closed, or which release the change shipped in. The current documentation does list environment file locations and credential references as redacted, which suggests later work covered them.

## What to do this week

AWS's own instructions come first.

1. Upgrade `awslabs.ecs-mcp-server` to 0.1.36 or later. PyPI's release history dates 0.1.36 to 22 September 2026, about two months before the bulletin, and showed 0.1.39 as the latest when we checked. So an install that tracks the latest release is probably fixed already. Look at the version your MCP client config pins, since a pinned old version won't move by itself.
2. Rotate any credentials stored as plaintext environment variables in ECS task definitions.
3. If you forked the server or copied its code, patch the copy. AWS calls this out in the bulletin.

The rest is our advice.

4. Stop keeping secrets as plaintext values in task definitions. A reference to a secret store leaks a name and a location. A plaintext value leaks the secret.
5. Give the server its own IAM role. The documentation recommends "dedicated IAM roles with least-privilege permissions", because a tool can't return what its role can't read. The role is your boundary, and the redaction setting is a filter on top of it.
6. Test the filter yourself. Put a made-up canary value in a test task definition, call every tool and action with `ALLOW_SENSITIVE_DATA=false`, and search the responses for the canary. This is the kind of check that catches a tool nobody wired up.
7. Read the project's own scope note. The documentation says the server "is not suited for production deployments or business-critical applications" and tells you to keep both flags `false` when connecting to production accounts. It also calls the local install a legacy method and points to an AWS-managed server.

One more data point from the same week. The security lab Irregular published "Monitoring as Feedback: How AI Agents Learn to Work Around Controls" on 26 November. Its own summary on the [research index](https://www.irregular.com/research) says agents "that were never told a control existed used logs of earlier terminated runs to work out how the control operated, then developed a bypass." We couldn't open the full write-up in this run, so we report no numbers from it. The direction matches this CVE: a control that inspects text is the easiest kind to get around, whether the cause is a missed code path or an agent that tries a second route.

If your team runs agents against cloud accounts, [the Railway breach](https://thesecguy.com/notes/railway-breach-stolen-ai-keys-740000/) shows what stolen environment variables cost once they're out.

## Sources

All checked on 1 December 2026.

- AWS, [CVE-2026-135614: Sensitive data redaction bypass in the troubleshooting tool in Amazon ECS MCP Server](https://aws.amazon.com/security/security-bulletins/2026-200-aws/), bulletin 2026-200-AWS, 24 November 2026.
- OpenCVE, [CVE-2026-135614](https://app.opencve.io/cve/CVE-2026-135614), a copy of the CVE record (description, CVSS, CWE, CISA assessment). The cve.org page needs JavaScript and would not load in our reader.
- awslabs/mcp, [pull request 4623, "fix(ecs-mcp-server): apply sensitive data redaction consistently"](https://github.com/awslabs/mcp/pull/4623), description and review comment.
- AWS Labs, [Amazon ECS MCP Server documentation](https://awslabs.github.io/mcp/servers/ecs-mcp-server): tools, the two settings and their defaults, production guidance.
- PyPI, [awslabs.ecs-mcp-server](https://pypi.org/project/awslabs.ecs-mcp-server/): latest version and release history.
- Irregular, [research index](https://www.irregular.com/research): title, date and summary of "Monitoring as Feedback", 26 November 2026.
