{"id":"CVE-2026-59947","published":"2026-07-08T19:33:56Z","modified":"2026-07-09T14:01:42Z","title":"Composer: URL-embedded HTTP-Basic username leaks to verbose logs (GitHub PAT exposure)","vendor":"composer","product":"composer","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0012,"percentile":0.01874,"provenance":"source"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"references":[{"url":"https://github.com/composer/composer/security/advisories/GHSA-g6xq-892h-64w3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/composer/composer/commit/6bd66874ae523ecb69aca5964487a0cdfda03ef8","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/commit/8887ad76fbd830cb1861a2b1fd8ead78ed1fa1ec","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/releases/tag/2.10.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/releases/tag/2.2.29","tags":["x_refsource_MISC"]}],"priority":{"score":3.7,"factors":[{"name":"EPSS percentile","points":0.37},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"composer","affectedVersions":[{"vendor":"composer","product":"composer","versions":[">= 1.0, < 2.2.29",">= 2.3.0, < 2.10.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-09T14:01:31.826906Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"composer/composer","vulnerableRanges":[">=2.3.0, <2.10.2",">=1.0.0, <2.2.29"],"patched":["2.10.2","2.2.29"],"from":["GHSA-g6xq-892h-64w3"],"provenance":"source"}],"summary":{"text":"Composer, the PHP dependency manager, fails to sanitize credentials placed in the username portion of a repository or package URL, so when it runs at the -vvv debug verbosity level it can print that value, such as a GitHub Personal Access Token, into its debug output. An attacker who can read that debug output, for example from shared or retained logs, needs local access to the system where Composer ran with that verbosity, and the attack is only feasible if the credential was embedded in a URL and the user ran Composer with -vvv.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:26Z"},"euvd":{"id":"EUVD-2026-42363","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-composer-cve-2026-59947","parents":[{"from":"CVE-2026-45793","to":"CVE-2026-59947","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:composer/composer","fromFixed":"2.9.8","toFixed":"2.10.2","daysApart":-7},{"kind":"same-code","provenance":"machine","files":["src/Composer/Util/ProcessExecutor.php","src/Composer/Util/Url.php"],"commits":["https://github.com/composer/composer/commit/3f5e7f9fbfa541137d6d1d5643ec3b718e9d5039","https://github.com/composer/composer/commit/65e6390c49f1a11cd8b660d81822086db51fe2d1","https://github.com/composer/composer/commit/6bd66874ae523ecb69aca5964487a0cdfda03ef8","https://github.com/composer/composer/commit/8887ad76fbd830cb1861a2b1fd8ead78ed1fa1ec"],"basis":"shared function","functions":["outputCommandRun","sanitize"]}]}],"packageHistory":[{"cve":"CVE-2026-40261","published":"2026-04-15","fixed":"2.9.6","kev":false},{"cve":"CVE-2026-45793","published":"2026-07-15","fixed":"2.9.8","kev":false},{"cve":"CVE-2026-59946","published":"2026-07-08","fixed":"2.10.2","kev":false},{"cve":"CVE-2026-59947","published":"2026-07-08","fixed":"2.10.2","kev":false},{"cve":"CVE-2026-59948","published":"2026-07-08","fixed":"2.10.2","kev":false},{"cve":"CVE-2026-59944","published":"2026-09-16","fixed":"2.10.3","kev":false},{"cve":"CVE-2026-84361","published":"2026-09-01","fixed":"2.10.3","kev":false}],"package":"Packagist:composer/composer"}}