Home / PHPOffice / PhpSpreadsheet / CVE-2026-59931
CVE-2026-59931: is it exploited, and which versions of PHPOffice PhpSpreadsheet are affected and fixed?
CVE-2026-59931 is a server-side request forgery (SSRF) vulnerability in PHPOffice PhpSpreadsheet. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: phpoffice/phpspreadsheet from 4.0.0 before 5.8.1, phpoffice/phpspreadsheet from 3.3.0 before 3.10.7, phpoffice/phpspreadsheet from 2.2.0 before 2.4.7 and 2 more (GitHub advisory GHSA-6hq5-7373-42rg). Fixed in 5.8.1, 3.10.7, 2.4.7, 2.1.18 and 1 more (GitHub advisory GHSA-6hq5-7373-42rg). Severity: High (7.7, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 19, 2026, 07:06 UTC and NVD November 19, 2026, 07:09 UTC.
What is CVE-2026-59931?
PhpSpreadsheet: SSRF bypass via HTTP redirect in WEBSERVICE() domain whitelist
PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. In versions 4.0.0 through 5.8.0, 3.3.0 through 3.10.6, 2.2.0 through 2.4.6, 2.0.0 through 2.1.17, and all releases up to and including 1.30.5, the WEBSERVICE() domain whitelist can be bypassed via an HTTP redirect (SSRF). In Calculation/Web/Service.php, the webService() method validates a URL's host against the whitelist set via Spreadsheet::setDomainWhiteList(), then fetches content with file_get_contents($url, false, $ctx); because PHP's HTTP stream wrapper follows 301/302 redirects automatically (up to 20 hops) and the redirect target is never re-validated, an attacker who can trigger a redirect from a whitelisted domain can reach arbitrary URLs, including internal addresses. An attacker able to upload XLSX files to an application that uses setDomainWhiteList() and getCalculatedValue() can achieve a full-read SSRF, returning up to 32,767 bytes of the response body as a cell's calculated value, which enables exfiltration of cloud metadata (AWS/GCP/Azure credentials via http://169.254.169.254/), access to internal-only services, and internal port scanning (the port is not validated). This issue has been fixed in versions 5.8.1, 3.10.7, 2.4.7, 2.1.18, and 1.30.6.
From the CVE record by GitHub_M, last updated July 28, 2026, 18:13 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| PHPOffice | PhpSpreadsheet | >= 4.0.0, < 5.8.1 >= 3.3.0, < 3.10.7 >= 2.2.0, < 2.4.7 >= 2.0.0, < 2.1.18 < 1.30.6 |
As the CVE record by GitHub_M states it, last updated July 28, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | phpoffice/phpspreadsheet | >= 4.0.0, < 5.8.1 | 5.8.1 | GHSA-6hq5-7373-42rg |
| Packagist | phpoffice/phpspreadsheet | >= 3.3.0, < 3.10.7 | 3.10.7 | GHSA-6hq5-7373-42rg |
| Packagist | phpoffice/phpspreadsheet | >= 2.2.0, < 2.4.7 | 2.4.7 | GHSA-6hq5-7373-42rg |
| Packagist | phpoffice/phpspreadsheet | >= 2.0.0, < 2.1.18 | 2.1.18 | GHSA-6hq5-7373-42rg |
| Packagist | phpoffice/phpspreadsheet | < 1.30.6 | 1.30.6 | GHSA-6hq5-7373-42rg |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 23, 2026. Summary: PHPSpreadsheet: SSRF bypass via HTTP redirect in WEBSERVICE() domain whitelist.
How severe is CVE-2026-59931?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.7 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-59931 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, July 28, 2026)
- EPSS
- 0.59% probability of exploitation activity in the next 30 days, percentile 49.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-918 Server-Side Request Forgery
Where are the vendor advisories and references?
- https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-6hq5-7373-42rg x_refsource_CONFIRM
- https://github.com/PHPOffice/PhpSpreadsheet/commit/7ef7b25e8548a6ded79dac74e2e2c7acdac38d8d x_refsource_MISC
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.30.6 x_refsource_MISC
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.1.18 x_refsource_MISC
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.4.7 x_refsource_MISC
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.7 x_refsource_MISC
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.8.1 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- July 7, 2026
- Published
- July 28, 2026, 17:27 UTC
- CVE record updated
- July 28, 2026, 18:13 UTC by GitHub_M
- NVD
- Deferred, last modified October 23, 2026, 23:10 UTC
- Last checked
- CVE list November 19, 2026, 07:06 UTC; NVD November 19, 2026, 07:09 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect PhpSpreadsheet?
- Oct 22, 2026CVE-2026-108357 PHPOffice PhpSpreadsheet: XML external entity (XXE)
- Oct 22, 2026CVE-2026-108359 PHPOffice PhpSpreadsheet: denial of service (uncontrolled resource consumption)
- Oct 22, 2026CVE-2026-108358 PHPOffice PhpSpreadsheet: XML external entity (XXE)
- Oct 22, 2026CVE-2026-108360 PHPOffice PhpSpreadsheet: incorrect authorization
- Jul 28, 2026CVE-2026-59932 PHPOffice PhpSpreadsheet: denial of service (uncontrolled resource consumption)
- Jul 28, 2026CVE-2026-59933 PHPOffice PhpSpreadsheet: denial of service (uncontrolled resource consumption)
- Jun 22, 2026CVE-2026-45034 PHPOffice PhpSpreadsheet: deserialization of untrusted data
- May 12, 2026CVE-2026-40863 PHPOffice PhpSpreadsheet: denial of service (resources allocated without limits)
Questions about CVE-2026-59931
Is CVE-2026-59931 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 0.59% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of PHPOffice PhpSpreadsheet are affected by CVE-2026-59931?
phpoffice/phpspreadsheet from 4.0.0 before 5.8.1, phpoffice/phpspreadsheet from 3.3.0 before 3.10.7, phpoffice/phpspreadsheet from 2.2.0 before 2.4.7, phpoffice/phpspreadsheet from 2.0.0 before 2.1.18 and phpoffice/phpspreadsheet before 1.30.6, per the GitHub advisory GHSA-6hq5-7373-42rg. The tables above give every range the sources list.
Which version fixes CVE-2026-59931?
5.8.1, 3.10.7, 2.4.7, 2.1.18 and 1.30.6, per the GitHub advisory GHSA-6hq5-7373-42rg. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-59931?
High (7.7, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-59931?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.