Psalm 7 enables security analysis by default

Psalm 7 has been released, with security analysis enabled by default alongside type checking and dead code detection. According to the announcement on psalm.dev, redesigned taint storage and graph processing make security analysis up to 10 times faster.
The release expands taint tracking to cover NoSQL injection, LLM prompt injection and injection into URL components. New input sources include php://input and uploaded file names. Tracking now follows data through closures, generators, traits and by-reference parameters. Bundled library stubs describe taint behavior and side effects for libraries including Guzzle, PSR-7, Monolog and MongoDB.
A new purity model based on Hack’s capabilities lets functions declare permitted side effects, such as input/output, time access and property changes. Graph-based dead code detection identifies code unreachable from entry points, including unused reference cycles. Template parameters can now have default types, allowing libraries to add templates without breaking existing users.
Psalm 7 runs on 64-bit PHP 8.2–8.6 and supports PHP 8.5’s pipe operator and PHP 8.6’s partial function application. PHPUnit, Symfony, Laravel, Mockery and sabre/event plugins ship with Psalm and activate when matching dependencies are detected. The project has also moved to daily releases.
Original source: psalm.dev ↗
Comments on source platforms
Rank is the maximum of the latest discussion counts. These are source metrics.
Hacker News
- Discussion ↗: 45
Measured: 9 Nov 2026, 20:32 UTC