Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>phpwarden — PHP vulnerabilities ranked by exploitationNew to Visual Studio Code? Get it now.
phpwarden — PHP vulnerabilities ranked by exploitation

phpwarden — PHP vulnerabilities ranked by exploitation

phpwarden

| (0) | Free
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.
Copied to clipboard
More Info

phpwarden for VS Code

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.

Install the CLI first

pipx install phpwarden

You can also use the single-file build (https://phpwarden.io/phpwarden.pyz): set phpwarden.path to python3 /path/to/phpwarden.pyz.

Commands

  • phpwarden: Scan workspace
  • phpwarden: Scan composer.lock
  • phpwarden: Show feed status

Settings

Setting Default
phpwarden.path phpwarden 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.

License

Apache-2.0

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft