Require PHPUnit 9.6.33+ (CVE-2026-24765)#3224
Merged
Conversation
The previous `^9` constraint left dev installs free to resolve to PHPUnit 9.6.29, which has a known unsafe-deserialization advisory in PHPT code coverage handling (CVE-2026-24765, high). Tighten the minimum so every fresh `composer install` picks up the patched release. Dev-only dependency; no runtime impact.
There was a problem hiding this comment.
Pull request overview
This PR tightens the dev-only Composer constraint for phpunit/phpunit to ensure fresh installs pull in a patched PHPUnit release addressing CVE-2026-24765, and adds a changelogger entry documenting the tooling/security update.
Changes:
- Update
phpunit/phpunitincomposer.jsonfrom^9to^9.6.33. - Add a
.github/changelog/entry documenting the PHPUnit minimum version bump for a security fix.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| composer.json | Tightens the PHPUnit dev dependency constraint to require the patched 9.6.33+ line. |
| .github/changelog/update-composer-phpunit-min | Adds a changelogger entry describing the dev tooling security-motivated dependency bump. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes:
Tightens the
phpunit/phpunitconstraint from^9to^9.6.33so that every freshcomposer installpicks up the patched release. The old range resolves to 9.6.29 on a clean install, which has a high-severity advisory for unsafe deserialization in PHPT code coverage handling (CVE-2026-24765).Dev-only dependency — no runtime impact on end users or production sites, only on developer and CI environments that run the test suite.
After the bump,
composer auditreports no advisories.symfony/processalso had a Medium advisory (CVE-2026-24739) but it is a transitive dep viajetpack-changelogger → symfony/console; the resolver already picks the patched 7.4.8 without any direct change needed.Other information:
No new tests required — this is a dependency constraint update. The full suite continues to pass under the updated PHPUnit 9.6.34.
Testing instructions:
composer install— verify it resolves PHPUnit 9.6.33 or newer.composer audit— should report "No security vulnerability advisories found."npm run env-test— full suite should still pass.Changelog entry
Included as
.github/changelog/update-composer-phpunit-min, significancepatch/ typechanged.