CVE-2025-2598: amazon aws_cloud_development_kit
Vulnerability summary
CVE-2025-2598 is a medium (CVSS 5.7) vulnerability in amazon aws_cloud_development_kit. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 22.3% of scored vulnerabilities.
Timeline
- 21-03-2025PublishedVulnerability first disclosed.
- 14-10-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 3 sources · 2 versions- OSV · NpmEcosystem advisory · calculated5.7MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- NVDNIST5.7MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · NpmEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.31%
Chance of exploitation in the next 30 days
Percentile
22%
Versus all other CVEs
30-day change
+0.04 pp
From 0.27% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Npm2 products
- aws-cdk≥ 2.172.0, < 2.178.2
- cdk≥ 2.172.0, < 2.178.2
Amazon1 product
- aws_cloud_development_kit≥ 2.172.0, < 2.178.2
Aws1 product
- cloud development kit command line interface≥ 2.172.0, < 2.178.2
3 vendors · 4 products
References
6 links- aws.amazon.com/security/security-bulletins/AWS-2025-005/Vendor Advisory
- github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqpThird Party AdvisoryWEBVendor Advisory
- github.com/aws/aws-cdkPACKAGE