Menu

Why Composer Suddenly Refuses to Install Laravel 11 (and the 2-Step Upgrade That Fixes It)
πŸ“°

Why Composer Suddenly Refuses to Install Laravel 11 (and the 2-Step Upgrade That Fixes It)

DEV Community: laravelΒ·Raja HunainΒ·4 days ago
#33uBHD0G
#devtolaravel#devto#dev#laravel#composer
Long article (628 words) β€” no AI summary yet.
Reading 0:00
15s threshold

If you tried to set up a Laravel 11 project recently, you may have met a wall you did not expect: Composer refusing to install the framework at all. Not a version conflict, not a missing extension β€” a flat refusal, with a list of security advisory IDs.

Root composer.json requires laravel/framework ^11.31, found laravel/framework[v11.31.0, ..., v11.57.1] but these were not loaded, because they are affected by security advisories

This is not a bug in your project. It is Composer doing exactly what it was told to do since version 2.9: skip any package version with an open security advisory. And because Laravel 11 reached end of life on 12 March 2026, its advisories will never be fixed in an 11.x release. Every 11.x version is blocked, permanently.

What is actually wrong with Laravel 11: Running composer audit on the last 11.x release reports five advisories. The worst is a critical TokenGuard authentication bypass. There are also CRLF injection issues in the email rule and an XSS in the debug page.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.