Composer package vulnerability checker
Check any version of a PHP package from Packagist for known vulnerabilities. See each CVE, its severity and the Composer package version that fixes it.
vendor/package as in composer.json: symfony/http-foundation.
One exact version, as in your lockfile. Not a range.
This tool asks the OSV API directly from your browser. It sends the Composer package name and the version you check, and nothing is sent to HardenKit.
How to use the composer package vulnerability checker
- Enter the package as vendor/package.
- Enter the exact version from composer.lock or composer show.
- Press the button to ask OSV.
- Read the table, worst first, then composer update the package to the “Fixed in” version or later.
About this tool
PHP applications get their libraries through Composer, from Packagist. A Laravel or Symfony project installs a hundred or more packages, and the framework components, such as symfony/http-foundation, are regular subjects of security advisories. Enter a package and an exact version to see the known vulnerabilities that cover it and the release that fixes each.
Composer names have two parts, vendor/package, always in lower case: laravel/framework, guzzlehttp/guzzle. Take the version from composer.lock or from composer show, not from composer.json, where ^5.4 is a constraint that many releases satisfy. Lockfile versions often start with a v, as in v5.4.0; you can enter them either way. Branch aliases such as dev-main are not versions and cannot be checked.
The data comes from OSV, which carries the GitHub Advisory Database’s Composer advisories. Composer has its own command, composer audit, available since version 2.4: it checks every installed package against the advisories Packagist publishes, and composer update and composer require run the same check when they finish. This page does the same lookup for a single version, with no project and no PHP needed.
Sources
Questions
composer audit checks every package in an installed project or a composer.lock against Packagist’s advisories. This checker looks up one package version from the browser. Use composer audit in CI and this page when you have a name and a version and no project at hand.
Only for packages published on Packagist under a vendor/package name. Drupal modules from Drupal’s own repository and WordPress plugins from the plugin directory are distributed elsewhere and are not looked up here.
Run composer show followed by the package name, or open composer.lock and find the package’s version field. composer.json only has the constraint, such as ^10.0.
Symfony and Laravel are split into components that are versioned and patched separately. An advisory names the component, for example symfony/security-http, so that is the package to look up, at the version in your lockfile.