ZeroHour

CVE-2026-85654

niche

Template injection in Amazon awslabs.dynamodb-mcp-server CDK generator

CVSS 4.0
7.1 high
EPSS
<1%p4
Published
()
Modified
AI analysis

Improper neutralization of special elements in the template engine of the CDK generator in Amazon's awslabs.dynamodb-mcp-server allows template injection through table, index, or attribute names defined in a data model file (CWE-1336). A context-dependent actor — for example an AI agent or untrusted data source able to influence that data model file — can craft these names so that executable code is embedded into the generated CDK project. When the generated application is deployed, the injected code executes on the host performing the deployment, giving the attacker arbitrary code execution in that local context. Only users running awslabs.dynamodb-mcp-server versions before 2.1.6 who generate and deploy CDK applications from data model files are affected; the flaw requires local generation/deployment activity, not exposure of a network service. No public proof-of-concept, KEV listing, or in-the-wild exploitation is known, and EPSS estimates only about a 0.1% probability of exploitation in the next 30 days.

What to do: Upgrade awslabs.dynamodb-mcp-server to version 2.1.6 or later. Until upgraded, review table, index, and attribute names in data model files (especially ones supplied by AI agents or untrusted sources) for template/inline-code syntax, and inspect generated CDK code before running a deployment. Restrict which MCP-connected clients are allowed to feed data models into the CDK generator.

Affected
Amazon (AWS Labs) awslabs.dynamodb-mcp-serverall versions before 2.1.6
Estimated exposure
nichelikely at most on the order of tens of thousands of developer installations; no public install counts are available — No usage metrics were provided, but this is one of many opt-in AWS Labs MCP servers that must be deliberately installed and configured by developers to integrate DynamoDB with AI assistants, so the exposed population is a small subset of…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Improper neutralization of special elements used in a template engine in the CDK generator in Amazon awslabs.dynamodb-mcp-server before 2.1.6 might allow a context-dependent actor to execute arbitrary code on the host that deploys the generated application via crafted table, index, or attribute names in a data model file.

Weakness
CWE-1336
Vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.