CVE-2026-13760

OS Command Injection in aws-cdk-lib Docker Bundling

Published Jul 1, 2026 CVSS 4.0 · 7 High EPSS 1.2% KEV · Not listed
Description
OS command injection in the NodejsFunction Docker bundling pipeline (OsCommand helper) in AWS aws-cdk-lib on all platforms might allow a actor who controls dependency version strings in a project's package.json file to execute arbitrary commands on the host running the CDK toolchain via injected shell metacharacters in the OsCommand helper. This issue requires the actor to control the content of a package.json dependency version string that is processed during Docker-based bundling with nodeModules specified.



To remediate this issue, users should upgrade to v2.260.0.

Analysis

AI-generated

Technical impact

The bug resides in the NodejsFunction Docker bundling pipeline of AWS CDK. A malicious actor who can control the content of a dependency version string in a project's package.json can inject shell metacharacters that the OsCommand helper passes to the host shell, allowing that actor to run arbitrary commands on the machine that runs the CDK toolchain. This flaw corresponds to CWE‑78, an OS command injection vulnerability.

Affected Systems

All platforms that run AWS CDK using the NodejsFunction Docker bundling feature are affected. The vulnerability exists in versions prior to v2.260.0 and was fixed in that release.

Risk and Exploitability

The CVSS score of 7 classifies the vulnerability as high severity. The EPSS score of <1% indicates that exploitation is currently unlikely, yet the absence from the CISA KEV catalog does not negate its potential impact. The required attack path involves modifying a package.json dependency version string, which generally implies code‑repository access or injection of a malicious package from a source registry. Successful exploitation would give the attacker the ability to execute arbitrary shell commands on the host running CDK.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade aws-cdk-lib to version 2.260.0 or later
  • Limit who can edit dependency version strings in package.json to trusted developers or secure code‑review processes
  • Implement validation or sanitization of package.json entries to strip or reject shell metacharacters

Generated by OpenCVE AI on August 1, 2026 at 22:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-vcrf-j523-4mrf aws-cdk-lib: OS Command Injection in NodejsFunction Docker Bundling
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 OS command injection in the NodejsFunction Docker bundling pipeline (OsCommand helper) in AWS aws-cdk-lib on all platforms might allow a actor who controls dependency version strings in a project's package.json file to execute arbitrary commands on the host running the CDK toolchain via injected shell metacharacters in the OsCommand helper. This issue requires the actor to control the content of a package.json dependency version string that is processed during Docker-based bundling with nodeModules specified. To remediate this issue, users should upgrade to v2.260.0.
Title OS Command Injection in aws-cdk-lib Docker Bundling
First Time appeared Aws
Aws aws Cdk
Weaknesses CWE-78
CPEs cpe:2.3:a:aws:aws_cdk:*:*:*:*:*:*:*:*
Vendors & Products Aws
Aws aws Cdk
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 7, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
AMZN
Published
Updated
Jul 1, 2026, 7:23 PM
Reserved
Jun 29, 2026, 6:12 PM
Status
Awaiting Analysis
Published
Jul 1, 2026, 7:16 PM
Modified
Oct 25, 2026, 4:10 PM