phpoffice/phpspreadsheet vulnerabilities

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

Registry
Composer
Latest
5.10.0
License
MIT

31 known advisories

The latest version, 5.10.0, is not affected by any of them. Projects on older versions may be.

Update to the latest version:composer require phpoffice/phpspreadsheet:^5.10.0

Security advisories for phpoffice/phpspreadsheet

  • HighGHSA-xh5m-36r6-47m323 Jul 2026

    PHPSpreadsheet: XLS/OLE sector-chain self-loop causes memory exhaustion

    Affected
    >=4.0.0 <5.8.1 · >=3.3.0 <3.10.7 · >=2.2.0 <2.4.7 · >=2.0.0 <2.1.18 · <1.30.6
    Fixed in
    1.30.6, 2.1.18, 2.4.7, 3.10.7, 5.8.1
  • HighGHSA-2mrg-gjxq-2gvr23 Jul 2026

    PHPSpreadsheet: Gnumeric reader unbounded gzip expansion causes memory exhaustion

    Affected
    >=4.0.0 <5.8.1 · >=3.3.0 <3.10.7 · >=2.2.0 <2.4.7 · >=2.0.0 <2.1.18 · <1.30.6
    Fixed in
    1.30.6, 2.1.18, 2.4.7, 3.10.7, 5.8.1
  • HighGHSA-6hq5-7373-42rg23 Jul 2026

    PHPSpreadsheet: SSRF bypass via HTTP redirect in WEBSERVICE() domain whitelist

    Affected
    >=4.0.0 <5.8.1 · >=3.3.0 <3.10.7 · >=2.2.0 <2.4.7 · >=2.0.0 <2.1.18 · <1.30.6
    Fixed in
    1.30.6, 2.1.18, 2.4.7, 3.10.7, 5.8.1
  • CriticalGHSA-87m4-826x-3crx8 Jun 2026

    PHPSpreadsheet has a patch bypass for CVE-2026-34084

    Affected
    <1.30.5
    Fixed in
    1.30.5
  • HighGHSA-7c6m-4442-2x6m29 Apr 2026

    PhpSpreadsheet has CPU Denial of Service via Unbounded Row Number in XLSX Row Dimensions

    Affected
    >=4.0.0 <5.7.0 · >=3.3.0 <3.10.5 · >=2.2.0 <2.4.5 · >=2.0.0 <2.1.16 · <1.30.4
    Fixed in
    1.30.4, 2.1.16, 2.4.5, 3.10.5, 5.7.0
  • HighGHSA-84wq-86v6-x5j629 Apr 2026

    PhpSpreadsheet has CPU Denial of Service via Unbounded Row Index in SpreadsheetML XML Reader

    Affected
    >=4.0.0 <5.7.0 · >=3.3.0 <3.10.5 · >=2.2.0 <2.4.5 · >=2.0.0 <2.1.16 · <1.30.4
    Fixed in
    1.30.4, 2.1.16, 2.4.5, 3.10.5, 5.7.0
  • CriticalGHSA-q4q6-r8wh-5cgh29 Apr 2026

    PhpSpreadsheet has SSRF/RCE in IOFactory::load when $filename is user controlled

    Affected
    >=4.0.0 <5.6.0 · >=3.3.0 <3.10.4 · >=2.2.0 <2.4.4 · >=2.0.0 <2.1.15 · <1.30.3
    Fixed in
    1.30.3, 2.1.15, 2.4.4, 3.10.4, 5.6.0
  • MediumGHSA-hrmw-qprp-wgmc28 Apr 2026

    PhpSpreadsheet has XSS via number format code with @ text placeholder bypasses htmlspecialchars in HTML writer

    Affected
    >=4.0.0 <5.7.0 · >=3.3.0 <3.10.5 · >=2.2.0 <2.4.5 · >=2.0.0 <2.1.16 · <1.30.4
    Fixed in
    1.30.4, 2.1.16, 2.4.5, 3.10.5, 5.7.0
  • MediumGHSA-6wpp-88cp-7q6828 Apr 2026

    PhpSpreadsheet has XSS via NumberFormat @ Text Substitution in HTML Writer

    Affected
    >=4.0.0 <5.7.0 · >=3.3.0 <3.10.5 · >=2.2.0 <2.4.5 · >=2.0.0 <2.1.16 · <1.30.4
    Fixed in
    1.30.4, 2.1.16, 2.4.5, 3.10.5, 5.7.0
  • HighGHSA-rx7m-68vc-ppxh25 Aug 2025

    PhpSpreadsheet vulnerable to SSRF when reading and displaying a processed HTML document in the browser

    Affected
    <1.30.0 · >=2.0.0 <2.1.12 · >=2.2.0 <2.4.0 · >=3.0.0 <3.10.0 · >=4.0.0 <5.0.0
    Fixed in
    1.30.0, 2.1.12, 2.4.0, 3.10.0, 5.0.0
  • MediumGHSA-r57h-547h-w24f3 Feb 2025

    PhpSpreadsheet allows bypassing of XSS sanitizer using the javascript protocol and special characters

    Affected
    >=3.0.0 <3.9.0 · <1.29.9 · >=2.2.0 <2.3.7 · >=2.0.0 <2.1.8
    Fixed in
    1.29.9, 2.1.8, 2.3.7, 3.9.0
  • MediumGHSA-79xx-vf93-p7cx21 Jan 2025

    Cross-Site Scripting (XSS) vulnerability in generateNavigation() function in PhpSpreadsheet

    Affected
    >=3.0.0 <3.8.0 · <1.29.8 · >=2.0.0 <2.1.7 · >=2.2.0 <2.3.6
    Fixed in
    1.29.8, 2.1.7, 2.3.6, 3.8.0
  • MediumGHSA-q9jv-mm3r-j47r3 Jan 2025

    PhpSpreadsheet allows bypass XSS sanitizer using the javascript protocol and special characters

    Affected
    >=3.0.0 <3.7.0 · <1.29.7 · >=2.0.0 <2.1.6 · >=2.2.0 <2.3.5
    Fixed in
    1.29.7, 2.1.6, 2.3.5, 3.7.0
  • MediumGHSA-hwcp-2h35-p66w3 Jan 2025

    PhpSpreadsheet has a Cross-Site Scripting (XSS) vulnerability of the hyperlink base in the HTML page header

    Affected
    >=3.0.0 <3.7.0 · <1.29.7 · >=2.0.0 <2.1.6 · >=2.2.0 <2.3.5
    Fixed in
    1.29.7, 2.1.6, 2.3.5, 3.7.0
  • MediumGHSA-wv23-996v-q2293 Jan 2025

    PhpSpreadsheet has a Cross-Site Scripting (XSS) vulnerability in custom properties

    Affected
    >=3.0.0 <3.7.0 · <1.29.7 · >=2.0.0 <2.1.6 · >=2.2.0 <2.3.5
    Fixed in
    1.29.7, 2.1.6, 2.3.5, 3.7.0
  • HighGHSA-j2xg-cjcx-46773 Jan 2025

    PhpSpreadsheet allows unauthorized Reflected XSS in Currency.php file

    Affected
    >=3.0.0 <3.7.0 · <1.29.7 · >=2.0.0 <2.1.6 · >=2.2.0 <2.3.5
    Fixed in
    1.29.7, 2.1.6, 2.3.5, 3.7.0
  • HighGHSA-c6fv-7vh8-2rhr3 Jan 2025

    PhpSpreadsheet allows unauthorized Reflected XSS in the Accounting.php file

    Affected
    >=3.0.0 <3.7.0 · <1.29.7 · >=2.0.0 <2.1.6 · >=2.2.0 <2.3.5
    Fixed in
    1.29.7, 2.1.6, 2.3.5, 3.7.0
  • HighGHSA-jmpx-686v-c3wx3 Jan 2025

    PhpSpreadsheet allows unauthorized Reflected XSS in the constructor of the Downloader class

    Affected
    >=3.0.0 <3.7.0 · <1.29.7 · >=2.0.0 <2.1.6 · >=2.2.0 <2.3.5
    Fixed in
    1.29.7, 2.1.6, 2.3.5, 3.7.0
  • HighGHSA-x88g-h956-m5xg3 Jan 2025

    PhpSpreadsheet allows unauthorized Reflected XSS in `Convert-Online.php` file

    Affected
    >=3.0.0 <3.7.0 · <1.29.7 · >=2.0.0 <2.1.6 · >=2.2.0 <2.3.5
    Fixed in
    1.29.7, 2.1.6, 2.3.5, 3.7.0
  • HighGHSA-7cc9-j4mv-vcjp18 Nov 2024

    XXE in PHPSpreadsheet's XLSX reader

    Affected
    <1.29.4 · >=2.0.0 <2.1.3 · >=2.2.0 <2.3.2 · >=3.3.0 <3.4.0
    Fixed in
    1.29.4, 2.1.3, 2.3.2, 3.4.0
  • HighGHSA-jw4x-v69f-hh5w18 Nov 2024

    XmlScanner bypass leads to XXE

    Affected
    <1.29.4 · >=2.0.0 <2.1.3 · >=2.2.0 <2.3.2 · >=3.3.0 <3.4.0
    Fixed in
    1.29.4, 2.1.3, 2.3.2, 3.4.0
  • HighGHSA-6hwr-6v2f-3m887 Oct 2024

    XXE in PHPSpreadsheet's XLSX reader

    Affected
    >=2.2.0 <2.3.0 · <1.29.1 · >=2.0.0 <2.1.1
    Fixed in
    1.29.1, 2.1.1, 2.3.0
  • MediumGHSA-r8w8-74ww-j4wh7 Oct 2024

    PhpSpreadsheet HTML writer is vulnerable to Cross-Site Scripting via JavaScript hyperlinks

    Affected
    >=2.2.0 <2.3.0 · <1.29.2 · >=2.0.0 <2.1.1
    Fixed in
    1.29.2, 2.1.1, 2.3.0
  • MediumGHSA-w9xv-qf98-ccq47 Oct 2024

    PhpSpreadsheet allows absolute path traversal and Server-Side Request Forgery in HTML writer when embedding images is enabled

    Affected
    >=2.2.0 <2.3.0 · <1.29.2 · >=2.0.0 <2.1.1
    Fixed in
    1.29.2, 2.1.1, 2.3.0
  • HighGHSA-5gpr-w2p5-6m377 Oct 2024

    PhpSpreadsheet allows absolute path traversal and Server-Side Request Forgery when opening XLSX file

    Affected
    >=2.2.0 <2.3.0 · <1.29.2 · >=2.0.0 <2.1.1
    Fixed in
    1.29.2, 2.1.1, 2.3.0
  • MediumGHSA-v66g-p9x6-v98p7 Oct 2024

    PhpSpreadsheet has an Unauthenticated Cross-Site-Scripting (XSS) in sample file

    Affected
    >=2.2.0 <2.3.0 · <1.29.2 · >=2.0.0 <2.1.1
    Fixed in
    1.29.2, 2.1.1, 2.3.0
  • HighGHSA-ghg6-32f9-2jp729 Aug 2024

    XXE in PHPSpreadsheet encoding is returned

    Affected
    <1.29.1 · >=2.2.0 <2.2.1 · >=2.0.0 <2.1.1
    Fixed in
    1.29.1, 2.1.1, 2.2.1
  • MediumGHSA-wgmf-q9vr-vww629 Aug 2024

    PhpSpreadsheet HTML writer is vulnerable to Cross-Site Scripting via style information

    Affected
    >=2.0.0 <2.1.0 · <1.29.1
    Fixed in
    1.29.1, 2.1.0
  • MediumGHSA-4mqv-gcr3-pff96 May 2021

    Cross-site scripting in phpoffice/phpspreadsheet

    Affected
    <1.16.0
    Fixed in
    1.16.0
  • HighGHSA-vvwv-h69m-wg6f20 Nov 2019

    XXE in PHPSpreadsheet due to incomplete fix for previous encoding issue

    Affected
    <1.8.0
    Fixed in
    1.8.0
  • HighGHSA-xcrg-29h7-h4cj20 Nov 2019

    XXE in PHPSpreadsheet due to encoding issue

    Affected
    <1.5.1
    Fixed in
    1.5.1

Which of your client projects still run an old phpoffice/phpspreadsheet?

NPMscan reads the composer.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other Composer packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the Composer registry.