We tested phpwarden against composer audit and OSV.dev on four PHP stacks

Four PHP stacks pinned to old releases, three scanners, every advisory matched by ID. The three find nearly the same vulnerabilities, and phpwarden 2.0.3 finds all of them. Of 297 findings, 100 are rated critical or high and 4 are actually exploited or likely to be. The difference is which one you see first.

Published 2026-11-12 · tested 2026-11-12 with phpwarden 2.0.2 and 2.0.3, Composer 2.10.3 and api.osv.dev · harness and raw results: bench/composer-2026-11

A fair criticism of phpwarden is that nobody has checked it. So here is a test anyone can rerun: the same lockfiles, three tools, every advisory matched across them. The numbers below include the places where phpwarden lost.

295distinct advisories across 4 stacks
0phpwarden findings no other tool reported
100%found by phpwarden 2.0.3, free offline feed
4actually exploited or likely to be

1. The setup

Four PHP projects, each pinned to an old release so it carries known vulnerabilities. The lockfiles are committed, so every run scans the same package versions.

StackPinned toPackages
Laravel 8laravel/framework 8.0.0, guzzle 7.0.157
Symfony 4.4symfony/symfony 4.4.0, twig 2.12.0, doctrine/orm 2.7.027
Drupal 9drupal/core 9.0.058
PHP librariesguzzle 6.5, phpmailer 6.1, dompdf 0.8.3, phpseclib 2.0.20, commonmark 1.5, smarty 3.1.33, tcpdf 6.3.2, php-jwt 5.015

Each lockfile went through composer audit, through phpwarden deps, and through OSV.dev's API. Two findings count as the same advisory when they share any identifier: CVE, GHSA, Packagist ID, FriendsOfPHP file or OSV alias. Six Drupal advisories exist only as SA-CORE-* numbers in Drupal's own repository and share no identifier with anything else. Those were paired with the other tools' findings when the fixed releases matched exactly; the script prints each pair.

2. Detection: close to a draw

ToolFoundOf 295
phpwarden, maintained feed (2026.11.12.3)295100%
phpwarden 2.0.3, free bundled feed (2026.11.12.3)295100%
composer audit28696.9%
phpwarden 2.0.2, free bundled feed (2026.10.31.2)27292.2%
OSV.dev26288.8%

composer audit is very good. It is free, it ships with Composer, and it found 97% of what any of the three found. The nine it did not list are mostly advisories that exist in FriendsOfPHP or OSV under identifiers its database does not carry. Some of the gap may be identifier bookkeeping rather than a real miss.

OSV.dev found the fewest because it lacks most of Drupal's own advisories and some FriendsOfPHP entries.

Where phpwarden lost. The free CLI scans offline against the feed bundled in the release. In 2.0.2 that feed was built on 2026-10-31, and it missed 23 advisories, all published after that date: 13 in Symfony 4.4, 9 in the Symfony components Drupal uses, and 1 in phpseclib from 2026-11-02. The maintained feed (now rebuilt twice a day) caught all of them. We shipped 2.0.3 the same day with that day's feed bundled, and it finds all 295. The trade of an offline tool remains: the bundled feed is only as fresh as your release, so update the CLI when a new one comes out. (From phpwarden 2.2, phpwarden feed update also pulls a free weekly snapshot without a key.)

Running this test also caught a bug. Today's feed briefly listed a PHP engine fix from a release scheduled for next week, which made the current PHP 8.5.12 look vulnerable. The importer now ignores release-note sections dated in the future, and 2.0.3 does not carry that entry.

False positives. Every finding phpwarden reported was also reported by at least one of the other two tools.

A disclosure that this test does not cover: until 2026-11-12 the PHP engine part of phpwarden's feed was incomplete, with 8 engine CVEs instead of 145. It is fixed in 2.0.2; the changelog has the details.

3. Ranking: the part that differs

All three tools hand you roughly the same list. On these four stacks that list is 297 findings, and 100 of them are rated critical or high. Of those 100, 62 have an exploitation probability (EPSS) under 1%. A "fix everything high and above" policy means 100 upgrades, most of them for bugs nobody is using.

Four findings are different: two are in CISA's Known Exploited Vulnerabilities catalog, and two more have an EPSS above 80%.

StackFindingWhy it mattersphpwarden rankCVSS sortFixed in
Drupal 9drupal/core CVE-2026-9082KEV, EPSS 89%1 of 116tied 1st10.4.10
Drupal 9drupal/core CVE-2020-13671KEV, EPSS 31%2 of 1167th9.0.8
PHP librariesdompdf CVE-2022-28368EPSS 84%1 of 77tied 3rd1.2.1
PHP librariessmarty CVE-2021-26120EPSS 82%2 of 77tied 3rd3.1.39

phpwarden puts each of the four first or second in its project. Sorted by CVSS, they are mixed in with findings nobody is using. In the libraries project, two 10.0s with an EPSS of 4% or less sit above dompdf and smarty. In Drupal, the top exploited bug ties with five other 9.8s that each have an EPSS around 1%, and the second one lands seventh. composer audit lists findings by package and carries no exploitation data, so it cannot sort this way at all.

Read across the four projects, the order of work is plain: patch the Drupal site today, then the libraries project. The Laravel and Symfony apps have plenty of findings but nothing known to be exploited. The highest exploitation probability among them is 45%, for Laravel's CVE-2024-52301. They can wait for the next normal maintenance window.

4. Limits of this test

5. Rerun it

git clone https://github.com/oroma-alfred/phpwarden
pipx install phpwarden
sh phpwarden/bench/composer-2026-11/run.sh

Set FEED=bundled to test only the feed bundled in your installed version. The script prints the counts above and every Drupal pairing it made.

Where this leaves phpwarden

If you run composer audit in CI, keep it. On WordPress, keep Wordfence or Patchstack: they block attacks and phpwarden does not. phpwarden runs alongside them and answers a different question, the one a list of 297 findings does not: which site to patch first. For one project you can do that by hand. For an agency or host with fifty client sites, the fleet view does it across all of them at once.