CVE-2025-2598
Description
When the AWS Cloud Development Kit (AWS CDK) Command Line Interface (AWS CDK CLI) is used with a credential plugin which returns an expiration property with the retrieved AWS credentials, the credentials are printed to the console output. To mitigate this issue, users should upgrade to version 2.178.2 or later and ensure any forked or derivative code is patched to incorporate the new fixes.
How to fix
- amazon aws_cloud_development_kit2.178.2 or later
- aws-cdk2.178.2 or later
- cdk2.178.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| amazon aws_cloud_development_kit | 2.172.0 ≤ v < 2.178.2 | 2.178.2 |
| aws-cdknpm | 2.172.0 ≤ v < 2.178.2 | 2.178.2 |
| cdknpm | 2.172.0 ≤ v < 2.178.2 | 2.178.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.