Skip to content

Update phpunit/phpunit to fix CVE-2026-24765#50

Merged
AaronAtDuo merged 2 commits intomasterfrom
fix/update-phpunit-cve-2026-24765
Mar 25, 2026
Merged

Update phpunit/phpunit to fix CVE-2026-24765#50
AaronAtDuo merged 2 commits intomasterfrom
fix/update-phpunit-cve-2026-24765

Conversation

@AaronAtDuo
Copy link
Copy Markdown
Contributor

@AaronAtDuo AaronAtDuo commented Mar 25, 2026

Summary

  • Updates phpunit/phpunit from 9.6.8 to 9.6.34, fixing CVE-2026-24765 (unsafe deserialization in PHPT code coverage handling, CVSS 7.8 High)
  • Pins doctrine/instantiator to 1.x to maintain PHP 8.2 compatibility (2.x uses typed constants requiring PHP 8.3+)

Test plan

  • Unit tests pass on PHP 8.2 (56 tests, 92 assertions)
  • Unit tests pass on PHP 8.3 (56 tests, 92 assertions)
  • CI pipeline passes across full PHP matrix (8.2, 8.3, 8.4, 8.5)

🤖 Generated with Claude Code

Fix Dependabot alert #8: unsafe deserialization in PHPT code coverage
handling. Keeps doctrine/instantiator at 1.x for PHP 8.2 compatibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@AaronAtDuo AaronAtDuo enabled auto-merge (squash) March 25, 2026 14:16
Copy link
Copy Markdown
Contributor

@jeffreyparker jeffreyparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My (limited) understanding is that the composer.json should be updated with the new constraint, then composer update should auto-generate this lockfile. Do we need to also add the composer.json to this PR?

@AaronAtDuo
Copy link
Copy Markdown
Contributor Author

Good catch — the ~9 constraint already allows 9.6.34 so the lock file update works, but you're right that we should also tighten the constraint in composer.json to ~9.6.33 to prevent installing vulnerable versions. I'll update the PR.

Prevents installing versions vulnerable to CVE-2026-24765.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@AaronAtDuo AaronAtDuo merged commit 9e26e51 into master Mar 25, 2026
5 checks passed
@AaronAtDuo AaronAtDuo deleted the fix/update-phpunit-cve-2026-24765 branch March 25, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants