# phpoffice/phpspreadsheet (Packagist) vulnerabilities

35 known vulnerabilities (2 critical, 20 high, 11 medium), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: not known (cve.now hasn't read this package's releases)
- Newest unaffected release: not known without release data
- Registry: https://packagist.org/packages/phpoffice/phpspreadsheet

## Advisories (35)

### [CVE-2026-108357](https://cve.now/CVE-2026-108357): PhpSpreadsheet: XmlScanner Bypass via Double-Encoded unentity() TOCTOU Allows XXE and Denial of Service

- Severity: High 8.8
- Published: Oct 22, 2026
- Affected: from 4.0.0, fixed in 5.10.0; from 3.3.0, fixed in 3.10.8.

### [CVE-2026-108359](https://cve.now/CVE-2026-108359): PhpSpreadsheet ODS Reader: Unbounded number-rows-repeated → CPU & Memory Exhaustion (DoS)

- Severity: High 8.7
- Published: Oct 22, 2026
- Affected: from 4.0.0, fixed in 5.10.0; from 3.3.0, fixed in 3.10.8; from 2.2.0, fixed in 2.4.8; from 2.0.0, fixed in 2.1.19; fixed in 1.30.7.

### [CVE-2026-108358](https://cve.now/CVE-2026-108358): PhpSpreadsheet: XmlScanner Bypass via ISO-2022 Escape Sequences Allows XXE and Denial of Service

- Severity: High 8.8
- Published: Oct 22, 2026
- Affected: from 4.0.0, fixed in 5.10.0; from 3.3.0, fixed in 3.10.8; from 2.2.0, fixed in 2.4.8; from 2.0.0, fixed in 2.1.19; fixed in 1.30.7.

### [CVE-2026-108360](https://cve.now/CVE-2026-108360): PhpSpreadsheet: SSRF whitelist bypass via unre-validated HTTP redirect in Drawing::setPath external image loading

- Severity: Medium 6.4
- Published: Oct 22, 2026
- Affected: from 4.0.0, fixed in 5.10.0; from 3.3.0, fixed in 3.10.8; from 2.2.0, fixed in 2.4.8; from 2.0.0, fixed in 2.1.19; fixed in 1.30.7.

### [CVE-2026-59932](https://cve.now/CVE-2026-59932): PhpSpreadsheet: Gnumeric reader unbounded gzip expansion causes memory exhaustion

- Severity: High 7.5
- Published: Jul 28, 2026
- Affected: from 4.0.0, fixed in 5.8.1; from 3.3.0, fixed in 3.10.7; from 2.2.0, fixed in 2.4.7; from 2.0.0, fixed in 2.1.18; fixed in 1.30.6.

### [CVE-2026-59933](https://cve.now/CVE-2026-59933): PhpSpreadsheet: XLS/OLE sector-chain self-loop causes memory exhaustion

- Severity: High 7.5
- Published: Jul 28, 2026
- Affected: from 4.0.0, fixed in 5.8.1; from 3.3.0, fixed in 3.10.7; from 2.2.0, fixed in 2.4.7; from 2.0.0, fixed in 2.1.18; fixed in 1.30.6.

### [CVE-2026-59931](https://cve.now/CVE-2026-59931): PhpSpreadsheet: SSRF bypass via HTTP redirect in WEBSERVICE() domain whitelist

- Severity: High 7.7
- Published: Jul 28, 2026
- Affected: from 4.0.0, fixed in 5.8.1; from 3.3.0, fixed in 3.10.7; from 2.2.0, fixed in 2.4.7; from 2.0.0, fixed in 2.1.18; fixed in 1.30.6.

### [CVE-2026-45034](https://cve.now/CVE-2026-45034): PhpSpreadsheet: File::prohibitWrappers bypass

- Severity: Critical 9.2
- Published: Jun 22, 2026
- Affected: fixed in 1.30.5.

### [CVE-2026-40863](https://cve.now/CVE-2026-40863): PhpSpreadsheet: CPU Denial of Service via Unbounded Row Index in SpreadsheetML XML Reader

- Severity: High 7.5
- Published: May 12, 2026
- Affected: from 4.0.0, fixed in 5.7.0; from 3.3.0, fixed in 3.10.5; from 2.2.0, fixed in 2.4.5; from 2.0.0, fixed in 2.1.16; fixed in 1.30.6.

### [CVE-2026-40902](https://cve.now/CVE-2026-40902): PhpSpreadsheet: CPU Denial of Service via Unbounded Row Number in XLSX Row Dimensions

- Severity: High 7.5
- Published: May 12, 2026
- Affected: from 4.0.0, fixed in 5.7.0; from 3.3.0, fixed in 3.10.5; from 2.2.0, fixed in 2.4.5; from 2.0.0, fixed in 2.1.16; fixed in 1.30.4.

