<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Aws-Cdk - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/aws-cdk/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Tue, 21 Jul 2026 19:09:16 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/aws-cdk/feed.xml" rel="self" type="application/rss+xml"/><item><title>OS Command Injection in AWS CDK NodejsFunction Docker Bundling (CVE-2026-13760)</title><link>https://feed.craftedsignal.io/briefs/2026-07-os-command-injection-aws-cdk-lib/</link><pubDate>Tue, 21 Jul 2026 19:09:16 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-os-command-injection-aws-cdk-lib/</guid><description>An OS command injection vulnerability, CVE-2026-13760, in AWS CDK's `aws-cdk-lib` package before version 2.260.0 allows an attacker to execute arbitrary commands on the host running the CDK toolchain by injecting shell metacharacters into dependency version strings within a project's `package.json` file when using Docker-based NodejsFunction bundling.</description><content:encoded><![CDATA[<p>A high-severity OS command injection vulnerability, CVE-2026-13760, has been identified in the <code>aws-cdk-lib</code> package of the AWS Cloud Development Kit (CDK) framework, affecting versions prior to 2.260.0. This flaw allows an actor to execute arbitrary commands on the host system running the CDK toolchain if they can control dependency version strings in a project's <code>package.json</code> file. The vulnerability specifically impacts Docker-based Lambda bundling when the <code>nodeModules</code> option is specified. During this process, <code>NodejsFunction</code> constructs a shell command string using module version strings without proper sanitization. An attacker can leverage this by embedding shell metacharacters in a controlled version string, leading to command execution within the bundling container. Since the container has read/write bind mounts to the host filesystem, this effectively grants the attacker arbitrary code execution on the host with the privileges of the user executing <code>cdk synth</code>, <code>cdk deploy</code>, or <code>cdk diff</code>.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains control over dependency version strings in a project's <code>package.json</code> file, potentially via a compromised or untrusted npm package referenced through <code>nodeModules</code>.</li>
<li>The attacker inserts shell metacharacters (e.g., <code>;</code>, <code>|</code>, <code>&amp;&amp;</code>) into one of the controlled dependency version strings.</li>
<li>A developer or CI/CD pipeline uses <code>aws-cdk-lib</code> with <code>NodejsFunction</code> and Docker-based bundling, with the <code>nodeModules</code> option specified, to deploy their cloud infrastructure.</li>
<li>During the bundling process, the CDK toolchain processes the <code>package.json</code> file to assemble a shell command string for operations inside the Docker container.</li>
<li>The <code>NodejsFunction</code>'s internal <code>OsCommand</code> helper interpolates the malicious dependency version string into the shell command without proper escaping.</li>
<li>The bundling container executes the crafted shell command via <code>bash -c</code>, which interprets the injected shell metacharacters as distinct commands.</li>
<li>Arbitrary commands specified by the attacker are executed within the bundling container, leveraging its access to the host filesystem via read/write bind mounts.</li>
<li>The injected commands execute on the host machine, typically with the privileges of the user who initiated the <code>cdk synth</code>, <code>cdk deploy</code>, or <code>cdk diff</code> command.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-13760 allows an attacker to achieve arbitrary code execution on the developer's workstation or CI/CD environment where the AWS CDK toolchain is executed. This can lead to complete compromise of the build environment, exfiltration of sensitive source code, AWS credentials, or other intellectual property. The attacker gains the privileges of the user running the <code>cdk</code> commands, which can often be elevated, posing a significant supply chain risk. While no specific victim counts or sectors are mentioned, any organization using <code>aws-cdk-lib</code> with Docker-based bundling and susceptible to untrusted <code>package.json</code> dependency version string manipulation is at risk.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade <code>aws-cdk-lib</code> to version 2.260.0 or later immediately to patch CVE-2026-13760.</li>
<li>Audit all third-party constructs and dependencies in your <code>package.json</code> to ensure the modules listed in the <code>nodeModules</code> bundling option and their version strings come only from trusted sources.</li>
<li>Consider using local bundling instead of Docker-based bundling for <code>NodejsFunction</code> where feasible, as this bypasses the affected code path.</li>
<li>Ensure that any forked or derivative codebases incorporating <code>aws-cdk-lib</code> are also updated to address CVE-2026-13760.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>command-injection</category><category>supply-chain</category><category>cloud-native</category><category>aws-cdk</category><category>vulnerability</category></item></channel></rss>