# We run the Amazon ECS MCP Server with ALLOW_SENSITIVE_DATA left off, so we assumed it never returned environment variable values or secret references from our task definitions. AWS just published CVE-2026-135614 saying the troubleshooting tool could return them anyway. What leaked, which version fixes it, and what do we need to do besides upgrading?

**Short answer:** Yes, before version 0.1.36. AWS published GHSA-ppc7-5jf2-gcfc (CVE-2026-135614, medium, CVSS 3.1 5.5) on November 24, 2026 for the pip package awslabs.ecs-mcp-server. Under certain circumstances the server's troubleshooting tool returned cleartext container environment variable values and secret references from ECS task definitions even when the ALLOW_SENSITIVE_DATA setting was off and should have redacted them. The advisory's scenario is prompt injection: content the agent reads asks it to request troubleshooting guidance, and the values come back in the tool result. It's limited to task definitions your AWS credentials can describe, and the tool doesn't change anything. The fix, released in 0.1.36 on PyPI on September 22, 2026, two months before the advisory, applies one redaction policy to every tool that returns container configuration. There's no workaround: upgrade, and rotate any credentials stored as plain environment variables in task definitions.

## Checklist
1. Check the installed version of awslabs.ecs-mcp-server. Versions before 0.1.36 are affected; PyPI listed 0.1.39 as the newest release on November 24, 2026.
2. If you run it with uvx and @latest, restart the MCP client so it fetches the current release, then confirm the version the process actually loaded. A pinned version or a cloned repository won't update on its own.
3. Rotate every credential stored as a plain environment variable in any task definition the server's AWS credentials could describe. The advisory asks for this, because an earlier tool result may already sit in a chat log, a trace or a model provider's records.
4. Move those values into Secrets Manager or SSM Parameter Store and reference them with valueFrom, so a task definition holds a pointer, not the secret. After the fix, the references are redacted too.
5. Give the server read-only, least-privilege credentials and limit them to the clusters and task definition families it needs. Leave ALLOW_WRITE off unless you need it.
6. Don't point an agent with this server at untrusted content, such as issue text, web pages or logs from outside, while it has your AWS credentials.
7. After upgrading, test the setting: with ALLOW_SENSITIVE_DATA off, ask for troubleshooting guidance on a test service whose task definition has a dummy environment value, and check that the result shows [REDACTED].

## What is CVE-2026-135614 in the Amazon ECS MCP Server?
- The Amazon ECS MCP Server lets an AI assistant manage and troubleshoot ECS workloads with the operator's AWS credentials. Its README describes ALLOW_SENSITIVE_DATA, off unless you turn it on, as the switch for tools that return logs and detailed resource information. AWS's advisory GHSA-ppc7-5jf2-gcfc, published November 24, 2026, says that under certain circumstances the troubleshooting tool returned cleartext container environment variable values and secret references from ECS task definitions even with that setting configured to redact them. It's filed under CWE-212, sensitive information not removed before it's shared.
- The advisory describes the path: a remote actor places content that the operator's agent processes, for example through prompt injection, and the agent asks for troubleshooting guidance and gets the values back. It needs the operator's agent to read that content, it only reaches task definitions the operator's credentials can describe, the tool is read-only and changes nothing in ECS, and the server uses a local stdio transport by default.

## How does Amazon ECS MCP Server 0.1.36 fix CVE-2026-135614?
- The fix is pull request 4623 in awslabs/mcp, merged September 19, 2026, and released in 0.1.36 on September 22. Its commit message says it moved redaction into shared helpers and applied it to find_task_definitions, which the troubleshooting guidance uses, and to the Express Mode service describe call, so every tool that returns container configuration follows the same rule as DescribeTaskDefinition already did.
- The new code redacts by field rather than by tool: environment variable values, environment file locations, secret and credential references (valueFrom, credentialsParameter), credential spec ARNs and ExecuteCommand session tokens, wherever they appear in a response. Names are kept and values become [REDACTED]. Tests added with the fix read the ECS API model to check that every secret-like field is covered.
- The README now spells out what the setting does when it's off: the troubleshooting actions that fetch logs, service events, task failures and network settings return an error, and the other responses from ecs_resource_management, troubleshooting guidance and delete_app have those values redacted.

