Composer: GitHub Tokens With Hyphens Printed in Full to CI Logs
Published as "Github Actions issued GITHUB_TOKEN disclosure in GitHub Actions logs"
- CVE
- CVE-2026-45793
- GHSA
- GHSA-f9f8-rm49-7jv2
- Packagist
- PKSA-pwvr-3754-v57r
- Reported
- May 13, 2026
Exposes GitHub Actions GITHUB_TOKEN values, and other GitHub tokens containing a hyphen, in Composer's error output and CI logs.
Affected and fixed versions
In composer/composer.
Find the row for the version you run, and update to the release next to it.
| If you run | Update to | Support |
|---|---|---|
| 2.3 – 2.9.7 | 2.9.8 | Supported |
| 1.0 – 1.10.27 | 1.10.28 | Supported |
Show 1 older branch, no longer supported
| 2.0.0 – 2.2.27 | 2.2.28 |
Upgrade
Run the line for the branch you are on.
composer require composer/composer:^2.9.8 composer require composer/composer:^1.10.28
Check your app with an agent
Paste this into a coding agent that can read your project, such as Claude Code, Codex or Amp. It checks your composer.lock against the versions above and tells you what to update, without changing anything.
Check whether the PHP project you have access to is affected by this security advisory, and tell me what to update. Do a read-only check: don't edit files, don't run composer update or composer require, and don't try to reproduce the flaw. Advisory: Composer: GitHub Tokens With Hyphens Printed in Full to CI Logs (CVE-2026-45793, GHSA-f9f8-rm49-7jv2) Details: https://phpnews.net/security/composer/ghsa-f9f8-rm49-7jv2 Affected versions, as Composer constraints: - composer/composer: >=2.3,<2.9.8|>=2.0.0,<2.2.28|>=1.0,<1.10.28 Fixed releases on branches that still get security fixes: - 2.3 – 2.9.7: update to 2.9.8 - 1.0 – 1.10.27: update to 1.10.28 1. Find every composer.lock in the project outside vendor/ (a monorepo can have one per app) and read the installed version of each package above. Packages installed as dependencies of other packages count too. 2. Compare each installed version with its constraint: "|" separates alternative ranges, and "," means both bounds apply. 3. For each affected install, read the project's advisory at https://github.com/composer/composer/security/advisories/GHSA-f9f8-rm49-7jv2 and check whether the project meets the conditions it describes. Say which conditions you could check and which you couldn't. 4. Report a table: lock file | package | installed version | affected (yes, no or unknown) | conditions met (yes, no or unknown) | update to | evidence. For each affected package, give the command that would fix it, without running it: composer update <package> --with-dependencies when it is only installed as a dependency of another package, or composer require with the fixed version when composer.json requires it directly. If the installed version is on a branch with no fixed release listed, say it needs a move to a newer branch.