CVE-2026-45793composer
High 7.5 No auth needed
Follow: this CVE · composer · composer We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Jul 15, 2026
- Updated
- Jul 15, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-200
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for composer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | composer/composer |
≥ 2.3.0 < 2.9.8 |
2.9.8 |
composer require "composer/composer:^2.9.8" |
| Packagist | composer/composer |
≥ 2.0.0 < 2.2.28 |
2.2.28 |
composer require "composer/composer:^2.2.28" |
| Packagist | composer/composer |
≥ 1.0 < 1.10.28 |
1.10.28 |
composer require "composer/composer:^1.10.28" |
Per OSV / GitHub Advisories (GHSA-f9f8-rm49-7jv2). Check the version in your lockfile before upgrading.
Affected products
- composer · composer
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for php-composer2 · SUSE · openSUSE-SU-2026:21970-1 · Sep 29, 2026 High
- Security update for php-composer2 · SUSE · SUSE-SU-2026:23943-1 · Sep 29, 2026 High
- Security update for php-composer2 · SUSE · SUSE-SU-2026:4288-1 · Sep 22, 2026 High
Also: SUSE (+6)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.