Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. aws-cdk
  4. ›
  5. CVE-2025-2598

CVE-2025-2598: AWS CDK CLI prints AWS credentials retrieved by custom credential plugins

March 21, 2025

The AWS Cloud Development Kit (AWS CDK) [1] is an open-source software development framework for defining cloud infrastructure in code and provisioning it through AWS CloudFormation. The AWS CDK CLI [2] is a command line tool for interacting with CDK applications. Customers can use the CDK CLI to create, manage, and deploy their AWS CDK projects.

An issue exists in the AWS CDK CLI where, under certain conditions, AWS credentials may be returned in the console output. Plugins that return an expiration property in the credentials object are affected by this issue. Plugins that omit the expiration property are not affected.

References

  • aws.amazon.com/security/security-bulletins/AWS-2025-005
  • github.com/advisories/GHSA-v63m-x9r9-8gqp
  • github.com/aws/aws-cdk
  • github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp
  • nvd.nist.gov/vuln/detail/CVE-2025-2598

Code Behaviors & Features

Detect and mitigate CVE-2025-2598 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 starting from 2.172.0 before 2.178.2

Fixed versions

  • 2.178.2

Solution

Upgrade to version 2.178.2 or above.

Impact 5.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere

Source file

npm/aws-cdk/CVE-2025-2598.yml

Spotted a mistake? Edit the file on GitLab.

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

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