{"answers":{"affected":"4 open source packages ship an affected version, including aws-cdk and cdk. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-2598 in the wild and no public exploit code.","fix":"Upgrade aws-cdk to 2.178.2 or later.","what":"CVE-2025-2598 is a medium-severity vulnerability in AWS Cloud Development Kit Command Line Interface, published on 21 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-2598 and fix it if it is affected.\n\nWhat it is: CVE-2025-2598 is a medium-severity vulnerability in AWS Cloud Development Kit Command Line Interface, published on 21 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-2598 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- aws-cdk (npm): affected from 2.172.0; fixed in 2.178.2\n- aws-cdk (npm): affected from 2.172.0; fixed in 2.178.2\n- cdk (npm): affected from 2.172.0; fixed in 2.178.2\n- cdk (npm): affected from 2.172.0; fixed in 2.178.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-2598/ (Markdown: https://insights.sbomify.com/CVE-2025-2598/index.md)","id":"CVE-2025-2598","markdown":"https://insights.sbomify.com/CVE-2025-2598/index.md","name":"CVE-2025-2598","record":{"aliases":["GHSA-v63m-x9r9-8gqp"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"AWS CDK CLI","requires_auth":"low_privilege","summary":"AWS CDK CLI leaks AWS credentials to console output when using specific credential plugins, requiring an upgrade to secure sensitive data.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"AMZN","cpe":[{"product":"aws_cloud_development_kit","vendor":"amazon"}],"cvss":{"score":5.7,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-497","name":"Exposure of Sensitive System Information to an Unauthorized Control Sphere"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2025-11-23","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-11-23T19:16:01Z","kind":"github_poc","ref":"https://github.com/Catnip-Express-Maxim/AWSTESTEXPLOIT","stars":0,"title":"Testing if AWS exploit CVE-2025-2598 still works"},{"date":"2025-11-24T21:22:07Z","kind":"github_poc","ref":"https://github.com/SallyXVIII/Final-Proj","stars":0,"title":"In theory, we exploit cve-2025-2598. Hope it works"}],"tier":"poc_unverified"},"has_fix":true,"headline":"AWS CDK CLI prints AWS credentials retrieved by custom credential plugins","id":"CVE-2025-2598","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2025"},"n_packages":4,"n_references":3,"next":{"headline":"Missing authorization in Remote Desktop Manager","id":"CVE-2025-2600"},"packages":[{"ecosystem":"npm","fixed":["2.178.2"],"introduced":["2.172.0"],"last_affected":[],"package":"aws-cdk","purl":null,"source":"GHSA-v63m-x9r9-8gqp"},{"ecosystem":"npm","fixed":["2.178.2"],"introduced":["2.172.0"],"last_affected":[],"package":"aws-cdk","purl":"pkg:npm/aws-cdk","source":"GHSA-v63m-x9r9-8gqp"},{"ecosystem":"npm","fixed":["2.178.2"],"introduced":["2.172.0"],"last_affected":[],"package":"cdk","purl":null,"source":"GHSA-v63m-x9r9-8gqp"},{"ecosystem":"npm","fixed":["2.178.2"],"introduced":["2.172.0"],"last_affected":[],"package":"cdk","purl":"pkg:npm/cdk","source":"GHSA-v63m-x9r9-8gqp"}],"prev":{"headline":"Reflected Cross-Site Scripting (XSS) vulnerability in ITIUM 6050","id":"CVE-2025-2597"},"products":["Cloud Development Kit Command Line Interface"],"published":"2025-03-21","related":[{"cvss_score":6.6,"headline":"AWS CDK EKS overly permissive trust policies","id":"CVE-2023-35165","kev_date_added":null,"published":"2023-06-23"},{"cvss_score":6.4,"headline":"AWS CDK RestApi not generating authorizationScope correctly in resultant CFN template","id":"CVE-2024-45037","kev_date_added":null,"published":"2024-08-27"},{"cvss_score":1.8,"headline":"IAM OIDC custom resource allows connection to unauthorized OIDC provider in aws-cdk","id":"CVE-2025-23206","kev_date_added":null,"published":"2025-01-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-14","vendors":["AWS"]},"summary":"AWS CDK CLI leaks AWS credentials to console output when using specific credential plugins, requiring an upgrade to secure sensitive data.","url":"https://insights.sbomify.com/CVE-2025-2598/"}