Composer 2.11.1
Composer 2.11.1 arrived on October 30, 2026, one day after 2.11.0. Six fixes, no features, and a reminder that the feature release is the one that changes behavior. Let's not confuse the two.
What 2.11 Brought Before the Patch
Composer 2.11.0 is the version that matters. It removes the source-fallback config option added in 2.10 as a temporary measure, so dist installs no longer fall back to source clones. It adds a cooldown policy that withholds freshly published package versions for a configurable window, which is the first real defense against a compromised maintainer account inside Composer itself. It also lands a run of security fixes: package names in vendor/composer/installed.json can no longer escape the vendor directory (GHSA-c968-33g3-wh7p), inline repository HTTP headers such as API tokens stop being written into composer.lock (GHSA-fm2w-xgf2-f9fh), arguments passed to @composer scripts are escaped, TLS connections presenting the compromised eMudhra intermediate certificates are rejected even when the system store trusts their roots, and bin proxies no longer embed package-controlled shebangs unescaped.
Operationally, 2.11.0 adds --direct on audit, a strict-psr-autoloader config option, an only-branches option for VCS repositories, sub-dependency versions in show --tree --format=json, batched advisory queries, 429 and Retry-After handling, and terminal status reporting over OSC 7501 and OSC 9 controlled by COMPOSER_TERMINAL_STATUS.
The Six Fixes in 2.11.1
- GitLab CI job tokens — authentication against the GitLab Composer package registry failed because the registry wants HTTP Basic auth rather than the
JOB-TOKENheader (#13180). This is the second pass at GitLab CI auth in two releases, so verify your pipeline before trusting it. - Invalid platform package names — when a PHP extension reported a name that is not a valid platform package name, every update aborted with a
SecurityException(#13184). Unusual extension builds could not install anything at all. - Empty keys preserved —
requireandremoveno longer drop emptyrequire,require-dev, orrepositorieskeys fromcomposer.jsonwhen the command did not empty them itself (#13178). The old behavior quietly rewrote your manifest. - PHP 8.6 deprecation — a deprecation warning from
composer/ca-bundleis fixed (8bf8c27), which matters if you run Composer on a 8.6 pre-release and treat notices as failures. - Malformed custom headers — invalid
custom-headersauth entries were sent as-is and are now ignored with a warning (#13181). - WSL cache warning — Composer warns when the cache directory sits on a Windows drive while running inside WSL, where filesystem operations are slow enough to dominate install time (#13175).
What Still Bites
The source-fallback removal is the change to plan for. If your deployment relied on Composer falling back to a git clone when a dist archive was unavailable, installs will now fail instead of succeeding slowly, and --prefer-source is no longer a global substitute for the missing default. The cooldown policy is opt-in, so it protects nobody until someone writes it into the config. And the lock file is now flagged as outdated when the policy config changes, which will produce a warning on the first install after any policy edit.
Pin composer self-update 2.11.1 rather than tracking 2.11, because 2.11.0 is the build with the GitLab auth and platform-name regressions. If you run the phar in CI, bump the pinned version and the checksum together.