Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. phpoffice/phpspreadsheet
  4. ›
  5. CVE-2026-108360

CVE-2026-108360: PhpSpreadsheet: SSRF whitelist bypass via unre-validated HTTP redirect in Drawing::setPath external image loading

October 27, 2026

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.

References

  • github.com/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66
  • github.com/PHPOffice/PhpSpreadsheet/commit/94590951d76a250a5fc1ecf69a0b3f7439a9af49
  • github.com/PHPOffice/PhpSpreadsheet/commit/980b5c294493856f1a25754f1e8a1d2185b93738
  • github.com/PHPOffice/PhpSpreadsheet/commit/9a0b48622ebfe93fa48cb9bc09ce57303bb07af9
  • github.com/PHPOffice/PhpSpreadsheet/commit/da13f40e8760d599b0e8a296017d4b028b20e86c
  • github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.30.7
  • github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.1.19
  • github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.4.8
  • github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.8
  • github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.10.0
  • github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-2phh-27fw-q4gc
  • github.com/advisories/GHSA-2phh-27fw-q4gc
  • nvd.nist.gov/vuln/detail/CVE-2026-108360

Code Behaviors & Features

Detect and mitigate CVE-2026-108360 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.30.7, all versions starting from 2.0.0 before 2.1.19, all versions starting from 2.2.0 before 2.4.8, all versions starting from 3.3.0 before 3.10.8, all versions starting from 4.0.0 before 5.10.0

Fixed versions

  • 1.30.7
  • 2.1.19
  • 2.4.8
  • 3.10.8
  • 5.10.0

Solution

Upgrade to versions 1.30.7, 2.1.19, 2.4.8, 3.10.8, 5.10.0 or above.

Impact 6.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization
  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

packagist/phpoffice/phpspreadsheet/CVE-2026-108360.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:49 +0000.