OS Command Injection in aws-cdk-lib (CVE-2026-11417)
Summary
OS command injection in aws-cdk-lib (CVE-2026-11417). Successful exploitation can lead to full system takeover. Exploitable via NodejsFunction. Mitigation: upgrade to 2.246.0 or later.
Original description
The description as published by the source.
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.
Source: NIST National Vulnerability Database NVD GitHub Advisory
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-11417 has been found in aws-cdk-lib.
Attackers can target a specific entry point like NodejsFunction over the network to misuse the product.
Successful exploitation can lead to full system takeover. CVSS score: 7.3/10.
What to do: upgrade aws-cdk-lib to 2.246.0 or later.
If unsure, ask your IT team or search "aws-cdk-lib CVE-2026-11417" on the vendor's site.
CVE-2026-11417 (aws-cdk-lib) — CWE-78 / CVSS v3 7.3
Attack vector: local
Attack surface: NodejsFunction / externalModules / define / loader
Patched: 2.246.0 — apply immediately
Workaround: Ensure the values supplied to NodejsFunction bundling properties (externalModules, define, loader, inject, esbuildArgs) originate only from trusted sources, and audit third-party constructs and pull requests that set them.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
OS command injection (CWE-78) exists in aws-cdk-lib. Attackers reach the vulnerable code path via NodejsFunction.
Check the vendor advisory for the affected versions of aws-cdk-lib. Attack surface: NodejsFunction / externalModules / define / loader.
Severity: High (CVSS 7.3/10). Successful exploitation can lead to full system takeover.
Update to 2.246.0.
Workaround: Ensure the values supplied to NodejsFunction bundling properties (externalModules, define, loader, inject, esbuildArgs) originate only from trusted sources, and audit third-party constructs and pull requests that set them.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'aws-cdk-lib' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'aws-cdk-lib' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
aws-cdk-libを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
Ensure the values supplied to `NodejsFunction` bundling properties (`externalModules`, `define`, `loader`, `inject`, `esbuildArgs`) originate only from trusted sources, and audit third-party constructs and pull requests that set them.パッチが適用されるまでの応急処置として、Ensure the values supplied to
NodejsFunctionbundling properties (externalModules,define,loader,inject,esbuildArgs) originate only from trusted sources, and audit third-party constructs and pull requests that set them. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3Apply patch patch
Upgrade aws-cdk-lib to 2.246.0ステージング環境で 2.246.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
References
- advisory aws.amazon.com
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web github.com
- web github.com
- web aws.amazon.com
- web github.com