Packagist (PHP)Worst: Critical35 advisories
phpoffice/phpspreadsheet: known vulnerabilities
phpoffice/phpspreadsheet has 35 reviewed security advisories in the GitHub Advisory Database — 2 critical, 20 high, 13 moderate. The most recent was published 2026-10-22. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the phpoffice/phpspreadsheet versions running across your servers, containers and images, and ranks what to patch first.
How to fix phpoffice/phpspreadsheet
Upgrade phpoffice/phpspreadsheet to a release at or above the fixed version shown for each advisory below. For Packagist (PHP):
composer require phpoffice/phpspreadsheet:^1.30.7 (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 (35)
PhpSpreadsheet: SSRF whitelist bypass via unre-validated HTTP redirect in Drawing::setPath external image loading
Moderate 6.4 CWE-863 CWE-918
— Affected: before 1.30.7. Fixed in 1.30.7. Published 2026-10-22. GHSA-2phh-27fw-q4gc · CVE-2026-108360
PhpSpreadsheet: XmlScanner Bypass via ISO-2022 Escape Sequences Allows XXE and Denial of Service
High CWE-611 CWE-776
— Affected: before 1.30.7. Fixed in 1.30.7. Published 2026-10-22. GHSA-3x94-m842-937c · CVE-2026-108358
PhpSpreadsheet ODS Reader: Unbounded number-rows-repeated → CPU & Memory Exhaustion (DoS)
High CWE-400 CWE-789
— Affected: before 1.30.7. Fixed in 1.30.7. Published 2026-10-22. GHSA-j2w7-387v-m2rq · CVE-2026-108359
PhpSpreadsheet: XmlScanner Bypass via Double-Encoded unentity() TOCTOU Allows XXE and Denial of Service
High CWE-611 CWE-776
— Affected: from 3.3.0 up to 3.10.8. Fixed in 3.10.8. Published 2026-10-22. GHSA-rxj4-h86g-25gc · CVE-2026-108357
PHPSpreadsheet: Gnumeric reader unbounded gzip expansion causes memory exhaustion
High 7.5 CWE-400 CWE-409
— Affected: before 1.30.6. Fixed in 1.30.6. Published 2026-07-23. GHSA-2mrg-gjxq-2gvr · CVE-2026-59932
PHPSpreadsheet: SSRF bypass via HTTP redirect in WEBSERVICE() domain whitelist
High 7.7 CWE-918
— Affected: before 1.30.6. Fixed in 1.30.6. Published 2026-07-23. GHSA-6hq5-7373-42rg · CVE-2026-59931
PHPSpreadsheet: XLS/OLE sector-chain self-loop causes memory exhaustion
High 7.5 CWE-400 CWE-835
— Affected: before 1.30.6. Fixed in 1.30.6. Published 2026-07-23. GHSA-xh5m-36r6-47m3 · CVE-2026-59933
PHPSpreadsheet has a patch bypass for CVE-2026-34084
Critical CWE-502
— Affected: before 1.30.5. Fixed in 1.30.5. Published 2026-06-08. GHSA-87m4-826x-3crx · CVE-2026-45034
PhpSpreadsheet has CPU Denial of Service via Unbounded Row Number in XLSX Row Dimensions
High 7.5 CWE-400 CWE-770
— Affected: before 1.30.4. Fixed in 1.30.4. Published 2026-05-12. GHSA-7c6m-4442-2x6m · CVE-2026-40902
PhpSpreadsheet has CPU Denial of Service via Unbounded Row Index in SpreadsheetML XML Reader
High 7.5 CWE-400 CWE-770
— Affected: before 1.30.6. Fixed in 1.30.6. Published 2026-05-12. GHSA-84wq-86v6-x5j6 · CVE-2026-40863
PhpSpreadsheet has XSS via number format code with @ text placeholder bypasses htmlspecialchars in HTML writer
Moderate 5.4 CWE-79
— Affected: before 1.30.4. Fixed in 1.30.4. Published 2026-05-06. GHSA-hrmw-qprp-wgmc · CVE-2026-40296
PhpSpreadsheet has XSS via NumberFormat @ Text Substitution in HTML Writer
Moderate CWE-79 CWE-80
— Affected: before 1.30.4. Fixed in 1.30.4. Published 2026-05-05. GHSA-6wpp-88cp-7q68 · CVE-2026-35453
PhpSpreadsheet has SSRF/RCE in IOFactory::load when $filename is user controlled
Critical CWE-502 CWE-918
— Affected: before 1.30.3. Fixed in 1.30.3. Published 2026-05-05. GHSA-q4q6-r8wh-5cgh · CVE-2026-34084
PhpSpreadsheet vulnerable to SSRF when reading and displaying a processed HTML document in the browser
High CWE-918
— Affected: from 4.0.0 up to 5.0.0. Fixed in 5.0.0. Published 2025-08-25. GHSA-rx7m-68vc-ppxh · CVE-2025-54370
PhpSpreadsheet allows bypassing of XSS sanitizer using the javascript protocol and special characters
Moderate 5.4 CWE-79
— Affected: from 2.0.0 up to 2.1.8. Fixed in 2.1.8. 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: from 2.2.0 up to 2.3.6. Fixed in 2.3.6. 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: from 2.2.0 up to 2.3.5. Fixed in 2.3.5. 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: from 2.2.0 up to 2.3.5. Fixed in 2.3.5. 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: from 2.2.0 up to 2.3.5. Fixed in 2.3.5. 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: from 2.2.0 up to 2.3.5. Fixed in 2.3.5. 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: from 2.2.0 up to 2.3.5. Fixed in 2.3.5. 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: from 2.2.0 up to 2.3.5. Fixed in 2.3.5. 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: from 2.2.0 up to 2.3.5. Fixed in 2.3.5. Published 2025-01-03. GHSA-x88g-h956-m5xg · CVE-2024-56408
XXE in PHPSpreadsheet's XLSX reader
High 7.5 CWE-611
— Affected: from 3.3.0 up to 3.4.0. Fixed in 3.4.0. Published 2024-11-18. GHSA-7cc9-j4mv-vcjp · CVE-2024-48917
XmlScanner bypass leads to XXE
High 7.5 CWE-611
— Affected: from 3.3.0 up to 3.4.0. Fixed in 3.4.0. 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: from 2.0.0 up to 2.1.1. Fixed in 2.1.1. Published 2024-10-07. GHSA-5gpr-w2p5-6m37 · CVE-2024-45290
XXE in PHPSpreadsheet's XLSX reader
High 7.5 CWE-611
— Affected: from 2.0.0 up to 2.1.1. Fixed in 2.1.1. 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: from 2.0.0 up to 2.1.1. Fixed in 2.1.1. 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: from 2.0.0 up to 2.1.1. Fixed in 2.1.1. 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: from 2.0.0 up to 2.1.1. Fixed in 2.1.1. Published 2024-10-07. GHSA-w9xv-qf98-ccq4 · CVE-2024-45291
XXE in PHPSpreadsheet encoding is returned
High 8.8 CWE-611
— Affected: from 2.0.0 up to 2.1.1. Fixed in 2.1.1. 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: before 1.29.1. Fixed in 1.29.1. Published 2024-08-28. GHSA-wgmf-q9vr-vww6 · CVE-2024-45046
Cross-site scripting in phpoffice/phpspreadsheet
Moderate 6.4 CWE-79
— Affected: before 1.16.0. Fixed in 1.16.0. 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: before 1.8.0. Fixed in 1.8.0. 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.5.1. Fixed in 1.5.1. Published 2018-11-14. GHSA-xcrg-29h7-h4cj · CVE-2018-19277
Find phpoffice/phpspreadsheet 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.