{"question":"We use the AWS API MCP Server with a security policy file that blocks some AWS CLI commands and asks before others. We read that CVE-2026-16584 let blocked commands run if something went wrong at startup. What happened, which version fixes it, and how do we check that our policy is actually being applied?","slug":"does-the-aws-api-mcp-server-still-enforce-its-deny-list-if-startup-goes-wrong-cve-2026-16584","url":"https://www.rightshold.com/answers/does-the-aws-api-mcp-server-still-enforce-its-deny-list-if-startup-goes-wrong-cve-2026-16584","short_answer":"Not before version 1.3.47. The server's optional security policy (denyList and elicitList in ~/.aws/aws-api-mcp/mcp-security-policy.json) depends on an index of read-only AWS operations that the server loads once at startup from AWS's service reference endpoint, with a 5-second request timeout. In versions 0.2.13 up to 1.3.47, if that load threw an error, such as a brief network problem, the server logged a warning and kept running without the index, and every later call skipped the policy check for the life of the process. AWS's advisory (GHSA-29w2-fq35-v728, CVE-2026-16584, high, CVSS 4.0 7.3, CWE-455, a process that keeps running after its setup goes wrong, published July 23, 2026) says deny and confirm rules were then not consulted and the operations they were meant to restrict ran unchecked. IAM permissions on the server's credentials still applied. Version 1.3.47, released July 22, 2026 (pull request 4315), refuses to start when the index can't load and denies calls if it is ever missing. Upgrade (PyPI listed 1.6.1 as newest on November 23, 2026; 1.5.1 and 1.6.0 fix two later advisories), and keep IAM as the real limit.","checklist":["Check the installed version of awslabs.aws-api-mcp-server. 0.2.13 up to 1.3.46 are affected and 1.3.47 is the first fixed release. Go to 1.6.1 or later to also pick up the fixes for the later operation-name matching (CVE-2026-125271, fixed in 1.5.1) and OAuth audience (CVE-2026-115413, fixed in 1.6.0) advisories.","If an affected version ran with a security policy file, search its logs for a warning that the read operations index couldn't be loaded. A process that logged it ran with the deny and confirm lists skipped until it was restarted.","Restart any affected server that started during a network outage, or with no route to AWS's service reference endpoint. The advisory's workaround is to restart once connectivity is back so the index loads.","Give the server least-privilege IAM credentials scoped to the task, such as a read-only role. The advisory notes IAM stayed in force throughout, and the README calls IAM the primary control.","After upgrading, test the policy instead of assuming it: ask the assistant to run one command that is on your denyList and confirm it is refused, and one on your elicitList and confirm you are asked first.","On 1.3.47 and later, a server that can't reach the endpoint at startup will exit instead of running unguarded. If you run it in restricted networks, allow that endpoint or expect the server not to start.","If you build MCP servers with policy features, make policy setup a startup requirement: if the data needed to decide allow or deny can't load, refuse to serve rather than carrying on with a warning."],"sections":[{"heading":"What CVE-2026-16584 in the AWS API MCP Server is","points":["AWS published GHSA-29w2-fq35-v728 (CVE-2026-16584) on July 23, 2026 for the pip package awslabs.aws-api-mcp-server, versions 0.2.13 up to but not including 1.3.47, patched in 1.3.47. It is rated high (CVSS 4.0 7.3) and filed under CWE-455, a process that keeps running after its setup goes wrong. The server lets an assistant run AWS CLI commands through a call_aws tool, and an optional policy file can block commands outright (denyList) or require the user's consent first (elicitList).","To apply that policy, the server builds an index of read-only operations at startup by fetching AWS's service reference documents from servicereference.us-east-1.amazonaws.com. In the affected versions, if that step threw an error, the server logged a warning, set the index to nothing and carried on. The per-call policy check only ran when the index existed, so every call after that skipped the denyList and elicitList until the process restarted.","The advisory says the configured deny and confirm rules were not consulted and AWS API operations the policy was meant to restrict executed without enforcement. It also limits the scope: only this policy gate was skipped, and IAM permissions on the configured credentials still bounded what the server could do. In the code before the fix, that path still checked two environment settings: with READ_OPERATIONS_ONLY on it refused every call, and with REQUIRE_MUTATION_CONSENT on it asked before every call. Without either, calls ran with the policy file ignored."]},{"heading":"How version 1.3.47 fixes it","points":["The fix is pull request 4315 in awslabs/mcp, \"Security Policy Bypass via Startup Initialization Failure\", merged July 22, 2026, and PyPI shows 1.3.47 uploaded the same day. The changelog entry reads: fail closed when security policy enforcement data cannot be initialized at startup.","Two changes do this. At startup, an index load that throws is now logged as an error and the server refuses to start. At call time, if the index is missing for any reason, call_aws denies the request with an error instead of running it. A test added with the fix checks that a call such as aws iam create-access-key is denied when the index is absent.","This is one of several 2026 advisories for this server. CVE-2026-125271 (fixed in 1.5.1) covered names in the deny list that never matched because of how operation names were converted, and CVE-2026-115413 (fixed in 1.6.0) covered OAuth tokens issued to other apps. Each fix sits in a different version, so upgrade to the newest release, not just past 1.3.47."]},{"heading":"Why an MCP server's safety checks should fail closed","points":["A policy that only applies when its supporting data loaded is a policy that can disappear quietly. A warning line in a log is easy to miss, and the server still answers every tool call normally, so neither the user nor the client sees that the guard is gone.","Failing closed means the server stops, or refuses each call, when it can't make a policy decision. That can cost availability, which is why AWS's README keeps IAM as the main control and the policy file as an extra layer. The useful habit for anyone running MCP servers is to test the guard after every upgrade and restart, with one call it should block and one it should ask about, rather than trusting the config file alone.","When you vet an MCP server's safety settings, look at what its code does when a dependency is unreachable at startup: a network fetch, a policy file that won't parse, a missing key. If it logs and continues, treat the setting as advisory until the project changes it."]}],"checks":[],"ask_rightshold":{"start":"https://www.rightshold.com/start?ref=seo","mcp_endpoint":"https://www.rightshold.com/mcp","ask":"Before my assistant runs any AWS CLI command on my denyList or elicitList through the AWS API MCP Server, ask me to approve that exact command and wait for my yes or no.","mcp_call":{"tool":"request_human_approval","arguments":{"action":{"tool":"call_aws","mcp_server":"awslabs.aws-api-mcp-server","server_version":"1.6.1","cli_command":"aws iam create-access-key --user-name <user name>"},"summary":"Create one IAM access key through the AWS API MCP Server","expires_in_minutes":30}},"also":["Needs a key for your account. It hashes the action details and returns an approval id and a one-time token for the owner. Only the account owner can decide it, with an account key; delegated agent keys are refused, so the assistant can't approve its own request. Anyone can check the signed decision free with verify_human_approval, including that the action matches what was approved.","It doesn't check your server version, read your policy file or stop a call a client sends straight to the AWS API MCP Server. It only covers calls your agent or harness routes through it first, so upgrade and keep the server's IAM credentials narrow as well."],"scope":"Rightshold isn't affiliated with AWS or the awslabs/mcp project. It doesn't scan MCP server code, read your security policy file or check IAM permissions, and an approval record isn't a finding that a call is safe. Advisory details are as published by AWS (GHSA-29w2-fq35-v728), the fix as described in pull request 4315 and the project's changelog, the startup behaviour as written in the server's source at that commit, settings as described in the project's README, and release dates as listed on PyPI, all read November 23, 2026; advisories get updated, so confirm fixed versions on the linked pages."},"sources":[{"title":"GitHub Advisory: GHSA-29w2-fq35-v728 / CVE-2026-16584, AWS API MCP Server security policy bypass via startup initialization failure","url":"https://github.com/advisories/GHSA-29w2-fq35-v728"},{"title":"awslabs/mcp pull request 4315: Security Policy Bypass via Startup Initialization Failure","url":"https://github.com/awslabs/mcp/pull/4315"},{"title":"AWS API MCP Server changelog (1.3.47 security entry)","url":"https://github.com/awslabs/mcp/blob/main/src/aws-api-mcp-server/CHANGELOG.md"},{"title":"AWS API MCP Server README (security policy file, denyList, elicitList, READ_OPERATIONS_ONLY)","url":"https://github.com/awslabs/mcp/blob/main/src/aws-api-mcp-server/README.md"},{"title":"PyPI: awslabs.aws-api-mcp-server release history","url":"https://pypi.org/project/awslabs.aws-api-mcp-server/#history"}],"related":[{"title":"Why an MCP server's tool deny list can silently miss dangerous calls","url":"https://www.rightshold.com/answers/why-an-mcp-servers-tool-deny-list-can-silently-miss-dangerous-calls"},{"title":"Can an OAuth token issued to another app reach the AWS API MCP Server? CVE-2026-115413","url":"https://www.rightshold.com/answers/can-an-oauth-token-issued-to-another-app-reach-the-aws-api-mcp-server-cve-2026-115413"},{"title":"Requiring human confirmation before MCP write tools run","url":"https://www.rightshold.com/answers/how-to-require-human-confirmation-before-mcp-write-tools-run"}],"computed_from":"Curated guidance; license verdicts computed from Rightshold's license profiles at render time. Not legal advice.","updated":"2026-11-23"}