Packagist
CVE-2026-108360
PhpSpreadsheet: SSRF whitelist bypass via unre-validated HTTP redirect in Drawing::setPath external image loading
- Severity
- Medium 6.4
- Published
- 27 Oct 2026
- Last changed
- 27 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.30.7, 2.1.19, 2.4.8, 3.10.8, 5.10.0
- Exploit chance
- 0.3% in the next 30 daysHigher than 27% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N- Also known as
- GHSA-2phh-27fw-q4gc
- Sources
- OSV.dev and GitHub
Description
PhpSpreadsheet's Worksheet\Drawing::setPath() validates an external-image URL against an operator-supplied isWhitelisted callback once, on the initial URL only, then fetches it with file_get_contents() using a stream context that does not set follow_location => 0. A whitelisted host that returns an HTTP 302 Location: redirect to an internal target is therefore followed by PHP's HTTP wrapper (default follow_location=1, max_redirects=20) with no re-validation of the redirect hop — defeating the whitelist and yielding a blind SSRF from the server.
This is an unfixed variant of CVE-2026-59931 (GHSA-6hq5-7373-42rg, the WEBSERVICE redirect-whitelist-bypass): the follow_location => 0 fix (commit 7ef7b25e) was applied ONLY to Calculation/Web/Service.php; Worksheet/Drawing.php was never touched.
src/PhpSpreadsheet/Worksheet/Drawing.php:
Affected software
| Software | Affected versions |
|---|---|
phpoffice/phpspreadsheetPackagist · osv:Packagist:phpoffice/phpspreadsheet |
|
About phpoffice/phpspreadsheet
- Monthly downloads (Packagist)
- 16,687,478Packagist, 23 Nov 2026
- Total downloads (Packagist)
- 377,146,696Packagist, 23 Nov 2026
Vulnerabilities in phpoffice/phpspreadsheet
- In our list
- 13
- Published in the last 12 months
- 12
- Critical, last 12 months
- 1
- High, last 12 months
- 8
- Known exploited
- 0
- CVE-2026-108359PhpSpreadsheet ODS Reader: Unbounded number-rows-repeated → CPU & Memory Exhaustion (DoS)High 27 Oct 2026
- CVE-2026-108358PhpSpreadsheet: XmlScanner Bypass via ISO-2022 Escape Sequences Allows XXE and Denial of ServiceHigh 27 Oct 2026
- CVE-2026-108357PhpSpreadsheet: XmlScanner Bypass via Double-Encoded unentity() TOCTOU Allows XXE and Denial of ServiceHigh 27 Oct 2026
- CVE-2026-59933PHPSpreadsheet: XLS/OLE sector-chain self-loop causes memory exhaustionHigh 7.5 23 Jul 2026
- CVE-2026-59932PHPSpreadsheet: Gnumeric reader unbounded gzip expansion causes memory exhaustionHigh 7.5 23 Jul 2026
- CVE-2026-59931PHPSpreadsheet: SSRF bypass via HTTP redirect in WEBSERVICE() domain whitelistHigh 7.7 23 Jul 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-108360
- GitHub Advisory Database https://github.com/advisories/GHSA-2phh-27fw-q4gc