Commit 6232042
committed
fix(security+psalm): update phpunit to 12.5.9 and suppress ForbiddenCode
Security:
- phpunit/phpunit updated from ^12.0 to ^12.5.8 (resolves CVE-2026-24765:
unsafe deserialisation in PHPT code coverage handling, severity HIGH)
- 'composer audit' now reports no vulnerabilities
Psalm ForbiddenCode:
- Add @psalm-suppress ForbiddenCode on shell_exec() calls in:
- src/Core/ProcessExecutor: tier-3 binary resolution via 'command -v'
- src/Runner/ComposerAuditRunner: composer binary resolution
Both uses are safe: input is sanitised with escapeshellarg()
Local CI simulation results:
dependencies PASSED (composer validate + check-platform-reqs)
security PASSED (no advisories)
phpstan PASSED (PHPStan level 9: 0 errors; Psalm: 0 errors)
cs-fixer PASSED (code style OK)
tests OK (41 tests, 81 assertions)1 parent e119b54 commit 6232042
File tree
3 files changed
+4
-2
lines changed- src
- Core
- Runner
3 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | 30 | | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments