phpoffice/phpspreadsheet Known Vulnerabilities & Fixes
phpoffice/phpspreadsheet has 8 known security vulnerabilities in Packagist (PHP). Upgrade to version 5.8.1 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.
Low Immediate Risk
No actively exploited vulnerabilities detected. Monitor and update in your next maintenance window.
Recommended safe version: 5.8.1
Upgrading to 5.8.1 or later resolves all 8 known vulnerabilities in phpoffice/phpspreadsheet. Run: composer require phpoffice/phpspreadsheet:^5.8.1
Is phpoffice/phpspreadsheet in your project?
Check if you're affected and upgrade to 5.8.1 to stay secure.
Security Summary
- 34 affected version ranges have been identified across these 8 advisories.
- 100% of known issues have a published fixed version.
- Remediation: composer update phpoffice/phpspreadsheet
Vulnerabilities
8 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Aug 29, 2024, most recently Jul 23, 2026 (693 days apart).
| CVE / GHSA | Severity | Affected | Fixed In |
|---|---|---|---|
| CVE-2026-34084 PhpSpreadsheet has SSRF/RCE in IOFactory::load when $filename is user controlled | CRITICAL | 4.0.0, 4.1.0, 4.2.0, 4.3.0 (+115 more) | 5.6.0, 3.10.4, 2.4.4 (+2 more) |
| CVE-2026-45034 PHPSpreadsheet has a patch bypass for CVE-2026-34084 | CRITICAL | 1.0.0, 1.0.0-beta, 1.0.0-beta2, 1.1.0 (+58 more) | 1.30.5 |
| CVE-2026-40902 PhpSpreadsheet has CPU Denial of Service via Unbounded Row Number in XLSX Row Dimensions | HIGH | 4.0.0, 4.1.0, 4.2.0, 4.3.0 (+120 more) | 5.7.0, 3.10.5, 2.4.5 (+2 more) |
| CVE-2026-40863 PhpSpreadsheet has CPU Denial of Service via Unbounded Row Index in SpreadsheetML XML Reader | HIGH | 4.0.0, 4.1.0, 4.2.0, 4.3.0 (+120 more) | 5.7.0, 3.10.5, 2.4.5 (+2 more) |
| CVE-2024-45048 XXE in PHPSpreadsheet encoding is returned | HIGH | 1.0.0, 1.0.0-beta, 1.0.0-beta2, 1.1.0 (+45 more) | 1.29.1, 2.2.1, 2.1.1 |
| CVE-2026-59931 PHPSpreadsheet: SSRF bypass via HTTP redirect in WEBSERVICE() domain whitelist | HIGH | 4.0.0, 4.1.0, 4.2.0, 4.3.0 (+130 more) | 5.8.1, 3.10.7, 2.4.7 (+2 more) |
| CVE-2026-59933 PHPSpreadsheet: XLS/OLE sector-chain self-loop causes memory exhaustion | HIGH | 4.0.0, 4.1.0, 4.2.0, 4.3.0 (+130 more) | 5.8.1, 3.10.7, 2.4.7 (+2 more) |
| CVE-2026-59932 PHPSpreadsheet: Gnumeric reader unbounded gzip expansion causes memory exhaustion | HIGH | 4.0.0, 4.1.0, 4.2.0, 4.3.0 (+130 more) | 5.8.1, 3.10.7, 2.4.7 (+2 more) |
About This Data
Vulnerability data for phpoffice/phpspreadsheet 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 phpoffice/phpspreadsheet.