CVE-2026-11417 OS Command Injection in NodejsFunction Bundling in aws-cdk-lib

High 7.0 Published Updated

Attackers controlling CDK bundling properties can execute arbitrary commands on the host running the CDK toolchain via shell metacharacters.

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-11417?

CVE-2026-11417 is a high-severity command injection vulnerability in AWS Cloud Development Kit library, published on 10 Jun 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 local bundling pipeline in aws-cdk-lib before 2.245.0 (2.246.0 on Windows) might allow an actor who controls the value of one or more bundling properties (externalModules, define, loader, inject, or esbuildArgs) to execute arbitrary commands on the host running the CDK toolchain via injected shell metacharacters. This issue requires the threat actor to control the value of one or more of the affected bundling properties in the CDK application.

To remediate this issue, users should upgrade to aws-cdk-lib 2.245.0 (2.246.0 on Windows) or later.

Weakness: CWE-78

Which versions are affected by CVE-2026-11417?

2 open source packages ship an affected version, including aws-cdk-lib.

PackageAffectedFixed in
aws-cdk-lib npmAll versions2.246.0
aws-cdk-lib npmAll versions2.246.0

How do I fix CVE-2026-11417?

Upgrade aws-cdk-lib to 2.246.0 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-11417 being exploited?

There is no known exploitation of CVE-2026-11417 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-999r-qq7v-r334.

Is CVE-2026-11417 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free