Flags vulnerable Composer packages in composer.lock and risky PHP code, ranked by real-world exploitation (CISA KEV, EPSS). Runs the local phpwarden CLI.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
PHP vulnerabilities, ranked by real-world exploitation. This extension runs the open-source
phpwarden CLI on your machine and shows its findings in the Problems panel.
What it does
composer.lock: when you open or save composer.lock (and when the workspace opens), it runs
phpwarden deps composer.lock --json and marks each vulnerable package on its "name" line.
Error: the CVE is on CISA's Known Exploited Vulnerabilities list (tagged [EXPLOITED]), or EPSS ≥ 0.5
Warning: critical / high severity
Information: everything else
Quick fix: "Copy upgrade command" copies composer require vendor/pkg:^<fixed> to the clipboard,
using the lowest fixed version above the one you have installed.
PHP code (phpwarden ≥ 2.2; whole-program engine from 2.3.0): when you save a .php file it runs phpwarden code <file> --format sarif
and shows the results. With an older CLI, the status bar says so and the rest keeps working.
Status bar: phpwarden: N exploited / M total. Click it to open Problems.
Install the extension
From the Marketplace (search "phpwarden" in the Extensions view), or:
code --install-extension phpwarden.phpwarden
To build it yourself: npm install && npm run compile && npx @vscode/vsce package --no-dependencies in this folder.
CLI command; may include arguments, e.g. python3 phpwarden.pyz
phpwarden.runOnSave
true
Scan on save
phpwarden.codeScan
true
Run phpwarden code on PHP files
phpwarden.minSeverity
low
low / medium / high / critical. Exploited findings always show
Privacy
Everything runs locally. The extension only starts the phpwarden CLI on your machine against your files.
It uploads no code, lockfiles or telemetry. The CLI checks against its bundled vulnerability feed.