Research · AI security · MCP · AWS
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.
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 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.)
Two environment variables control how much the server will do, and the project’s documentation 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.”
What ALLOW_SENSITIVE_DATA=false is documented to do
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.”
From a line of text to your task definition's secrets
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.
How bad is it
CVE-2026-135614 in numbers
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”, 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.
- Upgrade
awslabs.ecs-mcp-serverto 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. - Rotate any credentials stored as plaintext environment variables in ECS task definitions.
- If you forked the server or copied its code, patch the copy. AWS calls this out in the bulletin.
The rest is our advice.
- 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.
- 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.
- 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. - 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
falsewhen 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 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 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, bulletin 2026-200-AWS, 24 November 2026.
- OpenCVE, 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”, description and review comment.
- AWS Labs, Amazon ECS MCP Server documentation: tools, the two settings and their defaults, production guidance.
- PyPI, awslabs.ecs-mcp-server: latest version and release history.
- Irregular, research index: title, date and summary of “Monitoring as Feedback”, 26 November 2026.