CVE-2026-59931 — Vulnerability in phpoffice/phpspreadsheet — CVE...
PHPSpreadsheet: SSRF bypass via HTTP redirect in WEBSERVICE() domain whitelist
Summary
Advisory Timeline
- First published July 23, 2026 (81 days ago).
- Last revised July 23, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "phpoffice/phpspreadsheet:^5.8.1"
composer require "phpoffice/phpspreadsheet:^2.1.18"
composer require "phpoffice/phpspreadsheet:^2.4.7"
composer require "phpoffice/phpspreadsheet:^3.10.7"
composer require "phpoffice/phpspreadsheet:^1.30.6"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: packagist (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| phpoffice/phpspreadsheet | packagist | 4.0.0, 4.1.0, 4.2.0, 4.3.0 (+12 more) | 5.8.1 |
| phpoffice/phpspreadsheet | packagist | 2.0.0, 2.1.0, 2.1.1, 2.1.10 (+14 more) | 2.1.18 |
| phpoffice/phpspreadsheet | packagist | 2.2.0, 2.2.1, 2.2.2, 2.3.0 (+16 more) | 2.4.7 |
| phpoffice/phpspreadsheet | packagist | 3.10.0, 3.10.1, 3.10.2, 3.10.3 (+13 more) | 3.10.7 |
| phpoffice/phpspreadsheet | packagist | 1.0.0, 1.0.0-beta, 1.0.0-beta2, 1.1.0 (+59 more) | 1.30.6 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-918Server-Side Request Forgery (SSRF)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.7 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-6hq5-7373-42rgWEB
- https://github.com/PHPOffice/PhpSpreadsheet/commit/7ef7b25e8548a6ded79dac74e2e2c7acdac38d8dWEB
- https://github.com/PHPOffice/PhpSpreadsheetPACKAGE
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.30.6WEB
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.1.18WEB
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.4.7WEB
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.7WEB
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.8.1WEB
Frequently Asked Questions
- What is CVE-2026-59931?
- PHPSpreadsheet: SSRF bypass via HTTP redirect in WEBSERVICE() domain whitelist This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.7/10).
- How do I check if my project is affected by CVE-2026-59931?
- CVE-2026-59931 affects phpoffice/phpspreadsheet. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-59931 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2026-45034CRITICAL
PHPSpreadsheet has a patch bypass for CVE-2026-34084
- CVE-2026-34084CRITICAL
PhpSpreadsheet has SSRF/RCE in IOFactory::load when $filename is user controlled
- CVE-2026-59932HIGH
PHPSpreadsheet: Gnumeric reader unbounded gzip expansion causes memory exhaustion
- CVE-2026-40902HIGH
PhpSpreadsheet has CPU Denial of Service via Unbounded Row Number in XLSX Row Dimensions
- CVE-2026-40863HIGH
PhpSpreadsheet has CPU Denial of Service via Unbounded Row Index in SpreadsheetML XML Reader
- CVE-2024-45048HIGH
XXE in PHPSpreadsheet encoding is returned
- CVE-2026-65954HIGH
PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey()
- CVE-2026-59933HIGH
PHPSpreadsheet: XLS/OLE sector-chain self-loop causes memory exhaustion
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies