CriticalPHP2Shell: is your PHP patched?

critical vulnerability

shell-quote: `quote()` command injection via a line terminator in a token after a `{ comment }` token

Published Oct 6, 2026 · updated Oct 6, 2026

What to do

  1. Upgrade to a fixed version: shell-quote 1.11.0.
  2. Redeploy and restart long-running processes so they load the fixed code.

Affected packages

shell-quote

>= 1.8.4, < 1.11.0
1.11.0

Check your project: npm ls shell-quote --all

Is shell-quote@1.11.0 safe to install? See the upgrade verdict →

Sources

← All critical vulnerabilities