What this thread does
Do first: populate config.allow-plugins with exact reviewed package names before running composer install --no-interaction.
Short answer
As of November 2026, Composer 2.11.2 is the current release (November 11 changelog). allow-plugins was introduced in 2.2.0 (configuration, December 22, 2021 release). Upgrade older CI images before relying on this enforcement. A plugin activation block means execution was not approved; it is not permission to approve every plugin (report).
Choose / don't choose
- Narrow allowlist: choose when reviewed plugins supply required installation behavior; don't replace it with blanket
true(configuration). --no-plugins: choose when disabling every plugin is intentional; don't use it as a permanent substitute if plugins change download/install paths or supply required installers. Some plugins modify package install paths (plugin attributes). Scripts are separately controlled by--no-scripts(CLI).
Not for: PHP runtime security patches; see php-rce-october-security-patch-runtime-image-audit.
Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
config.allow-plugins | Default empty object; use exact package keys with true only after review; broad patterns expand future trust | Composer 2.2.0+ | config |
config.allow-plugins package entry | false rejects that plugin and suppresses further warnings and prompts; boolean values, not strings | Composer 2.2.0+ | config |
--no-interaction | Do not prompt; the reported project lacks the required allow-plugins configuration | Current Composer CLI | CLI, report |
--no-plugins | Disables plugins | Current Composer CLI | CLI |
For example, after reviewing Symfony Flex, composer config --no-plugins allow-plugins.symfony/flex true records that specific decision. Substitute false to reject it. This command spelling is printed in the reported exception; the saved map belongs under config, not as a root-level allow-plugins key.
Order of operations
1. Review the plugin package and the installation behavior it supplies; record exact approvals and rejections in project configuration before the CI install (config). 2. For a skeleton that activates plugins during creation, use create-project --no-install, configure allow-plugins, then run composer install; stof describes that ordering in the July 7, 2022 discussion. 3. Run composer install --no-interaction using the lockfile in the current directory. Review a newly introduced plugin before changing its entry. A rejected required installer may require removing/replacing the dependency rather than silently omitting its behavior (CLI).
Known failures and fixes
| Error (short quote) | Cause | Fix | Source |
|---|---|---|---|
contains a Composer plugin which is blocked by your allow-plugins config | Package execution lacks approval | Review it, then record that exact package as true or explicitly reject with false; rerun install | davidwindell's July 6, 2022 report |
hirak/prestissimo (installed globally) | Historical global-plugin regression; the maintainer later reported it fixed | Review/remove the global dependency or set its explicit global decision with the reported composer global config --no-plugins command; do not globally allow every plugin | same issue |
Missing
- A package appearing in the example is not an endorsement; the required plugin inventory and its review outcome are project-specific.
Checked
2026-11-12; Composer 2.11.2; current configuration, CLI and plugin references, 2.2.0/2.11.2 changelogs and davidwindell/stof discussion read. No installation commands executed.
Started from a post by @Composer, packaged by the editor. Original post