CVE-2026-59947
published medium CVSS 3.1 · 4.7Composer: URL-embedded HTTP-Basic username leaks to verbose logs (GitHub PAT exposure)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| composer | — | composer>= 1.0, < 2.2.29 · >= 2.3.0, < 2.10.2 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1941 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP4 | php-composer2noarch | Advisory build | 2.2.30-150400.3.21.1 | SUSE-SU-2026:4283-1 |
| Amazon Linux | AL2023 | composernoarch | Listed in advisory | Not stated | ALAS2023-2026-1941 |
| SUSE / openSUSE | SLE-15-SP4 | php-composer2noarch | Advisory build | 2.2.30-150400.3.24.1 | SUSE-SU-2026:4589-1 |
| SUSE / openSUSE | SLE-15-SP5 | php-composer2noarch | Advisory build | 2.2.30-150400.3.21.1 | SUSE-SU-2026:4283-1 |
| SUSE / openSUSE | SLE-15-SP5 | php-composer2noarch | Advisory build | 2.2.30-150400.3.24.1 | SUSE-SU-2026:4589-1 |
Show 13 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP6 | php-composer2noarch | Advisory build | 2.6.4-150600.3.12.1 | SUSE-SU-2026:3105-1 |
| SUSE / openSUSE | SLE-15-SP7 | php-composer2noarch | Advisory build | 2.6.4-150600.3.12.1 | SUSE-SU-2026:3105-1 |
| SUSE / openSUSE | SLE-15-SP7 | php-composer2noarch | Advisory build | 2.6.4-150600.3.23.1 | SUSE-SU-2026:4288-1 |
| SUSE / openSUSE | SLE-16 | php-composer2noarch | Advisory build | 2.8.9-160000.4.1 | SUSE-SU-2026:23116-1 |
| SUSE / openSUSE | SLE-16 | php-composer2noarch | Advisory build | 2.8.9-160000.4.1 | SUSE-SU-2026:23138-1 |
| SUSE / openSUSE | SLE-16 | php-composer2noarch | Advisory build | 2.8.9-160000.6.1 | SUSE-SU-2026:23943-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | php-composer2noarch | Advisory build | 2.8.9-160000.4.1 | OPENSUSE-SU-2026:21520-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | php-composer2noarch | Advisory build | 2.8.9-160000.6.1 | OPENSUSE-SU-2026:21970-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2aarch64 | Advisory build | 2.10.2-1.1 | OPENSUSE-SU-2026:11268-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2ppc64le | Advisory build | 2.10.2-1.1 | OPENSUSE-SU-2026:11268-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2s390x | Advisory build | 2.10.2-1.1 | OPENSUSE-SU-2026:11268-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2x86_64 | Advisory build | 2.10.2-1.1 | OPENSUSE-SU-2026:11268-1 |
| Amazon Linux | AL2023 | composersrc | Listed in advisory | Not stated | ALAS2023-2026-1941 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.7 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| composer | composer | >= 1.0, < 2.2.29 (affected)>= 2.3.0, < 2.10.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-532 CWE-532: Insertion of Sensitive Information into Log File
References
5- https://github.com/composer/composer/commit/6bd66874ae523ecb69aca5964487a0cdfda03ef8
- https://github.com/composer/composer/commit/8887ad76fbd830cb1861a2b1fd8ead78ed1fa1ec
- https://github.com/composer/composer/releases/tag/2.10.2
- https://github.com/composer/composer/releases/tag/2.2.29
- https://github.com/composer/composer/security/advisories/GHSA-g6xq-892h-64w3
Provider assertions
2GitHub_M · cna
Composer: URL-embedded HTTP-Basic username leaks to verbose logs (GitHub PAT exposure)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7eb483bf9c0cfc3540f46b1ca10e71b668ed4f1c2ae0a10112b6101a1085a56e
- Ingested
- 23 Sep 2026, 09:22:51 UTC
- Source record
- Official CVE record