← PHP / Laravel · Contents

PHP-045 / Beginner

Leaving outdated Composer packages in place (known vulnerabilities)

A06:2021 Vulnerable and Outdated Components · CWE-1104 Unmaintained Third Party Components

Why is this a problem?

Versions with publicly disclosed vulnerabilities remain in production.

How to fix it

bash
composer audit            # Check vulnerability advisories
composer update --with-all-dependencies   # Move to a supported version, then test

Further reading