Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. aws-cdk-lib
  4. ›
  5. GHSA-5pq3-h73f-66hr

GHSA-5pq3-h73f-66hr: AWS CDK CodePipeline: trusted entities are too broad

March 24, 2025 (updated April 10, 2025)

The AWS Cloud Development Kit (CDK) is an open-source framework for defining cloud infrastructure using code. Users use it to create their own applications, which are converted to AWS CloudFormation templates during deployment to a user’s AWS account. AWS CDK contains pre-built components called “constructs,” which are higher-level abstractions providing defaults and best practices. This approach enables developers to use familiar programming languages to define complex cloud infrastructure more efficiently than writing raw CloudFormation templates.

The AWS CodePipeline construct deploys CodePipeline, a managed service that orchestrates software release processes through a series of stages, each comprising one or more actions executed by CodePipeline. To perform these actions, CodePipeline assumes IAM roles with permissions necessary for each step, allowing it to interact with AWS services and resources on behalf of the user.

An issue exists where, when using CDK to create a CodePipeline with the CDK Construct Library, CDK creates an AWS Identity and Access Management (AWS IAM) trust policy with overly broad permissions. Any user with unrestricted sts:AssumeRole permissions could assume that trust policy. This issue does not affect users who supply their own role for CodePipeline.

References

  • github.com/advisories/GHSA-5pq3-h73f-66hr
  • github.com/aws/aws-cdk
  • github.com/aws/aws-cdk/commit/a64b01cc2969822bb92d7bd72152ecb2ccf1c1cf
  • github.com/aws/aws-cdk/issues/33709
  • github.com/aws/aws-cdk/releases/tag/v2.184.0
  • github.com/aws/aws-cdk/security/advisories/GHSA-5pq3-h73f-66hr

Code Behaviors & Features

Detect and mitigate GHSA-5pq3-h73f-66hr with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.189.0

Fixed versions

  • 2.189.0

Solution

Upgrade to version 2.189.0 or above.

Impact 3.8 LOW

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-276: Incorrect Default Permissions

Source file

npm/aws-cdk-lib/GHSA-5pq3-h73f-66hr.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:10 +0000.