Loading...
Skip to main content
Packagist (PHP)

phpunit/phpunit Known Vulnerabilities & Fixes

phpunit/phpunit has 2 known security vulnerabilities in Packagist (PHP). Upgrade to version 12.5.8 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.

2 Vulnerabilities

Actively Exploited

CISA has confirmed this package has vulnerabilities under active exploitation. Prioritize updating immediately.

Recommended safe version: 12.5.8

Upgrading to 12.5.8 or later resolves all 2 known vulnerabilities in phpunit/phpunit. Run: composer require phpunit/phpunit:^12.5.8

Is phpunit/phpunit in your project?

Check if you're affected and upgrade to 12.5.8 to stay secure.

2
Total
1
Critical
1
High
0
Medium
0
Low

Active Exploitation Warning

One or more vulnerabilities in this package are known to be actively exploited in the wild. Immediate action is recommended.

Security Summary

  • 7 affected version ranges have been identified across these 2 advisories.
  • 100% of known issues have a published fixed version.
  • Remediation: composer update phpunit/phpunit

Vulnerabilities

2 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Mar 26, 2022, most recently Jan 27, 2026 (1404 days apart).

CVE / GHSASeverityAffectedFixed In
CVE-2017-9841
Code Injection in PHPUnit
CRITICAL
4.8.19, 4.8.20, 4.8.21, 4.8.22 (+53 more)4.8.28, 5.6.3
CVE-2026-24765
PHPUnit Vulnerable to Unsafe Deserialization in PHPT Code Coverage Handling
HIGH
3.7.0, 3.7.1, 3.7.10, 3.7.11 (+753 more)8.5.52, 9.6.33, 10.5.62 (+2 more)

About This Data

Vulnerability data for phpunit/phpunit is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.

CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Related Packagist (PHP) Packages

Other packages in this ecosystem, ranked by shared vulnerabilities where available.

Check Your Dependencies

Scan your project to check if you're using a vulnerable version of phpunit/phpunit.

Data from OSV DatabaseUpdated daily200K+ vulnerabilities indexed