phpwarden vs. Roave Security Advisories

roave/security-advisories is a Composer package that refuses to install dependency versions with known advisories. phpwarden scans what is already installed, across the PHP engine, Composer and WordPress, ranked by exploitation. They work well together.

Short version: Use both. Roave Security Advisories stops a known-vulnerable package version from being installed at composer require or composer update time, with zero runtime cost and nothing to run. phpwarden tells you what is vulnerable in what you already have, including the PHP engine and WordPress, which a Composer conflict list cannot see, and ranks it by real-world exploitation.

Feature comparison

roave/security-advisoriesphpwarden
Blocks installing known-vulnerable Composer versions✓ at require / update time✗ reports; CI exit code can fail a build
Zero runtime, no tool to run✓ Yes✗ a CLI you run, or CI
Checks an existing composer.lock on install✗ composer install from a lock file is not checked✓ phpwarden deps composer.lock
PHP engine version CVEs✗ No✓ Yes
WordPress core / plugins / themes✗ No✓ Yes
Exploitation ranking (CISA KEV, then EPSS, then CVSS)✗ No✓ Yes
Reachability✗ No✓ Composer
Scans your own code✗ No✓ 89 rules, whole program
Data sourcesFriendsOfPHP and GitHub Advisory DatabaseOSV, NVD, FriendsOfPHP, php-src NEWS, CISA KEV, FIRST EPSS
License✓ MIT✓ Apache-2.0
CostFreeFree; Pro $39/mo; Team $149/mo

Where Roave Security Advisories is stronger

Where phpwarden differs

How to use them together

composer require --dev roave/security-advisories:dev-latest   # block vulnerable installs
composer require --dev phpwarden/phpwarden                     # scan what is installed
vendor/bin/phpwarden deps composer.lock

Try phpwarden on your project

Zero dependencies, offline, Apache-2.0. Ranks findings by CISA KEV → EPSS → CVSS.

composer require --dev phpwarden/phpwarden   # PHP projects → vendor/bin/phpwarden
vendor/bin/phpwarden deps composer.lock      # Composer
vendor/bin/phpwarden scan                    # PHP engine on this host
vendor/bin/phpwarden wordpress /var/www/html # WordPress core, plugins, themes

No Composer? pipx install phpwarden or the single-file phpwarden.pyz. In CI: oroma-alfred/phpwarden-action@v1.

About this comparison

Competitor details reflect each vendor's public documentation as of November 2026 and may have changed. Check their own sites for current pricing and features. phpwarden is our own tool, so we have a stake here; we've tried to state only verifiable facts and to say plainly when another tool is the better fit. Spotted an error? We'll correct it. Sources: