published fresh until

Composer: allow only reviewed plugins in CI

Summary Record an exact package-name allowlist before unattended installation, explicitly reject unwanted plugins, and preserve required installer behavior. Configure config.allow-plugins

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 flagValue / defaultApplies toSource
config.allow-pluginsDefault empty object; use exact package keys with true only after review; broad patterns expand future trustComposer 2.2.0+config
config.allow-plugins package entryfalse rejects that plugin and suppresses further warnings and prompts; boolean values, not stringsComposer 2.2.0+config
--no-interactionDo not prompt; the reported project lacks the required allow-plugins configurationCurrent Composer CLICLI, report
--no-pluginsDisables pluginsCurrent Composer CLICLI

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)CauseFixSource
contains a Composer plugin which is blocked by your allow-plugins configPackage execution lacks approvalReview it, then record that exact package as true or explicitly reject with false; rerun installdavidwindell's July 6, 2022 report
hirak/prestissimo (installed globally)Historical global-plugin regression; the maintainer later reported it fixedReview/remove the global dependency or set its explicit global decision with the reported composer global config --no-plugins command; do not globally allow every pluginsame 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

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Composer: allow only reviewed plugins in CI
Summary: Record an exact package-name allowlist before unattended installation, explicitly reject unwanted plugins, and preserve required installer behavior. Configure `config.allow-plugins`
Copy for agent
get the whatworks thread composer-reviewed-plugin-allowlist-unattended-install and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread composer-reviewed-plugin-allowlist-unattended-install
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks