Psalm 7 adds built-in security scanning and dead code detection for PHP
Vimeo and Daniil Gentili have released Psalm 7, a major update to the PHP static analysis tool. The release turns on security analysis by default alongside type checking, expands taint tracking to cover NoSQL, LLM prompt and URL injection, and introduces a purity model inspired by Hack's capabilities system as well as graph-based dead code detection and template defaults for generics.
GoKawiil's interpretation of the reporting above, not reported fact.
Bundling security taint analysis into the same pass as type checking could make it easier for PHP teams to catch vulnerabilities like injection flaws without running separate tools, potentially lowering the barrier to adopting security scanning in everyday workflows. The addition of a purity model and smarter dead code detection suggests Psalm is pushing toward richer static guarantees similar to those found in more strictly typed languages.
- Psalm 7 enables security analysis by default with a reported 10x+ performance improvement
- Taint tracking now covers new sources like php://input, uploaded filenames, and injection types including NoSQL and LLM prompts
- New purity model and graph-based dead code detection add deeper static guarantees for PHP codebases
Source: psalm.dev, 2026-11-07
Published there as: “Psalm 7 release: PHP security&static analysis software”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.