CVE-2026-108360PHPOffice PhpSpreadsheet
Medium 6.4
Follow: this CVE · PHPOffice · PHPOffice PhpSpreadsheet We alert you by email or Slack (account required).
- Priority
- 38
- CVSS 3.1
- 6.4
- EPSS
- —
- Auth required
- Yes
- Published
- Oct 22, 2026
- Updated
- Oct 29, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
What happens
PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0, Worksheet\Drawing::setPath validates only the initial external-image URL with setIsWhitelisted when setAllowExternalImages is enabled. The HTTP stream context permits PHP to follow a redirect without applying the callback to the redirected URL, so a permitted image host can redirect the server to an internal address and cause a blind GET request. The response body is not returned to the attacker because the reader validates the downloaded content as an image and removes the temporary file, but internal GET-driven endpoints, network reachability, and cloud metadata endpoints may be reached. This issue is fixed in versions 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0.
What to do
- Apply the vendor's security update for PhpSpreadsheet.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | phpoffice/phpspreadsheet |
≥ 4.0.0 < 5.10.0 |
5.10.0 |
composer require "phpoffice/phpspreadsheet:^5.10.0" |
| Packagist | phpoffice/phpspreadsheet |
≥ 3.3.0 < 3.10.8 |
3.10.8 |
composer require "phpoffice/phpspreadsheet:^3.10.8" |
| Packagist | phpoffice/phpspreadsheet |
≥ 2.2.0 < 2.4.8 |
2.4.8 |
composer require "phpoffice/phpspreadsheet:^2.4.8" |
| Packagist | phpoffice/phpspreadsheet |
≥ 2.0.0 < 2.1.19 |
2.1.19 |
composer require "phpoffice/phpspreadsheet:^2.1.19" |
| Packagist | phpoffice/phpspreadsheet |
< 1.30.7 |
1.30.7 |
composer require "phpoffice/phpspreadsheet:^1.30.7" |
Per OSV / GitHub Advisories (GHSA-2phh-27fw-q4gc). Check the version in your lockfile before upgrading.
Affected products
- PHPOffice · PhpSpreadsheet
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.