### [CVE-2026-40296](https://cve.now/CVE-2026-40296): PhpSpreadsheet vulnerable to XSS in HTML writer via custom number format codes

- Severity: Medium 5.4
- Published: May 6, 2026
- Affected: from 4.0.0, fixed in 5.7.0; from 3.3.0, fixed in 3.10.5; from 2.2.0, fixed in 2.4.5; from 2.0.0, fixed in 2.1.16; fixed in 1.30.4.

### [CVE-2026-35453](https://cve.now/CVE-2026-35453): PhpSpreadsheet XSS via number format text substitution in HTML Writer

- Severity: Medium 4.8
- Published: May 5, 2026
- Affected: from 4.0.0, fixed in 5.7.0; from 3.3.0, fixed in 3.10.5; from 2.2.0, fixed in 2.4.5; from 2.0.0, fixed in 2.1.16; fixed in 1.30.4.

### [CVE-2026-34084](https://cve.now/CVE-2026-34084): PhpSpreadsheet SSRF and RCE via PHP stream wrappers in IOFactory::load

- Severity: Critical 9.2
- Published: May 5, 2026
- Affected: from 4.0.0, fixed in 5.6.0; from 3.3.0, fixed in 3.10.4; from 2.2.0, fixed in 2.4.4; from 2.0.0, fixed in 2.1.15; fixed in 1.30.3.

### [CVE-2025-54370](https://cve.now/CVE-2025-54370): PhpSpreadsheet vulnerable to SSRF when reading and displaying a processed HTML document in the browser

- Severity: High 8.7
- Published: Aug 25, 2025
- Affected: fixed in 1.30.0; from 2.0.0, fixed in 2.1.12; from 2.2.0, fixed in 2.4.0; from 3.0.0, fixed in 3.10.0; from 4.0.0, fixed in 5.0.0.

### [CVE-2025-23210](https://cve.now/CVE-2025-23210): Bypass XSS sanitizer using the javascript protocol and special characters in phpoffice/phpspreadsheet

- Severity: Medium 4.8
- Published: Feb 3, 2025
- Affected: from 3.0.0, fixed in 3.9.0; fixed in 1.29.9; from 2.2.0, fixed in 2.3.7; from 2.0.0, fixed in 2.1.8.

### [CVE-2025-22131](https://cve.now/CVE-2025-22131): Cross-Site Scripting (XSS) vulnerability in generateNavigation() function

- Severity: Medium 5.1
- Published: Jan 20, 2025
- Affected: from 3.0.0, fixed in 3.8.0; fixed in 1.29.8; from 2.0.0, fixed in 2.1.7; from 2.2.0, fixed in 2.3.6.

### [CVE-2024-56412](https://cve.now/CVE-2024-56412): PhpSpreadsheet vulnerable to bypass of the XSS sanitizer using the javascript protocol and special characters

- Severity: Medium 4.8
- Published: Jan 3, 2025
- Affected: from 3.0.0, fixed in 3.7.0; fixed in 1.29.7; from 2.0.0, fixed in 2.1.6; from 2.2.0, fixed in 2.3.5.

### [CVE-2024-56411](https://cve.now/CVE-2024-56411): PhpSpreadsheet has Cross-Site Scripting (XSS) vulnerability of the hyperlink base in the HTML page header

- Severity: Medium 4.8
- Published: Jan 3, 2025
- Affected: from 3.0.0, fixed in 3.7.0; fixed in 1.29.7; from 2.0.0, fixed in 2.1.6; from 2.2.0, fixed in 2.3.5.

### [CVE-2024-56410](https://cve.now/CVE-2024-56410): PhpSpreadsheet has Cross-Site Scripting (XSS) vulnerability in custom properties

- Severity: Medium 4.8
- Published: Jan 3, 2025
- Affected: from 3.0.0, fixed in 3.7.0; fixed in 1.29.7; from 2.0.0, fixed in 2.1.6; from 2.2.0, fixed in 2.3.5.

### [CVE-2024-56409](https://cve.now/CVE-2024-56409): PhpSpreadsheet vulnerable to unauthorized reflected XSS in Currency.php file

- Severity: High 8.3
- Published: Jan 3, 2025
- Affected: from 3.0.0, fixed in 3.7.0; fixed in 1.29.7; from 2.0.0, fixed in 2.1.6; from 2.2.0, fixed in 2.3.5.

### [CVE-2024-56366](https://cve.now/CVE-2024-56366): PhpSpreadsheet vulnerable to unauthorized reflected XSS in the Accounting.php file

- Severity: High 8.3
- Published: Jan 3, 2025
- Affected: from 3.0.0, fixed in 3.7.0; fixed in 1.29.7; from 2.0.0, fixed in 2.1.6; from 2.2.0, fixed in 2.3.5.

### [CVE-2024-56365](https://cve.now/CVE-2024-56365): PhpSpreadsheet vulnerable to unauthorized reflected XSS in the constructor of the Downloader class

