
Psalm is a type-checking static analysis tool for PHP that finds bugs humans can miss, and improves code quality. Try it at https://www.nitter.cf/t.co/eBajkMPMkn
CI builds
Joined December 2018
- Tweets867
- Following9
- Followers3.4K
- Likes358
🔥 Psalm 7.0.0 is here!
The biggest Psalm release in years: powerful PHP security analysis in every run, a Hack-inspired purity model, graph-based dead code detection, full PHP 8.6 support and major framework plugins in the box. 🧵
github.com/vimeo/psalm/relea…
#PHP #Psalm
Psalm 7.28.0 has been released: github.com/vimeo/psalm/relea… #psalm
3
128
Psalm 7.27.0 has been released: github.com/vimeo/psalm/relea… #psalm
2
123
Psalm 7.26.0 has been released: github.com/vimeo/psalm/relea… #psalm
120
Psalm 7.25.1 has been released: github.com/vimeo/psalm/relea… #psalm
133
Psalm 7.25.0 has been released: github.com/vimeo/psalm/relea… #psalm
122
Psalm 7.24.1 has been released: github.com/vimeo/psalm/relea… #psalm
2
141
Psalm 7.24.0 has been released: github.com/vimeo/psalm/relea… #psalm
2
179
Psalm 7.23.0 has been released: github.com/vimeo/psalm/relea… #psalm
186
Psalm retweeted
Great find. The trick is plain Eloquent: a relation name runs as a method, so request input in with() can call truncate().
Laravel fixed its resource. Your own ?include handling needs an allowlist, so I taught Psalm to check it.
Psalm + psalm-plugin-laravel 🛡️ (fresh versions)

ALT Psalm output on a Laravel controller, app/Http/Controllers/InvoiceController.php. Line 14: Invoice::query()->with(explode(',', (string) $request->input('include')))->paginate() reports SECURITY TaintedCallable. Line 21: $invoice->$action(), where $action = (string) $request->input('action'), reports SECURITY TaintedCallable. Note below the output: GET /invoices?include=truncate runs TRUNCATE TABLE invoices.
This was one of the craziest Laravel bugs I reported (CVE-2026-114508). A read-only GET request could wipe an entire database table 🚨
With Laravel's JSON:API resources, changing ?include=comments to ?include=comments.truncate passed "truncate" straight to Eloquent without checking the child resource. Even though the request returned HTTP 500, Laravel had already run TRUNCATE TABLE comments.
Patched in Laravel 12.68.0 & 13.27.0 (PR #61322).
More info 👇
Psalm 7.22.1 has been released: github.com/vimeo/psalm/relea… #psalm
3
163
Psalm 7.22.0 has been released: github.com/vimeo/psalm/relea… #psalm
150
Psalm 7.21.1 has been released: github.com/vimeo/psalm/relea… #psalm
2
119
Psalm 7.21.0 has been released: github.com/vimeo/psalm/relea… #psalm
121
Psalm 7.20.0 has been released: github.com/vimeo/psalm/relea… #psalm
3
195
Psalm 7.19.0 has been released: github.com/vimeo/psalm/relea… #psalm
5
220
Psalm 7.18.0 has been released: github.com/vimeo/psalm/relea… #psalm
Psalm 7.17.0 has been released: github.com/vimeo/psalm/relea… #psalm
131
Psalm 7.16.0 has been released: github.com/vimeo/psalm/relea… #psalm
159
Psalm 7.15: full PHP 8.6 support, SQL-aware security analysis and weak crypto detection (and an official newsletter!)
psalm.dev/articles/psalm-7-1…
Psalm 7.15.0 has been released: github.com/vimeo/psalm/relea… #psalm
4
230


