CVE-2026-85654

Code injection in the CDK generator in Amazon awslabs.dynamodb-mcp-server

Published Sep 4, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The flaw lies in improper neutralization of special elements in the template engine that the CDK generator of Amazon awslabs.dynamodb-mcp-server uses prior to version 2.1.6. An attacker who controls a data model file can inject special template syntax in table, index, or attribute names, leading the CDK generator to evaluate the injected content during application build and execute arbitrary code on the host that performs the deployment. The primary impact is remote code execution with the privileges of the deployment process, potentially giving full control of the build machine and the infrastructure it creates. The weakness corresponds to CWE‑1336: Improper Neutralization of Special Elements Used in a Template Engine.

Affected Systems

All installations of Amazon awslabs.dynamodb-mcp-server released before 2.1.6 are affected. The vulnerability is referenced in the AWS 2026‑097 security bulletin and the Python package distributor lists the vulnerable release at version 2.1.5. Administrators running the CDK generator for DynamoDB model deployment should verify their version and update if necessary.

Risk and Exploitability

Based on the description, it is inferred that the likely attack vector is an actor who can supply or modify the data model file. The CVSS score for this vulnerability is 7.1, indicating high severity. EPSS is not available, but because the flaw is exercised during the CDK generation phase, a local actor who can influence the data model file has an avenue to exploit the issue. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires that the attacker can supply or modify a data model file that the CDK generator processes; once the malicious content is embedded, the code runs with the same privileges as the build process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Amazon awslabs.dynamodb-mcp-server to version 2.1.6 or later, which contains the template neutralization fix.
  • If an upgrade cannot be performed immediately, review any data model files for suspicious template syntax in names and sanitize or escape them prior to generation.
  • Restrict access to the CDK generation environment so that only trusted users can supply data model files, mitigating the possibility of injection from untrusted sources.

Generated by OpenCVE AI on September 4, 2026 at 21:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Code injection in the CDK generator in Amazon awslabs.dynamodb-mcp-server
First Time appeared Amazon
Amazon awslabs.dynamodb-mcp-server
Weaknesses CWE-1336
CPEs cpe:2.3:a:amazon:awslabs.dynamodb-mcp-server:*:*:*:*:*:*:*:*
Vendors & Products Amazon
Amazon awslabs.dynamodb-mcp-server
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.1, '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'}

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

Sources

Status
PUBLISHED
Assigner
AMZN
Published
Updated
Sep 4, 2026, 6:32 PM
Reserved
Sep 4, 2026, 1:13 PM
Status
Awaiting Analysis
Published
Sep 4, 2026, 6:18 PM
Modified
Sep 8, 2026, 2:00 PM