{"answers":{"affected":"5 open source packages ship an affected version, including composer/composer and composer.","exploited":"There is no known exploitation of CVE-2026-59947 in the wild and no public exploit code.","fix":"Upgrade composer/composer to a fixed version for your release line: 2.2.29 or 2.10.2.","what":"CVE-2026-59947 is a medium-severity vulnerability in composer, published on 8 Jul 2026. 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-2026-59947 and fix it if it is affected.\n\nWhat it is: CVE-2026-59947 is a medium-severity vulnerability in composer, published on 8 Jul 2026. 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-2026-59947 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- composer/composer (Packagist): affected from 1.0.0; fixed in 2.2.29\n- composer/composer (Packagist): affected from 1.0.0; fixed in 2.2.29\n- composer/composer (Packagist): affected from 2.3.0; fixed in 2.10.2\n- composer/composer (Packagist): affected from 2.3.0; fixed in 2.10.2\n- composer (Bitnami): affected from 1.0.0; fixed in 2.2.29, 2.10.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-2026-59947/ (Markdown: https://insights.sbomify.com/CVE-2026-59947/index.md)","id":"CVE-2026-59947","markdown":"https://insights.sbomify.com/CVE-2026-59947/index.md","name":"CVE-2026-59947","record":{"aliases":["BIT-composer-2026-59947","CLEANSTART-2026-KK97612","DEBIAN-CVE-2026-59947","GHSA-g6xq-892h-64w3","MINI-h4f9-wh6v-6xjx","MINI-q7fc-848c-jx32","UBUNTU-CVE-2026-59947"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"PHP dependency manager","requires_auth":"low_privilege","summary":"Attackers can view GitHub Personal Access Tokens in debug logs when Composer runs with high verbosity, exposing sensitive credentials.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"description":"Composer is a dependency Manager for the PHP language. Prior to 2.2.29 and 2.10.2, when Composer is run with -vvv debug verbosity, it could print a credential embedded in the username slot of a repository or package URL, such as a GitHub Personal Access Token in https://TOKEN@host/, to debug output because AuthHelper, Url::sanitize, and ProcessExecutor did not sanitize username-only URL credentials. This issue is fixed in versions 2.2.29 and 2.10.2.","ecosystems":["Bitnami","Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Composer: URL-embedded HTTP-Basic username leaks to verbose logs (GitHub PAT exposure)","id":"CVE-2026-59947","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":5,"n_references":5,"next":{"headline":"Composer: Arbitrary file write outside vendor via malicious transitive package name","id":"CVE-2026-59948"},"packages":[{"ecosystem":"Bitnami","fixed":["2.2.29","2.10.2"],"introduced":["1.0.0","2.3.0"],"last_affected":[],"package":"composer","purl":"pkg:bitnami/composer","source":"BIT-composer-2026-59947"},{"ecosystem":"Packagist","fixed":["2.2.29"],"introduced":["1.0.0"],"last_affected":[],"package":"composer/composer","purl":null,"source":"GHSA-g6xq-892h-64w3"},{"ecosystem":"Packagist","fixed":["2.2.29"],"introduced":["1.0.0"],"last_affected":[],"package":"composer/composer","purl":"pkg:composer/composer/composer","source":"GHSA-g6xq-892h-64w3"},{"ecosystem":"Packagist","fixed":["2.10.2"],"introduced":["2.3.0"],"last_affected":[],"package":"composer/composer","purl":null,"source":"GHSA-g6xq-892h-64w3"},{"ecosystem":"Packagist","fixed":["2.10.2"],"introduced":["2.3.0"],"last_affected":[],"package":"composer/composer","purl":"pkg:composer/composer/composer","source":"GHSA-g6xq-892h-64w3"}],"prev":{"headline":"Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files","id":"CVE-2026-59946"},"products":["composer"],"published":"2026-07-08","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-09","vendors":["composer"]},"summary":"Attackers can view GitHub Personal Access Tokens in debug logs when Composer runs with high verbosity, exposing sensitive credentials.","url":"https://insights.sbomify.com/CVE-2026-59947/"}