Packagist (PHP)Worst: High23 advisories

phpoffice/phpexcel: known vulnerabilities

phpoffice/phpexcel has 23 reviewed security advisories in the GitHub Advisory Database — 12 high, 11 moderate. The most recent was published 2025-02-03. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the phpoffice/phpexcel versions running across your servers, containers and images, and ranks what to patch first.

How to fix phpoffice/phpexcel

Upgrade phpoffice/phpexcel to a release at or above the fixed version shown for each advisory below. For Packagist (PHP):

composer require phpoffice/phpexcel:^1.8.1 (composer audit)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (23)

PhpSpreadsheet allows bypassing of XSS sanitizer using the javascript protocol and special characters Moderate 5.4 CWE-79 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2025-02-03. GHSA-r57h-547h-w24f · CVE-2025-23210
Cross-Site Scripting (XSS) vulnerability in generateNavigation() function in PhpSpreadsheet Moderate 6.1 CWE-79 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2025-01-20. GHSA-79xx-vf93-p7cx · CVE-2025-22131
PhpSpreadsheet allows unauthorized Reflected XSS in the Accounting.php file High 7.1 CWE-79 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2025-01-03. GHSA-c6fv-7vh8-2rhr · CVE-2024-56366
PhpSpreadsheet has a Cross-Site Scripting (XSS) vulnerability of the hyperlink base in the HTML page header Moderate 5.4 CWE-79 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2025-01-03. GHSA-hwcp-2h35-p66w · CVE-2024-56411
PhpSpreadsheet allows unauthorized Reflected XSS in Currency.php file High 7.1 CWE-79 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2025-01-03. GHSA-j2xg-cjcx-4677 · CVE-2024-56409
PhpSpreadsheet allows unauthorized Reflected XSS in the constructor of the Downloader class High 7.1 CWE-79 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2025-01-03. GHSA-jmpx-686v-c3wx · CVE-2024-56365
PhpSpreadsheet allows bypass XSS sanitizer using the javascript protocol and special characters Moderate 5.4 CWE-79 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2025-01-03. GHSA-q9jv-mm3r-j47r · CVE-2024-56412
PhpSpreadsheet has a Cross-Site Scripting (XSS) vulnerability in custom properties Moderate 5.4 CWE-79 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2025-01-03. GHSA-wv23-996v-q229 · CVE-2024-56410
PhpSpreadsheet allows unauthorized Reflected XSS in `Convert-Online.php` file High 7.1 CWE-79 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2025-01-03. GHSA-x88g-h956-m5xg · CVE-2024-56408
XXE in PHPSpreadsheet's XLSX reader High 7.5 CWE-611 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2024-11-18. GHSA-7cc9-j4mv-vcjp · CVE-2024-48917
XmlScanner bypass leads to XXE High 7.5 CWE-611 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2024-11-18. GHSA-jw4x-v69f-hh5w · CVE-2024-47873
PhpSpreadsheet allows absolute path traversal and Server-Side Request Forgery when opening XLSX file High 7.7 CWE-36 CWE-918 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2024-10-07. GHSA-5gpr-w2p5-6m37 · CVE-2024-45290
XXE in PHPSpreadsheet's XLSX reader High 7.5 CWE-611 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2024-10-07. GHSA-6hwr-6v2f-3m88 · CVE-2024-45293
PhpSpreadsheet HTML writer is vulnerable to Cross-Site Scripting via JavaScript hyperlinks Moderate 5.4 CWE-79 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2024-10-07. GHSA-r8w8-74ww-j4wh · CVE-2024-45292
PhpSpreadsheet has an Unauthenticated Cross-Site-Scripting (XSS) in sample file Moderate 6.1 CWE-79 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2024-10-07. GHSA-v66g-p9x6-v98p · CVE-2024-45060
PhpSpreadsheet allows absolute path traversal and Server-Side Request Forgery in HTML writer when embedding images is enabled Moderate 6.3 CWE-22 CWE-36 CWE-918 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2024-10-07. GHSA-w9xv-qf98-ccq4 · CVE-2024-45291
XXE in PHPSpreadsheet encoding is returned High 8.8 CWE-611 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2024-08-28. GHSA-ghg6-32f9-2jp7 · CVE-2024-45048
PhpSpreadsheet HTML writer is vulnerable to Cross-Site Scripting via style information Moderate 5.4 CWE-79 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2024-08-28. GHSA-wgmf-q9vr-vww6 · CVE-2024-45046
Cross-site scripting in phpoffice/phpspreadsheet Moderate 6.4 CWE-79 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2020-12-09. GHSA-4mqv-gcr3-pff9 · CVE-2020-7776
XXE in PHPSpreadsheet due to incomplete fix for previous encoding issue High 8.8 CWE-611 — Affected: up to and including 1.8.2. No fixed release is listed. Published 2019-11-07. GHSA-vvwv-h69m-wg6f · CVE-2019-12331
XXE in PHPSpreadsheet due to encoding issue High 8.8 CWE-91 — Affected: before 1.8.2. Fixed in 1.8.2. Published 2018-11-14. GHSA-xcrg-29h7-h4cj · CVE-2018-19277
PHPExcel vulnerable to XXE attacks through libxml Moderate CWE-611 — Affected: before 1.8.0. Fixed in 1.8.0. Published 2014-06-04. GHSA-28rm-rj57-qjpv · CVE-2014-2054

Find phpoffice/phpexcel across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.