Description
Composer is a dependency Manager for the PHP language. Prior to 1.10.28, 2.2.28, and 2.9.8, Composer\IO\BaseIO::loadConfiguration() validates GitHub OAuth tokens with the regex ^[.A-Za-z0-9_]+$ and interpolates rejected tokens into an UnexpectedValueException; GitHub Actions GITHUB_TOKEN values using the ghs_<id>_<base64url-JWT> format can contain -, fail validation, and be disclosed to stderr or CI logs. This issue is fixed in versions 1.10.28, 2.2.28, and 2.9.8.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| composer | composer | >= 1.0, < 1.10.28, >= 2.0.0, < 2.2.28, >= 2.3.0, < 2.9.8 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | composer | 2.10.0-1 | — |
| Debian 13 | composer | 2.8.8-1+deb13u3 | — |
| Debian 12 | composer | 2.5.5-1+deb12u5 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | composer | No fix yet | — |
| Ubuntu Pro 18.04 LTS | composer | No fix yet | — |
| Ubuntu Pro 16.04 LTS | composer | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | php-composer2 | 2.6.4-150600.3.12.1 | SUSE-SU-2026:4288-1, SUSE-SU-2026:3105-1 |
| SLES 15 SP6 | php-composer2 | 2.6.4-150600.3.12.1 | SUSE-SU-2026:3105-1 |
| SLES 15 SP5 | php-composer2 | 2.2.30-150400.3.21.1 | SUSE-SU-2026:4283-1 |
| SLES 15 SP4 | php-composer2 | 2.2.30-150400.3.21.1 | SUSE-SU-2026:4283-1 |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | php-composer2 | 2.8.9-160000.4.1 | SUSE-SU-2026:23943-1, SUSE-SU-2026:23138-1, SUSE-SU-2026:23116-1 |
| SLES for SAP 15 SP6 | php-composer2 | 2.6.4-150600.3.12.1 | SUSE-SU-2026:3105-1 |
| SLES for SAP 15 SP5 | php-composer2 | 2.2.30-150400.3.21.1 | SUSE-SU-2026:4283-1 |
| SLES for SAP 15 SP4 | php-composer2 | 2.2.30-150400.3.21.1 | SUSE-SU-2026:4283-1 |
| SLES 16.0 | php-composer2 | 2.8.9-160000.4.1 | SUSE-SU-2026:23943-1, SUSE-SU-2026:23138-1, SUSE-SU-2026:23116-1 |
| SLE HPC 15 SP5 | php-composer2 | 2.2.30-150400.3.21.1 | SUSE-SU-2026:4283-1 |
| SLE HPC 15 SP4 | php-composer2 | 2.2.30-150400.3.21.1 | SUSE-SU-2026:4283-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | php-composer2 | 2.10.2-2.1 | openSUSE-SU-2026:11300-1 |
| openSUSE Leap 16.0 | php-composer2 | 2.8.9-160000.4.1 | openSUSE-SU-2026:21970-1, openSUSE-SU-2026:21520-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | composer | 2.9.8-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | composer | 2.9.8-1.amzn2023.0.1 | ALAS2023-2026-1800 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | composer/composer | >= 2.3.0, < 2.9.8 | 2.9.8 | GHSA-f9f8-rm49-7jv2 |
| Packagist | composer/composer | >= 2.0.0, < 2.2.28 | 2.2.28 | GHSA-f9f8-rm49-7jv2 |
| Packagist | composer/composer | >= 1.0, < 1.10.28 | 1.10.28 | GHSA-f9f8-rm49-7jv2 |
Advisories 10
- SUSE-SU-2026:23943-1 Security update for php-composer2 SUSE / openSUSE Security Updates · Oct 2, 2026
- openSUSE-SU-2026:21970-1 Security update for php-composer2 SUSE / openSUSE Security Updates · Oct 1, 2026
- SUSE-SU-2026:4283-1 Security update for php-composer2 SUSE / openSUSE Security Updates · Sep 23, 2026
- SUSE-SU-2026:4288-1 Security update for php-composer2 SUSE / openSUSE Security Updates · Sep 23, 2026
- SUSE-SU-2026:23138-1 Security update for php-composer2 SUSE / openSUSE Security Updates · Aug 14, 2026
- SUSE-SU-2026:23116-1 Security update for php-composer2 SUSE / openSUSE Security Updates · Aug 14, 2026
- openSUSE-SU-2026:21520-1 Security update for php-composer2 SUSE / openSUSE Security Updates · Aug 4, 2026
- SUSE-SU-2026:3105-1 Security update for php-composer2 SUSE / openSUSE Security Updates · Jul 18, 2026
- openSUSE-SU-2026:11300-1 php-composer2-2.10.2-2.1 on GA media SUSE / openSUSE Security Updates · Jul 18, 2026
- ALAS2023-2026-1800 Moderate: composer security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jun 8, 2026
References
- https://github.com/composer/composer/security/advisories/GHSA-f9f8-rm49-7jv2
- https://github.com/composer/composer/pull/12853
- https://github.com/composer/composer/pull/12855
- https://github.com/composer/composer/commit/3f5e7f9fbfa541137d6d1d5643ec3b718e9d5039
- https://github.com/composer/composer/commit/65e6390c49f1a11cd8b660d81822086db51fe2d1
- https://github.com/composer/composer/commit/e66c8fdb7ff5409bd2f358c5f194038e49e93714
- https://github.com/composer/composer/releases/tag/1.10.28
- https://github.com/composer/composer/releases/tag/2.2.28
- https://github.com/composer/composer/releases/tag/2.9.8