phpunit/phpunit vulnerabilities
The PHP Unit Testing framework.
- Registry
- Composer
- Latest
- 13.4.6
- License
- BSD-3-Clause
5 known advisories
The latest version, 13.4.6, is not affected by any of them. Projects on older versions may be.
composer require phpunit/phpunit:^13.4.6Is your project on an affected phpunit/phpunit?
Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Security advisories for phpunit/phpunit
PHPUnit vulnerable to code execution by other local users via shared temporary directory in PHPT code coverage handling
- Affected
- >=13.4.0 <13.4.4
- Fixed in
- 13.4.4
PHPUnit: Argument injection via newline in PHP INI values forwarded to child processes
- Affected
- >=12.5.21 <12.5.22 · >=13.1.5 <13.1.6
- Fixed in
- 12.5.22, 13.1.6
PHPUnit has Argument injection via newline in PHP INI values that are forwarded to child processes
- Affected
- >=12.5.21 <12.5.22 · >=13.1.5 <13.1.6
- Fixed in
- 12.5.22, 13.1.6
PHPUnit Vulnerable to Unsafe Deserialization in PHPT Code Coverage Handling
- Affected
- <8.5.52 · >=9.0.0 <9.6.33 · >=10.0.0 <10.5.62 · >=11.0.0 <11.5.50 · >=12.0.0 <12.5.8
- Fixed in
- 8.5.52, 9.6.33, 10.5.62, 11.5.50, 12.5.8
Code Injection in PHPUnit
- Affected
- >=4.8.19 <4.8.28 · >=5.0.10 <5.6.3
- Fixed in
- 4.8.28, 5.6.3
Is your phpunit/phpunit version vulnerable?
- phpunit/phpunit 13.4No known advisories in 13.4.6
- phpunit/phpunit 13.3No known advisories in 13.3.6
- phpunit/phpunit 13.2No known advisories in 13.2.6
- phpunit/phpunit 13.1No known advisories in 13.1.14
- phpunit/phpunit 13.0No known advisories in 13.0.6
- phpunit/phpunit 12.5No known advisories in 12.5.43
- phpunit/phpunit 12.41 advisory in 12.4.5
- phpunit/phpunit 12.31 advisory in 12.3.15
- phpunit/phpunit 12.21 advisory in 12.2.9
- phpunit/phpunit 12.11 advisory in 12.1.6
- phpunit/phpunit 12.01 advisory in 12.0.10
- phpunit/phpunit 11.5No known advisories in 11.5.57
- phpunit/phpunit 11.41 advisory in 11.4.4
- phpunit/phpunit 11.31 advisory in 11.3.6
- phpunit/phpunit 11.21 advisory in 11.2.9
- phpunit/phpunit 11.11 advisory in 11.1.3
- phpunit/phpunit 11.01 advisory in 11.0.10
Which of your client projects still run an old phpunit/phpunit?
NPMscan reads the composer.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.
Other Composer packages
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the Composer registry.