## Why should you test an MCP server's redaction setting instead of trusting it?
- A redaction switch is only as good as the code paths it covers. Here the main describe call honored the setting and a helper that a second tool used didn't, so the same task definition came back redacted from one tool and in cleartext from another. Nothing in the tool result told the user which one they got.
- Prompt injection turns that gap into a leak: the attacker doesn't need your AWS keys, only the agent's willingness to call a read-only tool. The durable fixes are on your side as well as the server's: keep secrets out of plain environment variables, scope credentials tightly, and check the setting with a dummy value after every upgrade.

## Ask Rightshold (free, no key)
Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code (one-click setup: https://www.rightshold.com/start?ref=seo), then ask: "We upgraded the Amazon ECS MCP Server past the CVE-2026-135614 fix and rotated the credentials that were stored as plain environment variables in our task definitions. Record that change so we have a dated entry outside our own logs."

```json
{
  "tool": "record_action",
  "arguments": {
    "action_type": "security.credential_rotated",
    "outcome": "success",
    "occurred_at": "2026-11-24T23:30:00Z",
    "client_event_id": "ecs-mcp:upgrade-rotate-2026-11-24",
    "summary": "awslabs.ecs-mcp-server upgraded to 0.1.39 (CVE-2026-135614 / GHSA-ppc7-5jf2-gcfc fixed in 0.1.36); credentials stored as plain task definition environment variables rotated and moved to Secrets Manager references; ALLOW_SENSITIVE_DATA off and checked with a dummy value"
  }
}
```
- Needs your API key (or accept_terms:true once to open a free account; the key comes back once). It returns a ledger-committed receipt of what you submitted and when. It proves the entry was recorded, not that the upgrade or rotation happened as described.
- Keep secrets, account IDs you'd rather not publish and customer details out of summary, because recorded events can't be edited or deleted. To keep details private, hash a sidecar file and send action_sha256 (64-character hex) instead.

_Rightshold isn't affiliated with AWS. It doesn't scan MCP server code, read your task definitions or check IAM permissions, and a recorded entry isn't a finding that a setup is safe. Advisory details are as published by AWS in the awslabs/mcp repository's advisory GHSA-ppc7-5jf2-gcfc, the fix as described in pull request 4623, the setting as described in the server's README, and release dates as listed on PyPI, all read November 24, 2026; advisories get updated, so confirm fixed versions on the linked pages._

## Sources
- [awslabs/mcp security advisory GHSA-ppc7-5jf2-gcfc / CVE-2026-135614: sensitive data redaction bypass in the troubleshooting tool in Amazon ECS MCP Server](https://github.com/awslabs/mcp/security/advisories/GHSA-ppc7-5jf2-gcfc)
- [awslabs/mcp pull request 4623: fix(ecs-mcp-server): apply sensitive data redaction consistently](https://github.com/awslabs/mcp/pull/4623)
- [Amazon ECS MCP Server README (ALLOW_SENSITIVE_DATA, ALLOW_WRITE, tool risk table)](https://github.com/awslabs/mcp/blob/main/src/ecs-mcp-server/README.md)
- [PyPI: awslabs.ecs-mcp-server release history](https://pypi.org/project/awslabs.ecs-mcp-server/#history)

## Related
- [Can prompt injection make the Amazon MQ MCP server send broker credentials to another host? CVE-2026-18655](https://www.rightshold.com/answers/can-prompt-injection-make-the-amazon-mq-mcp-server-send-broker-credentials-to-another-host-cve-2026-18655)
- [How to test that MCP tool errors don't leak secrets](https://www.rightshold.com/answers/how-to-test-that-mcp-tool-errors-dont-leak-secrets)
- [How to stop prompt injection in fetched content from triggering MCP write tools](https://www.rightshold.com/answers/how-to-stop-prompt-injection-in-fetched-web-or-file-content-from-triggering-mcp-write-tools)
- [How to pin MCP server versions and review changes before upgrading](https://www.rightshold.com/answers/how-to-pin-mcp-server-versions-and-review-changes-before-upgrading)

_Not legal advice. Updated 2026-11-24. JSON: https://www.rightshold.com/answers/can-prompt-injection-get-secrets-from-the-amazon-ecs-mcp-server-when-redaction-is-on-cve-2026-135614.json_