Incorrect Default Permissions Affecting aws-cdk-lib package, versions <2.184.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Default Permissions vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-AWSCDKLIB-9511702
  • published25 Mar 2025
  • disclosed24 Mar 2025
  • creditUnknown

Introduced: 24 Mar 2025

New CVE NOT AVAILABLE CWE-276  (opens in a new tab)

How to fix?

Upgrade aws-cdk-lib to version 2.184.0 or higher.

Overview

aws-cdk-lib is a Version 2 of the AWS Cloud Development Kit library

Affected versions of this package are vulnerable to Incorrect Default Permissions in the IAM trust policy. A user with sts:AssumeRole permissions can escalate privileges to those defined by the IAM trust policy, including performing unauthorized actions on CloudFormation, CodeCommit, Lambda, and ECS.

Note: After upgrading to the patched version, the feature flag @aws-cdk/pipelines:reduceStageRoleTrustScope must be set to true, and applications redeployed.

CVSS Base Scores

version 4.0
version 3.1