CVE-2026-45793
Composer is a dependency Manager for the PHP language. Prior to …
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 now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/composer/composer/security/advisories/GHSA-f9f8-rm49-7jv2
- github.com/FriendsOfPHP/security-advisories/blob/master/composer/composer/CVE-2026-45793.y
- github.com/advisories/GHSA-f9f8-rm49-7jv2
- github.com/composer/composer/commit/3f5e7f9fbfa541137d6d1d5643ec3b718e9d5039
- github.com/composer/composer/commit/65e6390c49f1a11cd8b660d81822086db51fe2d1
- github.com/composer/composer/commit/e66c8fdb7ff5409bd2f358c5f194038e49e93714
- github.com/composer/composer/pull/12853
- github.com/composer/composer/pull/12855
- nvd.nist.gov/vuln/detail/CVE-2026-45793
- cve.org/CVERecord?id=CVE-2026-45793
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.