Server-side Request Forgery (SSRF) Affecting phpoffice/phpspreadsheet package, versions <1.30.0>=2.0.0, <2.1.12>=2.2.0, <2.4.0>=3.3.0, <3.10.0>=4.0.0, <5.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-PHPOFFICEPHPSPREADSHEET-12199927
  • published27 Aug 2025
  • disclosed25 Aug 2025
  • creditAleksey Solovev

Introduced: 25 Aug 2025

NewCVE-2025-54370  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade phpoffice/phpspreadsheet to version 1.30.0, 2.1.12, 2.4.0, 3.10.0, 5.0.0 or higher.

Overview

phpoffice/phpspreadsheet is a Spreadsheet engine that Read, Create and Write Spreadsheet documents in PHP .

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the setPath method of the PhpOffice\PhpSpreadsheet\Worksheet\Drawing class, where a user input is passed to the HTML reader without sufficient processing. An attacker can cause the server to make network requests exposing internal resources.

CVSS Base Scores

version 4.0
version 3.1