- Severity: High 8.3
- Published: Jan 3, 2025
- Affected: from 3.0.0, fixed in 3.7.0; fixed in 1.29.7; from 2.0.0, fixed in 2.1.6; from 2.2.0, fixed in 2.3.5.

### [CVE-2024-56408](https://cve.now/CVE-2024-56408): PhpSpreadsheet allows unauthorized reflected XSS in \`Convert-Online.php\` file

- Severity: High 8.3
- Published: Jan 3, 2025
- Affected: from 3.0.0, fixed in 3.7.0; fixed in 1.29.7; from 2.0.0, fixed in 2.1.6; from 2.2.0, fixed in 2.3.5.

### [CVE-2024-48917](https://cve.now/CVE-2024-48917): XXE in PHPSpreadsheet's XLSX reader

- Severity: High 7.5
- Published: Nov 18, 2024
- Affected: fixed in 1.29.4; from 2.0.0, fixed in 2.1.3; from 2.2.0, fixed in 2.3.2; from 3.3.0, fixed in 3.4.0.

### [CVE-2024-47873](https://cve.now/CVE-2024-47873): PhpSpreadsheet XmlScanner bypass leads to XXE

- Severity: High 7.5
- Published: Nov 18, 2024
- Affected: fixed in 1.29.4; from 2.0.0, fixed in 2.1.3; from 2.2.0, fixed in 2.3.2; from 3.3.0, fixed in 3.4.0.

### [CVE-2024-45060](https://cve.now/CVE-2024-45060): Unauthenticated Cross-Site-Scripting (XSS) in sample file in PHPSpreadsheet

- Severity: High 7.1
- Published: Oct 7, 2024
- Affected: from 2.2.0, fixed in 2.3.0; fixed in 1.29.2; from 2.0.0, fixed in 2.1.1.

### [CVE-2024-45290](https://cve.now/CVE-2024-45290): Path traversal and Server-Side Request Forgery when opening XLSX files in PHPSpreadsheet

- Severity: High 7.7
- Published: Oct 7, 2024
- Affected: from 2.2.0, fixed in 2.3.0; fixed in 1.29.2; from 2.0.0, fixed in 2.1.1.

### [CVE-2024-45291](https://cve.now/CVE-2024-45291): Path traversal and Server-Side Request Forgery in HTML writer when embedding images is enabled in PHPSpreadsheet

- Severity: Medium 6.3
- Published: Oct 7, 2024
- Affected: from 2.2.0, fixed in 2.3.0; fixed in 1.29.2; from 2.0.0, fixed in 2.1.1.

### [CVE-2024-45292](https://cve.now/CVE-2024-45292): PhpSpreadsheet HTML writer is vulnerable to Cross-Site Scripting via JavaScript hyperlinks

- Severity: Medium 5.4
- Published: Oct 7, 2024
- Affected: from 2.2.0, fixed in 2.3.0; fixed in 1.29.2; from 2.0.0, fixed in 2.1.1.

### [CVE-2024-45293](https://cve.now/CVE-2024-45293): XML External Entity Reference (XXE) in PHPSpreadsheet's XLSX reader

- Severity: High 7.5
- Published: Oct 7, 2024
- Affected: from 2.2.0, fixed in 2.3.0; fixed in 1.29.1; from 2.0.0, fixed in 2.1.1.

### [CVE-2024-45046](https://cve.now/CVE-2024-45046): PhpSpreadsheet HTML writer is vulnerable to Cross-Site Scripting via style information

- Severity: Medium 5.4
- Published: Aug 28, 2024
- Affected: from 2.0.0, fixed in 2.1.0; fixed in 1.29.1.

### [CVE-2024-45048](https://cve.now/CVE-2024-45048): XML External Entity Reference (XXE) in PHPSpreadsheet

- Severity: High 8.8
- Published: Aug 28, 2024
- Affected: fixed in 1.29.1; from 2.2.0, fixed in 2.2.1; from 2.0.0, fixed in 2.1.1.

### [CVE-2020-7776](https://cve.now/CVE-2020-7776): Cross-site Scripting (XSS)

- Severity: High 7.1
- Published: Dec 9, 2020
- Affected: fixed in 1.16.0.

### [CVE-2019-12331](https://cve.now/CVE-2019-12331): PHPOffice PhpSpreadsheet before 1.8.0 has an XXE issue.

- Severity: Unrated
- Published: Nov 7, 2019
- Affected: fixed in 1.8.0.

### [CVE-2018-19277](https://cve.now/CVE-2018-19277): securityScan() in PHPOffice PhpSpreadsheet through 1.5.0 allows a bypass of protection mechanisms for XXE via UTF-7 encoding in a .xlsx file

- Severity: Unrated
- Published: Nov 14, 2018
- Affected: fixed in 1.5.1.

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/packagist/phpoffice/phpspreadsheet
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
