npmWorst: High8 advisories
aws-cdk-lib: known vulnerabilities
aws-cdk-lib has 8 reviewed security advisories in the GitHub Advisory Database — 2 high, 2 moderate, 4 low. The most recent was published 2026-07-24. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the aws-cdk-lib versions running across your servers, containers and images, and ranks what to patch first.
How to fix aws-cdk-lib
Upgrade aws-cdk-lib to a release at or above the fixed version shown for each advisory below. For npm:
npm install aws-cdk-lib@2.253.0 (or run npm audit fix)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (8)
AWS CDK CodeBuild S3 Log Encryption Boolean Inversion
Low 3.3 CWE-311 CWE-682
— Affected: before 2.253.0. Fixed in 2.253.0. Published 2026-07-24. GHSA-464c-974j-9xm6
aws-cdk-lib: OS Command Injection in NodejsFunction Docker Bundling
High 7.3 CWE-78
— Affected: before 2.260.0. Fixed in 2.260.0. Published 2026-07-01. GHSA-vcrf-j523-4mrf · CVE-2026-13760
aws-cdk-lib: OS Command Injection in NodejsFunction Bundling
High 7.3 CWE-78
— Affected: before 2.246.0. Fixed in 2.246.0. Published 2026-06-10. GHSA-999r-qq7v-r334 · CVE-2026-11417
aws-cdk-lib's aspect order change causes different Permissions Boundary assigned to Role
Low 2.2 CWE-279
— Affected: from 2.172.0 up to 2.189.1. Fixed in 2.189.1. Published 2025-04-15. GHSA-qc59-cxj2-c2w4
aws-cdk-lib has Insertion of Sensitive Information into Log File vulnerability when using Cognito UserPoolClient Construct
Moderate 6.5
— Affected: from 2.37.0 up to 2.187.0. Fixed in 2.187.0. Published 2025-03-31. GHSA-qq4x-c6h6-rfxh
AWS CDK CodePipeline: trusted entities are too broad
Low 3.8 CWE-276
— Affected: before 2.189.0. Fixed in 2.189.0. Published 2025-03-24. GHSA-5pq3-h73f-66hr
AWS Cloud Development Kit (AWS CDK) IAM OIDC custom resource allows connection to unauthorized OIDC provider
Low CWE-347
— Affected: before 2.177.0. Fixed in 2.177.0. Published 2025-01-17. GHSA-v4mq-x674-ff73 · CVE-2025-23206
AWS CDK EKS overly permissive trust policies
Moderate 6.6 CWE-266 CWE-863
— Affected: from 2.0.0 up to 2.80.0. Fixed in 2.80.0. Published 2023-06-23. GHSA-rx28-r23p-2qc3 · CVE-2023-35165
Find aws-cdk-lib across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.