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.
Published: 2026-07-01
Score: 7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

Generated by OpenCVE AI on July 21, 2026 at 13:25 UTC.

Remediation

No vendor fix or workaround currently provided.

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 July 21, 2026 at 13:25 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

Wed, 01 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 01 Jul 2026 19:15:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: AMZN

Published:

Updated: 2026-07-01T19:23:39.104Z

Reserved: 2026-06-29T18:12:25.134Z

Link: CVE-2026-13760

cve-icon Vulnrichment

Updated: 2026-07-01T19:23:32.959Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T13:30:07Z

Weaknesses
  • CWE-78

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