Upgrade awslabs.aws-serverless-mcp-server to 0.2.1
AWS Serverless MCP Server could be steered to read or overwrite JSON files outside its folder · Security incident · Web · awscloud · Nov 2, 2026
What happened
AWS bulletin 2026-164-AWS and advisory GHSA-r6mm-377j-qg8m (2 Nov) say versions before 0.2.1 of the AWS Serverless MCP Server did not keep the project name inside its deployment-status folder. Anyone who could influence the agent could use ../ or an absolute path to make it read JSON files elsewhere on the machine into the agent's context, and, with --enable-write on, create or overwrite JSON files there. Rated Moderate (6.1). Fixed in 0.2.1; AWS lists no workaround.
How to prevent it
Keep MCP servers patched and read-only by default; only switch on write flags for the task that needs them.
Fix prompt for your own AI tool
Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.
I use the AWS Serverless MCP Server with my AI coding assistant. Help me fix CVE-2026-116635: 1) Check which version of awslabs.aws-serverless-mcp-server I run and whether I start it with --enable-write. 2) Give me the command to upgrade to 0.2.1 or later. 3) Help me turn off --enable-write unless I really need it. 4) Remind me what a prompt-injected agent could reach on this machine and check the AWS credentials it uses are least-privilege. Don't change anything until I approve.
Why this keeps happening: trusting agents & ai input
An AI agent treats everything it reads as possible instructions: a web page, a README, an email, a code comment or the output of another tool. If that content was written by an attacker, the agent can be steered into running commands, reading files or sending data somewhere it should not.
A quick checklist before you ship
- Give each agent only the tools and folders it needs for the task at hand.
- Require manual approval before it runs shell commands, sends network requests, deletes files or spends money.
- Do not open untrusted repositories or MCP configs with auto-run turned on.
- Keep API keys and production credentials out of any environment an agent can read.
More on this: every trusting agents & ai input story and our related guide.
Tools involved
Related stories
- Upgrade awslabs.aws-api-mcp-server to 1.6.0 and set AUTH_AUDIENCE
AWS API MCP Server accepted OAuth tokens issued to other apps - If you give an AI agent mcp-server-git, upgrade it to 2026.11.18 or later today, and don't point it at repos you haven't checked
mcp-server-git: six more ways a repo's own Git config could run commands, fixed in 2026.11.18 - Give AI assistant connectors their own scoped, short-lived tokens, never full session tokens
Mittwald's MCP server leaked customer session tokens, and an attacker used them to get into 56 hosting projects
Source: original post on Web ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.