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.

6 min read

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

1Task logsfetch_task_logserror
2Service eventsfetch_service_eventserror
3Task failuresfetch_task_failureserror
4Network configurationfetch_network_configurationerror
5Resource managementecs_resource_management, read operationsredacted
6Troubleshooting guidancethe guidance action, cleartext before 0.1.36the gap
Source: the Amazon ECS MCP Server documentation and AWS bulletin 2026-200-AWS, read 1 December 2026. Row order is ours.

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

1. Text the agent readsA log line, a ticket, a README or a web page carries an instruction
prompt injection
2. The agent asks for helpIt calls the troubleshooting tool for guidance on a service
guidance action
3. The server reads task definitionsUsing whatever AWS credentials it was started with
your IAM role
4. The response skips redactionEnvironment values and secret references come back in cleartext
before 0.1.36
5. The values sit in the model's contextAny channel the agent can write to can carry them out
our reasoning
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.

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

5.5CVSS v3.1medium, scored by Amazon
6.8CVSS v4.0medium, scored by Amazon
< 0.1.36affected versionsfixed in 0.1.36
0workarounds"None. Upgrade."
Source: the CVE record as shown by OpenCVE, and AWS bulletin 2026-200-AWS, read 1 December 2026.

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.

  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.

  1. 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.
  2. 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.
  3. 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.
  4. 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 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.

Every course, one plan

Move into AI security from the role you have

34 courses, 420+ videos, labs in your browser and on AWS, Azure and Google Cloud, graded capstones and a certificate for each course.

Regular price $49now $15.99a month Or regular price $299 $149.99 once for Lifetime access. Every course, every update. Final price: nothing is added at checkout.

Enroll now Explore our courses

Every TSG course

Enroll: Monthly or Lifetime

Both plans open every course on the platform, with every lab and every future update, the day you join.

  • 34courses
  • 420+videos
  • 3clouds included
  • All 34 courses, from Learn 101 to AI Security Engineer
  • 420+ videos across AI Security Engineer and the cloud courses, plus reading pages, quizzes and handbooks
  • Browser labs, laptop labs and cloud labs on AWS, Azure and Google Cloud
  • A certificate for each course you finish, with a public verify link
  • New courses at no extra cost, and every future update

Already a member? Sign in

Choose your plan
Need an invoice for a company?

Paid by card in US dollars. Final price: nothing is added at checkout. You pay on Razorpay's secure page; we never see your card or bank details.

  • Paid on Razorpay's secure page: Card, in US dollars
  • Refund policy