Skip to main content

Composer 2.11.2

Release Date: November 10, 2026

I upgraded a handful of PHP projects to Composer 2.11.2 the morning it appeared, mostly because the release notes open with six security entries and that is the kind of list you do not sit on. After two days of installs, updates, and one very old monorepo, here is the short version: upgrade now, then read the third security item carefully because it affects private package mirrors.

The Security Items Are the Release

Composer 2.11.2 fixes six issues, and unlike the usual dependency refresh, several of these are bugs in Composer's own trust boundaries.

  • Command execution through the transport option (GHSA-jhfp-4ppm-crmm): a prevent_url_access_callable value could be loaded from composer.lock or vendor/composer/installed.json. Those files travel with repositories, which made the setting an injection point.
  • Zip extraction escaping the package directory (GHSA-w6hj-6587-3jh5): malicious archives could write outside their target folder through symlinked entries when the extraction path fell back from the unzip binary to PHP's ZipArchive.
  • Credentials leaking to dist mirrors (GHSA-x82q-x274-r6pq): inline repository HTTP credentials could be sent to a dist mirror on another host if a crafted lock file named one.
  • Bundled symfony/filesystem: replaced with a version that fixes a disclosed vulnerability present in the copy shipped with 2.11.1 (GHSA-6prc-h956-hxjq).
  • Redirect header replay: Authorization and Cookie headers set through request options, such as a repository's http.header, were resent when a redirect pointed at a different origin.
  • Auth config confusion: non-auth settings were read from a project auth.json and from COMPOSER_AUTH, and home was read from a project composer.json. All three are now ignored with a warning.

There is a seventh security fix worth calling out: IPs blocked by prevent_ip_access_callable were only rejected after the request had already been sent, and in-flight downloads that got rejected were not stopped. In practice a blocked address could still receive a request body. That is now enforced before the connection opens.

Things I Actually Noticed in Daily Use

The 30 second stall timeout (#13243) is the change I did not know I wanted. Previously, a server that accepted a TCP connection and then said nothing could hold an install for the full 300 second default. Now the transfer aborts and retries. You can tune it or turn it off with COMPOSER_HTTP_STALL_TIMEOUT.

Security advisory lookups now hit the API once per package name instead of once per version constraint (#13202). On a project with a large dependency tree the audit step visibly shortens. VCS repository updates also skip the default branch lookup when the local git mirror is already current (#13224), which helps CI runners that cache mirrors between jobs.

Two new repository options round out the feature list. exclude-branches lets a VCS repository skip branch patterns, which is handy for repositories where a bot pushes a branch per pull request. Setting allow-git-fallback to false on GitLab, Bitbucket, and Forgejo repositories makes API errors fail the operation instead of silently degrading to a git clone.

The config command fixes deserve a mention because they bit people running scripts. Adding or removing dotted sub-keys could inject empty arrays where objects belonged, corrupting composer.json. Separately, config --unset, remove, and require could leave behind or duplicate keys set to null.

Upgrade Notes

Run composer self-update and you are done. There are no deprecations and no configuration migrations. If you vendor Composer into a Docker image, bump the installer version. If you run a private Satis or a mirror with inline credentials, rotate those credentials after upgrading, since the leaking behavior existed in 2.11.1 and earlier.

Verdict: 2.11.2 is a security release disguised as a patch. The performance work is a bonus. Update before your next composer install.

Other Versions

We use cookies for ads and analytics.