Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. composer/composer
  4. ›
  5. CVE-2026-45793

CVE-2026-45793: Github Actions issued GITHUB_TOKEN disclosure in GitHub Actions logs

May 19, 2026

Composer leaks the full contents of tokens configured as GitHub OAuth tokens if they do not match Composer’s expected format for such tokens to stderr. GitHub has introduced a new format for GitHub Actions GITHUB_TOKEN values. These tokens are validated in the same way by Composer on GitHub Actions. The new format including a - (hyphen) fails Composer’s validation and leads to disclosure of the GITHUB_TOKEN in logs.

Many widely-used Actions (e.g. shivammathur/setup-php) auto-register GITHUB_TOKEN into composer’s global auth.json, so the leak triggers without any unusual user configuration.

GitHub Actions tokens expire when the associated job finishes, and they are scoped to the respective repository only. So in most regular cases the Composer validation, which errors while leaking the token, also immediately ends the job, expiring the token immediately. Tokens expire at the very latest after 6 hours on GitHub-hosted runners. If you use self-hosted runner, expiration is at most 24 hours after creation. The new token format is being rolled out gradually, so not all repositories are affected yet, but will be soon.

Classic ghp_ PATs are not affected by the regex bug per se, but the same leak primitive applies to any future credential that fails validation for any reason.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/composer/composer/CVE-2026-45793.yaml
  • github.com/advisories/GHSA-f9f8-rm49-7jv2
  • github.com/composer/composer/security/advisories/GHSA-f9f8-rm49-7jv2
  • nvd.nist.gov/vuln/detail/CVE-2026-45793

Code Behaviors & Features

Detect and mitigate CVE-2026-45793 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.0 before 1.10.28, all versions starting from 2.0.0 before 2.2.28, all versions starting from 2.3.0 before 2.9.8

Fixed versions

  • 1.10.28
  • 2.2.28
  • 2.9.8

Solution

Upgrade to versions 1.10.28, 2.2.28, 2.9.8 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

packagist/composer/composer/CVE-2026-45793.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 15 Jun 2026 00:18:02 +0000.