# CVE-2026-59947: Composer: URL-embedded HTTP-Basic username leaks to verbose logs (GitHub PAT exposure)

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 2% of CVEs (2026-11-30)
- Published: 2026-07-08T19:33:56.009Z
- Modified: 2026-07-27T09:00:07.257Z
- Also known as: GHSA-g6xq-892h-64w3, BIT-COMPOSER-2026-59947
- Weaknesses: CWE-532
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- composer composer: >= 1.0, < 2.2.29; >= 2.3.0, < 2.10.2
- composer/composer (Packagist): from 2.3.0 before 2.10.2; from 1.0.0 before 2.2.29
- composer (Bitnami): from 1.0.0 before 2.2.29; from 2.3.0 before 2.10.2

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/composer/composer/security/advisories/GHSA-g6xq-892h-64w3> (web)
- <https://github.com/composer/composer/commit/6bd66874ae523ecb69aca5964487a0cdfda03ef8> (web)
- <https://github.com/composer/composer/commit/8887ad76fbd830cb1861a2b1fd8ead78ed1fa1ec> (web)
- <https://github.com/composer/composer/releases/tag/2.10.2> (web)
- <https://github.com/composer/composer/releases/tag/2.2.29> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59947> (advisory, web)
- <https://github.com/composer/composer> (package)

## Sources

- CVE List: [CVE-2026-59947](https://www.cve.org/CVERecord?id=CVE-2026-59947), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-g6xq-892h-64w3](https://github.com/advisories/GHSA-g6xq-892h-64w3), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-59947](https://nvd.nist.gov/vuln/detail/CVE-2026-59947), Public domain, modified 2026-07-10
- Bitnami Vulnerability Database: [BIT-COMPOSER-2026-59947](https://osv.dev/vulnerability/BIT-COMPOSER-2026-59947), Apache-2.0, modified 2026-07-27

---

Page: https://cve.day/CVE-2026-59947 · Whole record: https://cve.day/CVE-2026-59947.json · Rebuilt by cve.day 2026-11-25T22:59:27.425Z
