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__ 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.
Severity (CVSS)
| Base score | 7.5 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Provided by | CNA |
Weaknesses
- CWE-200 — CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected products
| Vendor | Product | Versions |
|---|---|---|
| composer | composer | >= 1.0, < 1.10.28; >= 2.0.0, < 2.2.28; >= 2.3.0, < 2.9.8 |
References
- https://github.com/composer/composer/security/advisories/GHSA-f9f8-rm49-7jv2 (x_refsource_CONFIRM)
- https://github.com/composer/composer/pull/12853 (x_refsource_MISC)
- https://github.com/composer/composer/pull/12855 (x_refsource_MISC)
- https://github.com/composer/composer/commit/3f5e7f9fbfa541137d6d1d5643ec3b718e9d5039 (x_refsource_MISC)
- https://github.com/composer/composer/commit/65e6390c49f1a11cd8b660d81822086db51fe2d1 (x_refsource_MISC)
- https://github.com/composer/composer/commit/e66c8fdb7ff5409bd2f358c5f194038e49e93714 (x_refsource_MISC)
- https://github.com/composer/composer/releases/tag/1.10.28 (x_refsource_MISC)
- https://github.com/composer/composer/releases/tag/2.2.28 (x_refsource_MISC)
- https://github.com/composer/composer/releases/tag/2.9.8 (x_refsource_MISC)
Generated from the official CVE List on 16 Jul 2026 07:01 UTC.