AWS CDK
OS Command Injection in aws-cdk-lib Docker Bundling
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.260.0
Fixed in 2.260.0
Mitigation
Upgrade AWS CDK to 2.260.0 or later.
References
- Patch github.com/aws/aws-cdk/releases/tag/v2.260.0
- Vendor advisory aws.amazon.com/security/security-bulletins/2026-05…
- Vendor advisory github.com/aws/aws-cdk/security/advisories/GHS…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.