Junglewise Threat Intelligence

CVE-2026-13760: AWS aws-cdk-lib OS command injection in NodejsFunction Docker bundling

CVE-2026-13760 · Severity: high · CVSS 7.3 · Published 2026-07-01

Technologies: AWS Cloud Development Kit, aws-cdk-lib (npm), Amazon AWS. Vendors: AWS, npm, Amazon.

Executive brief

aws-cdk-lib is a framework used by developers to define AWS cloud infrastructure as code. A command injection vulnerability in the NodejsFunction Docker bundling feature allows attackers to execute arbitrary operating system commands during the build process, potentially compromising the integrity of deployed applications and the build environment.

Technical details

The vulnerability is an OS command injection flaw in the NodejsFunction Docker bundling component of aws-cdk-lib. The issue occurs when user-controlled input is passed unsafely to shell commands during the Docker bundling process. An attacker could craft malicious inputs (e.g., through function properties or configuration) that break out of the intended command context and execute arbitrary commands with the privileges of the build process. This affects developers using the NodejsFunction construct to bundle Node.js Lambda functions. The vulnerability requires the attacker to have control over inputs to the CDK stack definition, which could occur through compromised code repositories, supply chain attacks, or direct manipulation of configuration. AWS has released patches to address this issue.

Affected products

  • AWS aws-cdk-lib

Timeline

  • 2026-09-22: disclosed

References

Related threats