What changed in Composer from 1 to 2
13 releases numbered after 1.10.28 up to and including 2.11.2, stable releases only. 1.10.28 and 2.11.2 are the newest stable releases of 1 and 2 we track; this page follows them as new ones ship.
- 6 CVEs mentioned
- 2 remove or deprecate something
- Spans branches 2.11, 2.10, 2.9, 2.2 — the list is by date, and a branch's own patches sit between the other's.
117 changes across 13 releases · 8 landed on more than one version
- Added exclude-branches option to VCS repositories to skip branches matching the given patterns, e.g. bot-managed ones
- Added support for setting allow-git-fallback to false in GitLab, Bitbucket and Forgejo repositories to fail on API errors instead of falling back to a git clone
- Added a 30 seconds stall timeout so downloads from a server which accepts the connection but never responds are aborted and retried instead of hanging for 300 seconds, configurable or disabled via the COMPOSER_HTTP_STALL_TIMEOUT env var
- Added a warning when the cache dir is on a Windows drive while running in WSL, as this makes filesystem operations very slow
- Added a `cooldown` policy to withhold newly released package versions for a configurable period, reducing exposure to compromised releases
- Added `block-scope` option to custom policies so they can also block during `install`
- Added terminal progress/status reporting via OSC 7501 and OSC 9 escape sequences, configurable with `COMPOSER_TERMINAL_STATUS`
- Added `--direct` (`-D`) option to `audit` to only audit direct dependencies
- Added support for Bitbucket Cloud's new `ssh.bitbucket.org` SSH hostname, which is also used for the SSH fallback now
- Added `strict-psr-autoloader` config option, the equivalent of the `--strict-psr-autoloader` flag
- Added a warning when an optimized autoload dump contains paths only differing in casing
- Added `only-branches` option to VCS repositories to restrict which branches are loaded
- Added installed versions of sub-dependencies in `show --tree --format=json` output
- Added batching of security advisory API queries for projects with a very large number of dependencies
- Added support for 429 responses and `Retry-After` headers, so Composer now waits and retries when a repository asks for it
- Added a prompt in `init` to add composer.lock to .gitattributes with export-ignore when creating a library
- Warning output in self-update command when using a soon-to-be EOL version
- Download retry when a GitHub codeload URL returns a 400
- Dependency policies to block package versions where malware was detected on update/install or report it with audit
- Support for temporary --with constraints with wildcards in the package name for the update command
- --strict-psr-autoloader flag for the install and update commands
- source-fallback config option to disable or enable source fallback on download failure
- --require parameter to create-project to add new packages to the project as it gets installed
- Improved performance of security advisory lookups by querying the API only once per package name
- Improved performance of VCS repository updates by skipping the default branch lookup when the git mirror is up to date
- Improved performance and memory usage of dependency resolution, package loading and sorting, and repository traversal
- Improved performance with micro-optimizations in path and URL handling, lock file and installed.php generation, archiving and TLS/HTTP helpers
- Error output when a policy blocks a package version is clearer
- Disabled automatic fallback to source checkout when dist/zip install fails, with a new source-fallback config option as a temporary way to restore the old behavior
- The audit command exit code is now always 0 on success or 1 if anything failed the audit
- Optimized plugin autoloading by avoiding regenerating classmaps for every package per plugin
- Optimized PoolOptimizer memory usage
- Optimized classmap dumping performance
- Fixed config failing with a schema error or corrupting composer.json by turning nested {} into [] when adding or removing dotted sub-keys
- Fixed config --unset, remove and require leaving in place or duplicating composer.json keys which are set to null
- Fixed dist URLs of codeberg.org packages and bitbucket zip archives not being updated when requiring a specific commit with dev-branch#hash
- Fixed an undefined array key warning hiding the real error when curl 8.23+ fails to parse a URL
- Fixed every update aborting with a `SecurityException` when a PHP extension reports a name that is not a valid platform package name
- Fixed GitLab CI job tokens failing to authenticate against the GitLab Composer package registry, which requires HTTP Basic auth rather than the JOB-TOKEN header
- Fixed every update aborting with a SecurityException when a PHP extension reports a name that is not a valid platform package name
- Fixed require and remove dropping empty require, require-dev and repositories keys from composer.json when the command had not emptied them itself
- Fixed a PHP 8.6 deprecation warning from composer/ca-bundle
- Fixed invalid custom-headers auth entries being sent as-is; they are now ignored with a warning
- Fixed @script references with quoted arguments being split on spaces when passed to @composer scripts
- Fixed warnings when finding packages within inline packages of a composer repository
- Fixed composer archive failing on PHP 5.3
- Fixed PHP 8.6 deprecation warnings
- Fixed the lock file's content-hash with a conflict marker ending up breaking at runtime
- Fixed possible race condition while creating directories like the cache dir when running multiple Composer processes in parallel
- Fixed forgejo support to handle empty repositories better
- Fixed FilterListApiClient not forwarding transport options
- The audit command outputs the audit result to stdout
- Backspace characters are no longer output to non-decorated output
- Security advisory blocking no longer causes issues with xdebug enabled
- Provider packages no longer hide suggestions for the package they provide themselves
- GitHub token validation made more relaxed
- Fixed source-fallback also disabling fallbacks to dist install when source is the preferred install method
- Fixed source to dist package updates wiping the .git dir without checking for local changes first
- Fixed GitHub token prompt happening multiple times on parallel auth failures
- Fixed warnings from Composer repositories being printed twice in some cases
- update --bump-after-update now only bumps packages that actually were updated
- GitHub API authentication errors are now visible to the user
- Error reporting for clarity when a constraint cannot be parsed
- Warning no longer shown when lock file is disabled
- Inconsistent treatment of SingleCommandApplication script commands with respect to autoloading
- Some platform package parsing failing when Composer runs in web SAPIs
- audit command returning a success code when the vendor dir was not present
- Removed the `source-fallback` config option, which was added in 2.10 as a temporary measure; dist installs no longer fall back to source
- Most of the audit config in favor of the new policy config
- Fixed arbitrary command execution via the prevent_url_access_callable transport option being loaded from composer.lock / vendor/composer/installed.json
- Fixed malicious zip archives being able to write files outside of the package directory via symlinked entries when extraction falls back from unzip to ZipArchive
- Fixed inline repository HTTP credentials being sent to dist mirrors on other hosts supplied by a crafted composer.lock / vendor/composer/installed.json
- Updated the bundled symfony/filesystem to a version fixing a disclosed vulnerability present in the one shipped with 2.11.1
- Fixed Authorization and Cookie headers set in request options, e.g. via a repository's http.header option, being resent when following a redirect to another origin
- Fixed non-auth config settings being read from a project's auth.json and the COMPOSER_AUTH env var, and home being read from a project's composer.json; these are now ignored with a warning
- Fixed IPs blocked by the prevent_ip_access_callable transport option only being rejected after the request had been sent, and rejected in-flight downloads not being stopped
- Fixed malicious zip archives being able to write files outside of the package directory via symlinked entries when extraction falls back from `unzip` to `ZipArchive`
- Fixed inline repository HTTP credentials being sent to dist mirrors on other hosts supplied by a crafted `composer.lock` or `vendor/composer/installed.json`
- Fixed `Authorization` and `Cookie` headers set in request options, such as via a repository's `http.header` option, being resent when following a redirect to another origin
- Fixed non-auth config settings being read from a project's `auth.json` and the `COMPOSER_AUTH` env var, and `home` being read from a project's composer.json; these are now ignored with a warning
- Fixed package names in `vendor/composer/installed.json` being able to escape the vendor directory during install and reinstall
- Fixed inline repository HTTP headers, such as API tokens, being written into `composer.lock`
- Fixed additional arguments passed to `@composer` scripts not being escaped
- Fixed svn passwords not being redacted from debug output
- Sanitized URL-embedded credentials in hg and fossil error outputalso in2.2.31
- Reject TLS connections presenting distrusted intermediate certificates, even if the system CA store trusts their roots
- Fixed bin proxies embedding package-controlled bin paths and shebangs unescaped, and bin paths containing shell metacharacters are now rejected
- Fixed `secure-http` not catching insecure URLs that are not strictly valid or use git's `<transport>::<address>` syntax
- Fixed repository options like custom HTTP headers being sent along to dist URLs on other hosts whose name starts with the repository host
- Fixed package names in vendor/composer/installed.json being able to escape the vendor directory during install and reinstall (GHSA-c968-33g3-wh7p)
- Fixed inline repository HTTP headers, such as API tokens, being written into composer.lock (GHSA-fm2w-xgf2-f9fh)
- Reject TLS connections presenting distrusted intermediate certificates, with composer/ca-bundle 1.4.16+ now required
- Fixed additional arguments passed to @composer scripts not being escaped
- Fixed repository transport options such as custom HTTP headers being sent to dist URLs on other hosts whose name starts with the repository host
- Fixed the secure-http check skipping malformed URLs and git transport-prefixed URLs
- Validate package bin paths against path traversal using symlinksalso in2.2.30
- Fixed command injection via malicious Perforce urlalso in2.2.30
- Sanitize URL-embedded usernames and tokens in a few more placesalso in2.2.30
- Fixed matching of gitlab URLs to avoid possible credential leak to the wrong domainalso in2.2.30
- Validate package names
- Validate package bin paths against path traversal
- Sanitize URL-embedded usernames and tokens in verbose output
- Only follow HTTP redirects from HTTP responsesalso in2.2.29
- Prevent phar metadata unserialization on unsafe PHP versionsalso in2.2.29
- Sanitize JSON parse errors in HTTP responses to avoid leaking response body dataalso in2.2.29
- Validate package names to prevent malicious or malformed names (GHSA-499r-g7pc-vmp9)
- Validate package bin paths against path traversal (GHSA-gjfg-22fp-rrxx)
- Sanitize URL-embedded usernames and tokens in verbose output (GHSA-g6xq-892h-64w3)
- Fixed shell escaping when opening an editor
- Verify backup phar signature before restoring it when using self-update --rollback
- Disabled automatic fallback to source checkout when dist/zip install fails to avoid the associated security risk
- Hardened output filtering of URLs to reduce chances of token leaks
- Fixed handling of uppercase schemes in URL validation that might have allowed https requirement bypass
- Fixed git credentials remaining in git mirror .git/config after clone or update failed
- Fixed usage of insecure 3DES ciphers when ext-curl is missing
- Enforce allow-plugins even in non-interactive mode for very old pre-2.2 lock files
- Fixed GitHub token validation and disclosure
One release in the range carries no categorized changes yet: 2.9.8. Their original notes, where the vendor published any, are below.
Original release notes, newest first
The list above is our reading of these notes; the originals from Composer are here, one fold per release.
2.11.2
- Security: Fixed arbitrary command execution via the
prevent_url_access_callabletransport option being loaded fromcomposer.lock/vendor/composer/installed.json(GHSA-jhfp-4ppm-crmm) - Security: Fixed malicious zip archives being able to write files outside of the package directory via symlinked entries when extraction falls back from
unziptoZipArchive(GHSA-w6hj-6587-3jh5) - Security: Fixed inline repository HTTP credentials being sent to dist mirrors on other hosts supplied by a crafted
composer.lock/vendor/composer/installed.json(GHSA-x82q-x274-r6pq) - Security: Updated the bundled symfony/filesystem to a version fixing a disclosed vulnerability present in the one shipped with 2.11.1 (GHSA-6prc-h956-hxjq)
- Security: Fixed
AuthorizationandCookieheaders set in request options, e.g. via a repository'shttp.headeroption, being resent when following a redirect to another origin (#13253) - Security: Fixed non-auth config settings being read from a project's
auth.jsonand theCOMPOSER_AUTHenv var, andhomebeing read from a project's composer.json, these are now ignored with a warning (#13208) - Security: Fixed IPs blocked by the
prevent_ip_access_callabletransport option only being rejected after the request had been sent, and rejected in-flight downloads not being stopped (#13255) - Added
exclude-branchesoption to VCS repositories to skip branches matching the given patterns, e.g. bot-managed ones (#13235) - Added support for setting
allow-git-fallbacktofalsein GitLab, Bitbucket and Forgejo repositories to fail on API errors instead of falling back to a git clone (#13234) - Added a 30 seconds stall timeout so downloads from a server which accepts the connection but never responds are aborted and retried instead of hanging for 300 seconds, configurable or disabled via the
COMPOSER_HTTP_STALL_TIMEOUTenv var (#13243) - Improved performance of security advisory lookups by querying the API only once per package name (#13202)
- Improved performance of VCS repository updates by skipping the default branch lookup when the git mirror is up to date (#13224)
- Improved performance and memory usage of dependency resolution, package loading and sorting, and repository traversal (#13187, #13188, #13194, #13197, #13200, #13211, #13217, #13218)
- Improved performance with micro-optimizations in path and URL handling, lock file and
installed.phpgeneration, archiving and TLS/HTTP helpers (#13189, #13190, #13191, #13192, #13193, #13195, #13196, #13198, #13214, #13215, #13216, #13220, #13222) - Fixed
configfailing with a schema error or corrupting composer.json by turning nested{}into[]when adding or removing dotted sub-keys (#13210) - Fixed
config --unset,removeandrequireleaving in place or duplicating composer.json keys which are set tonull(#13225) - Fixed dist URLs of codeberg.org packages and bitbucket zip archives not being updated when requiring a specific commit with
dev-branch#hash(#13242) - Fixed an undefined array key warning hiding the real error when curl 8.23+ fails to parse a URL (#13252)
Full Changelog: https://github.com/composer/composer/compare/2.11.1...2.11.2
2.2.32
- Security: Fixed malicious zip archives being able to write files outside of the package directory via symlinked entries when extraction falls back from
unziptoZipArchive(GHSA-w6hj-6587-3jh5) - Security: Fixed inline repository HTTP credentials being sent to dist mirrors on other hosts supplied by a crafted
composer.lock/vendor/composer/installed.json(GHSA-x82q-x274-r6pq) - Security: Fixed
AuthorizationandCookieheaders set in request options, e.g. via a repository'shttp.headeroption, being resent when following a redirect to another origin (#13254) - Security: Fixed non-auth config settings being read from a project's
auth.jsonand theCOMPOSER_AUTHenv var, andhomebeing read from a project's composer.json, these are now ignored with a warning (#13209) - Fixed every update aborting with a
SecurityExceptionwhen a PHP extension reports a name that is not a valid platform package name (#13185)
Full Changelog: https://github.com/composer/composer/compare/2.2.31...2.2.32
2.11.1
- Added a warning when the cache dir is on a Windows drive while running in WSL, as this makes filesystem operations very slow (#13175)
- Fixed GitLab CI job tokens failing to authenticate against the GitLab Composer package registry, which requires HTTP Basic auth rather than the
JOB-TOKENheader (#13180) - Fixed every update aborting with a
SecurityExceptionwhen a PHP extension reports a name that is not a valid platform package name (#13184) - Fixed
requireandremovedropping emptyrequire/require-dev/repositorieskeys from composer.json when the command had not emptied them itself (#13178) - Fixed a PHP 8.6 deprecation warning from composer/ca-bundle (8bf8c27)
- Fixed invalid
custom-headersauth entries being sent as-is, they are now ignored with a warning (#13181)
2.11.0
Read the Composer 2.11 Release Announcement for more details on the release highlights.
Full Changelog
- BC Break: Removed the
source-fallbackconfig option which was added in 2.10 as a temporary measure, dist installs no longer fall back to source (#13050) - Security: Fixed package names in
vendor/composer/installed.jsonbeing able to escape the vendor directory during install and reinstall (GHSA-c968-33g3-wh7p) - Security: Fixed inline repository HTTP headers, such as API tokens, being written into
composer.lock(GHSA-fm2w-xgf2-f9fh) - Security: Fixed additional arguments passed to
@composerscripts not being escaped (#13169) - Security: Fixed svn passwords not being redacted from debug output (#13171)
- Security: Sanitize URL-embedded credentials in hg and fossil error output (#13172)
- Security: Reject TLS connections presenting distrusted intermediate certificates (the compromised eMudhra ones) even if the system CA store trusts their roots (#13146)
- Security: Fixed bin proxies embedding package-controlled bin paths and shebangs unescaped, and bin paths containing shell metacharacters are now rejected (#13056)
- Security: Fixed
secure-httpnot catching insecure URLs that are not strictly valid or use git's<transport>::<address>syntax (#13144) - Security: Fixed repository options like custom http headers being sent along to dist URLs on other hosts whose name starts with the repository host (#13142)
- Bumped
composer-plugin-apito2.11.0 - Added a
cooldownpolicy to withhold newly released package versions for a configurable period, reducing exposure to compromised releases (#12692, #13098, #13099, #13100, #13102, #13153) - Added
block-scopeoption to custom policies so they can also block duringinstall(#12990) - Added terminal progress/status reporting via OSC 7501 and OSC 9 escape sequences, which can be configured with
COMPOSER_TERMINAL_STATUS(#13117) - Added
--direct(-D) option toauditto only audit direct dependencies (#13121) - Added support for Bitbucket Cloud's new
ssh.bitbucket.orgSSH hostname, which is also used for the SSH fallback now (#13152) - Added
strict-psr-autoloaderconfig option, the equivalent of the--strict-psr-autoloaderflag (#12893) - Added a warning when an optimized autoload dump contains paths only differing in casing (#13085)
- Added
only-branchesoption to VCS repositories to restrict which branches are loaded (#13086) - Added installed versions of sub-dependencies in
show --tree --format=jsonoutput (#13049) - Added batching of security advisory API queries for projects with a very large number of dependencies (#13051)
- Added support for 429 responses and
Retry-Afterheaders, Composer now waits and retries when a repository asks for it (#13082) - Added AI coding agent to the User-Agent (#13073, #13087)
- Added a prompt in
initto add composer.lock to .gitattributes with export-ignore when creating a library (#13127) - Improved dependency resolution performance and memory usage (#13071, #13072, #13103, #13123, #13124, #13132, #13174)
- Improved performance by not requesting HTTP/3 anymore, which added a delay on every new connection with recent curl versions (#13096)
- Improved performance of
outdatedandshow --latestby loading package metadata in parallel (#13113) - Improved explanations for versions blocked by security advisories in dependency conflict errors (#13108, #13075)
- Fixed the lock file not being flagged as outdated when the
policyconfig changes - this will trigger a lock file change warning if you have apolicyconfig defined (#13149) - Fixed
installto fail when composer.lock has a content-hash merge conflict (#13105) - Fixed truncated zip downloads failing at extraction, they are now retried and never cached (#13094)
- Fixed generated files (autoloader, composer.json, ...) being rewritten in place, which affected hardlinked copies and concurrent readers (#13069)
- Fixed SSH URLs losing their user in git commands, causing auth failures since 2.10.3 (#13081)
- Fixed GitLab CI job token authentication (#12916)
- Fixed
custom-headersfrom a project auth.json orCOMPOSER_AUTHreplacing the global ones instead of being merged (#13141) - Fixed parallel requests failing with "Invalid credentials" instead of retrying with credentials obtained by another request (#13135)
- Fixed the GitHub API rate limit not being reported when the clone fallback fails (#13059)
- Fixed
outdatedreporting packages with no installable version as outdated (#13138) - Fixed
update --minimal-changeswith wildcard package names (#13118) - Fixed
bumpnot handling>=10style constraints and loosening OR constraints (#13133) - Fixed security advisories wrongly applying to named dev branches like
dev-main(#13089) - Fixed the vendor dir not being excluded from root classmap scanning in some cases (#13018)
- Fixed self-update failing with a class not found error while swapping the phar (#13079)
- Fixed
clear-cache --no-cachereporting missing dirs instead of the cache being disabled (#13092) - Fixed empty script commands not being treated as a no-op (#13053)
- Fixed
suggestssilently outputting nothing when filtering on a package that is not installed or excluded by--no-dev, it now errors (#13014) - Fixed
JsonManipulator::addSubNode()modifying a nested key with the same name (#13109) - Fixed repeated warnings from repositories being output multiple times (#13090)
- Fixed plugin capability classes being instantiated before checking they implement the right interfaces (#13139)
- Fixed warnings when finding packages within inline packages without uid (#13148)
- Fixed
configcorrupting composer.json when modifyingextraorscriptsentries which are JSON arrays (#13167) - Fixed archives not being unwrapped correctly when OS/editor metadata entries like
__MACOSXorThumbs.dbsit next to the package's top-level dir (#13168) - Fixed
@scriptreferences with quoted arguments being split on spaces when passed to@composerscripts (#13169)
Full Changelog: https://github.com/composer/composer/compare/2.10.3...2.11.0
2.2.31
- Security: Fixed package names in
vendor/composer/installed.jsonbeing able to escape the vendor directory during install and reinstall (GHSA-c968-33g3-wh7p) - Security: Fixed inline repository HTTP headers, such as API tokens, being written into
composer.lock(GHSA-fm2w-xgf2-f9fh) - Security: Reject TLS connections presenting distrusted intermediate certificates,
composer/ca-bundle1.4.16+ is now required (#13147) - Security: Fixed additional arguments passed to
@composerscripts not being escaped (#13170) - Security: Fixed repository transport options such as custom http headers being sent to dist URLs on other hosts whose name starts with the repository host (#13143)
- Security: Fixed
secure-httpcheck skipping malformed URLs and git transport-prefixed URLs (#13145) - Security: Sanitize URL-embedded credentials in hg and fossil error output (#13173)
- Fixed
@scriptreferences with quoted arguments being split on spaces when passed to@composerscripts (#13170) - Fixed warnings when finding packages within inline packages of a composer repository (#13134)
- Fixed
composer archivefailing on PHP 5.3 (#13160)
Full Changelog: https://github.com/composer/composer/compare/2.2.30...2.2.31
2.10.3
- Security: Validate package bin paths against path traversal using symlinks (GHSA-96h3-5x6v-m776, CVE-2026-59944)
- Security: Fixed command injection via malicious Perforce url (GHSA-rvx4-ffvw-m9q3, CVE-2026-84361)
- Security: Sanitize URL-embedded usernames/token in a few more places (#13044)
- Security: Fixed matching of gitlab URLs to avoid possible credential leak to the wrong domain (#12988)
- Fixed PHP 8.6 deprecation warnings (#12967, #13028)
- Fixed error output when a policy blocks a package version to be clearer (#12993)
- Fixed the lock file's content-hash with a conflict marker ending up breaking at runtime (#13048)
- Fixed possible race condition while creating directories like the cache dir when running multiple Composer processes in parallel (#12977)
- Fixed forgejo support to handle empty repositories better (#12968)
- Fixed FilterListApiClient not forwarding transport options (#13040)
Full Changelog: https://github.com/composer/composer/compare/2.10.2...2.10.3
2.2.30
- Security: Validate package bin paths against path traversal using symlinks (GHSA-96h3-5x6v-m776, CVE-2026-59944)
- Security: Fixed command injection via malicious Perforce url (GHSA-rvx4-ffvw-m9q3, CVE-2026-84361)
- Security: Sanitize URL-embedded usernames/token in a few more places (#13045)
- Security: Fixed matching of gitlab URLs to avoid possible credential leak to the wrong domain (#13042)
Full Changelog: https://github.com/composer/composer/compare/2.2.29...2.2.30
2.10.2
- Security: Validate package names (GHSA-499r-g7pc-vmp9 / CVE-2026-59948)
- Security: Validate package bin paths against path traversal (GHSA-gjfg-22fp-rrxx / CVE-2026-59946)
- Security: Sanitize URL-embedded usernames/token in verbose output (GHSA-g6xq-892h-64w3 / CVE-2026-59947)
- Security: Only follow HTTP redirects from HTTP responses (#12948)
- Security: Prevent phar metadata unserialization on unsafe PHP versions (#12946)
- Security: Sanitize JSON parse errors in http responses to avoid leaking response body data (#12959)
- Added warning output in self-update command when using a soon-to-be EOL version (#12920)
- Added download retry when a GitHub codeload URL returns a 400 (#12962)
- Fixed
auditcommand to output the audit result to stdout (#12904) - Fixed backspace characters being output to non-decorated output (#12925)
- Fixed security advisory blocking causing issues with xdebug enabled (#12935)
- Fixed provider packages hiding suggestions for the package they provide themselves (#12933)
- Fixed security advisory blocking causing issues with xdebug enabled (#12935)
Full Changelog: https://github.com/composer/composer/compare/2.10.1...2.10.2
2.2.29
- Security: Validate package names (GHSA-499r-g7pc-vmp9)
- Security: Validate package bin paths against path traversal (GHSA-gjfg-22fp-rrxx)
- Security: Sanitize URL-embedded usernames/token in verbose output (GHSA-g6xq-892h-64w3)
- Security: Only follow HTTP redirects from HTTP responses (#12948)
- Security: Prevent phar metadata unserialization on unsafe PHP versions (#12946)
- Security: Sanitize JSON parse errors in http responses to avoid leaking response body data (#12959)
- Fixed GitHub token validation to be even more relaxed (#12856)
Full Changelog: https://github.com/composer/composer/compare/2.2.28...2.2.29
2.10.1
- Security: Fixed shell escaping when opening an editor (#12903)
- Security: Verify backup phar signature before restoring it when using self-update --rollback (#12918)
- Fixed
source-fallbackalso disabling fallbacks to dist install when source is the preferred install method (#12888) - Fixed source -> dist package updates wiping the .git dir without checking for local changes first (#12912)
- Fixed GitHub token prompt happening multiple times on parallel auth failures (#12913)
- Fixed warnings from Composer repositories being printed twice in some cases (#12907)
Full Changelog: https://github.com/composer/composer/compare/2.10.0...2.10.1
2.10.0
Read the Composer 2.10 Release Announcement for more details on the release highlights.
Full Changelog
- BC Break / Security: Disabled automatic fallback to source checkout if dist/zip install fails, we have introduced a new
source-fallbackconfig option as a temporary way to restore the old behavior, but if you need this talk to us as we plan to remove it entirely in 2.11 (#12885) - BC Break: Minor break for
auditconsumers, the exit code is now always 0 (success) or 1 if anything failed the audit (#12881) - Security: Added dependency policies to block package versions where malware was detected on
update/installor report it withaudit(#12786) - Security: Hardened output filtering of URLs to reduce chances of token leaks (#12882, #12886)
- Security: Fixed handling of uppercase schemes in URL validation that might have allowed https requirement bypass (#12884)
- Security: Fixed git credentials remaining in git mirror .git/config after clone or update failed (2bcbfc3d)
- Security: Fixed usage of insecure 3DES ciphers when ext-curl is missing (5e71d77e)
- Security: Enforce allow-plugins even in non-interactive mode for very old pre-2.2 lock files (#12764)
- Added support for temporary
--withconstraints with wildcards in the package name for theupdatecommand (#12658) - Added
--strict-psr-autoloaderflag toinstallandupdatecommands (#12647) - Added
source-fallbackconfig option to disable or enable source fallback on download failure (#12698) - Added
--requireparameter tocreate-projectto add new packages to the project as it gets installed (#12738) - Optimized plugin autoloading by avoiding regenerating classmaps for every package per plugin (#12696)
- Optimized PoolOptimizer memory usage (#12783)
- Optimized classmap dumping performance
- Deprecated most of the
auditconfig in favor of the newpolicyone (#12804, see #12786 for the RFC and upgrade docs) - Fixed
update --bump-after-updateto only bump packages that actually were updated (#12733) - Fixed GitHub API authentication errors not being visible to the user (#12737)
- Fixed error reporting for clarity when a constraint cannot be parsed (#12743)
- Fixed warning being shown when lock file is disabled (#12760)
- Fixed inconsistent treatment of SingleCommandApplication script commands wrt autoloading (#12758)
- Fixed some platform package parsing failing when Composer runs in web SAPIs (#12735)
- Fixed
auditcommand returning a success code when the vendor dir was not present (#12880)
Full Changelog: https://github.com/composer/composer/compare/2.9.8...2.10.0
2.9.8
- Security: Fixed GitHub token validation and disclosure (GHSA-f9f8-rm49-7jv2)
2.2.28
- Security: Fixed GitHub token validation and disclosure (https://github.com/composer/composer/security/advisories/GHSA-f9f8-rm49-7jv2 / CVE-2026-45793)
Full Changelog: https://github.com/composer/composer/compare/2.2.27...2.2.28