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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-03-21 · Modified: 2025-10-14
- Aliases: GHSA-v63m-x9r9-8gqp
- Record: https://cvemate.com/vulnerability/CVE-2025-2598 · JSON: https://cvemate.com/vulnerability/CVE-2025-2598/json

## Description

```text
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.
```

## Signals

- CVSS: 5.7 medium (v4.0, CVE.org) CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- EPSS: 0.31%, percentile 25.683%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- amazon aws\_cloud\_development\_kit: ≥ 2.172.0, \< 2.178.2
- aws cloud development kit command line interface: ≥ 2.172.0, \< 2.178.2
- Npm aws-cdk (Npm): ≥ 2.172.0, \< 2.178.2
- Npm cdk (Npm): ≥ 2.172.0, \< 2.178.2

## References

- <https://aws.amazon.com/security/security-bulletins/AWS-2025-005/>
- <https://github.com/aws/aws-cdk/security/advisories/GHSA-v63m-x9r9-8gqp>
- <https://github.com/aws/aws-cdk/releases/tag/v2.178.2>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-2598>
- <https://aws.amazon.com/security/security-bulletins/AWS-2025-005>
- <https://github.com/aws/aws-cdk>

---

Data as of 2026-12-05T06:32:54.887Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
