CVE-2026-13760 OS Command Injection in aws-cdk-lib Docker Bundling
Attackers controlling package.json dependency strings can execute arbitrary commands on the host during CDK Docker bundling.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-13760?
CVE-2026-13760 is a high-severity command injection vulnerability in AWS CDK, published on 1 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-78
Which versions are affected by CVE-2026-13760?
2 open source packages ship an affected version, including aws-cdk-lib.
| Package | Affected | Fixed in |
|---|---|---|
aws-cdk-lib npm | All versions | 2.260.0 |
aws-cdk-lib npm | All versions | 2.260.0 |
How do I fix CVE-2026-13760?
Upgrade aws-cdk-lib to 2.260.0 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-13760 being exploited?
There is no known exploitation of CVE-2026-13760 in the wild and no public exploit code.
Sources
Also known as GHSA-vcrf-j523-4mrf.