Vulnerability · Published Jul 8, 2026 · Assigned by GitHub_M
CVE-2026-59947Composer: URL-embedded HTTP-Basic username leaks to verbose logs (GitHub PAT exposure)
Medium 4.7
In plain English
A medium-severity sensitive data in logs in composer from composer. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 2% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | composer | no fix listed | DEBIAN-CVE-2026-59947 |
| Debian:13 | composer | no fix listed | DEBIAN-CVE-2026-59947 |
| Debian:14 | composer | 2.10.2-1 | DEBIAN-CVE-2026-59947 |
| Packagist | composer/composer | 2.2.29 | GHSA-g6xq-892h-64w3 |
| Packagist | composer/composer | 2.10.2 | GHSA-g6xq-892h-64w3 |
| Ubuntu:25.10 | composer | no fix listed | UBUNTU-CVE-2026-59947 |
| Ubuntu:26.04:LTS | composer | no fix listed | UBUNTU-CVE-2026-59947 |
| Ubuntu:26.10 | composer | no fix listed | UBUNTU-CVE-2026-59947 |
Affected products (as reported)
Weakness: CWE-532 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/composer/composer/security/advisories/GHSA-g6xq-892h-64w3 x_refsource_CONFIRM
- https://github.com/composer/composer/commit/6bd66874ae523ecb69aca5964487a0cdfda03ef8 x_refsource_MISC
- https://github.com/composer/composer/commit/8887ad76fbd830cb1861a2b1fd8ead78ed1fa1ec x_refsource_MISC
- https://github.com/composer/composer/releases/tag/2.10.2 x_refsource_MISC
- https://github.com/composer/composer/releases/tag/2.2.29 x_refsource_MISC