If you build "import from Excel" or "export to Excel" features for business systems with PHP's PhpSpreadsheet, you need to be careful with this month's updates. The end of support for 1.x and 2.x was announced in the CHANGELOGs of 1.30.8, 2.1.20, and 2.4.9 on November 8. The 1.30.9, 2.1.21, and 2.4.10 releases on November 22 only added deprecation notices and contain no fixes. The 5.12.0 and 3.10.10 releases on the same day include fixes to the file reading logic.
In other words, even if you run composer update and move up to 1.30.9, you do not get the November 22 fixes. In an empty test project, composer audit did not give a warning either. As of November 30, no advisory for these fixes has been published.
In this article, we read the CHANGELOGs and tag diffs in the PhpSpreadsheet repository and the publication records on Packagist, and checked dependency resolution in a project with Laravel Excel 3.1 installed.
What went into each November 22 release
We compared each branch's CHANGELOG with the diff from the previous version.
| Release | Supported PHP | Contents of the November 22 release |
|---|---|---|
| 5.12.0 | ^8.2 | Six merges from a private fork (reading logic), among others |
| 3.10.10 | ^8.1 | "Security patches."; supported until December 15, 2026 |
| 2.4.10 | 8.1〜8.5 | End-of-support notice and deprecation notices only |
| 2.1.21 | 8.0〜8.4 | End-of-support notice and deprecation notices only |
| 1.30.9 | 7.4〜8.4 | End-of-support notice and deprecation notices only |
The end of support for 1.x and 2.x was first announced in the CHANGELOGs of 1.30.8, 2.1.20, and 2.4.9 on November 8. Until then, the README said security fixes would continue until February 28, 2027. The November 8 releases include "Security patches.", and these are the last fixes for 1.x and 2.x.
The CHANGELOG gives as the reason for ending support that the volume of AI-generated security reports has made it impossible to maintain branches other than master. It states that no further changes, including security fixes, will be made, and recommends moving to master (5.x) early. The source diff for 1.30.9, 2.1.21, and 2.4.10 was only six lines adding deprecation notices to Spreadsheet.php.
For 3.x, 3.10.10 lists "Security patches.", and the project has announced that fixes will continue until December 15. This deadline has been stated since 3.10.9 on November 8. The 4.x line was already out of support before this.
What was fixed
The fix commit for 3.10.10 (6ea23e11) changes the following files.
- Reading: HTML (
Reader/Html.php), XLS (Reader/Xls.phpandXls/Biff8.php), Excel 2003 XML (Reader/Xml.php), CSV (Reader/Csv.php) - File detection:
Shared/File.php(stops treating paths that start with a protocol such asftp:as files) - Images:
Worksheet/Drawing.php(checks whether an image path is a URL)
5.12.0 includes six changes, these plus ODS reading (Reader/Ods.php), as merges from a private fork. There are no PR descriptions, and as of November 30, there is no corresponding advisory in the repository advisories, the GitHub Advisory Database, or the Packagist advisory API (the same applies to the "Security patches." in the November 8 releases). Because it has not been disclosed which inputs cause what, this article shows only the places that were fixed. From the names of the added tests (SstTruncatedTest, ColspanRowspanTest, and so on), the fixes appear to address the handling of corrupted files and extreme merged cells when reading (editorial interpretation).
From April to October, PhpSpreadsheet also published several advisories related to reading files and fetching external URLs (XXE, SSRF, CPU or memory exhaustion, and others). Up to the November 8 releases, fixed versions were also released for 1.x and 2.x. Starting with the November 22 fixes, they are not.
Discrepancy with SECURITY.md
The repository's SECURITY.md has not been updated since late September, and as of November 30, it still lists 1.30.6 or later, 2.1.19 or later, and 2.4.8 or later as "supported." The CHANGELOGs and README notices on the 1.x and 2.x branches are newer, so it is reasonable to read them as having reached end of support.
Laravel Excel 3.1 is pinned to 1.x
Laravel Excel (maatwebsite/excel), the package for working with Excel in Laravel, requires PhpSpreadsheet with ^1.30.5 in its 3.1 line. Version 4.0, released on August 13, requires 5.x, but it needs PHP 8.3 or later and Laravel 12 or later.
The Laravel Excel README describes 3.1 as "No active support, CVE only." The author closed a pull request (#4415) to allow newer PhpSpreadsheet lines in 3.1 on August 12, writing "3.1 will never get this update." As of November 30, neither the README nor the repository states any plan for 3.1 in response to the end of support for PhpSpreadsheet 1.x. The last 3.1 release is 3.1.70, released on August 13.
Here are the results from an empty project (PHP 8.3.6).
$ composer require maatwebsite/excel:^3.1
maatwebsite/excel 3.1.70
phpoffice/phpspreadsheet 1.30.9
No security vulnerability advisories found.
$ composer why-not phpoffice/phpspreadsheet 3.10.10
maatwebsite/excel 3.1.70 requires phpoffice/phpspreadsheet (^1.30.5)
$ composer require --dry-run -W maatwebsite/excel:^4.0
- Upgrading maatwebsite/excel (3.1.70 => 4.0.7)
- Upgrading phpoffice/phpspreadsheet (1.30.9 => 5.12.0)

As long as you stay on Laravel Excel 3.1, you cannot upgrade PhpSpreadsheet to 3.x or 5.x. To get the 5.x fixes, you need to move to Laravel Excel 4.0. In this environment, illuminate was on 13.x, so adding -W offered an update to 4.0.7. For apps on Laravel 11 or earlier, you first need to upgrade Laravel to 12 or later.
The Laravel Excel 4.0 upgrade guide (UPGRADE-4.x.md) says code that uses only Laravel Excel's own API is largely unaffected. However, it asks you to check places that work directly with PhpSpreadsheet objects, such as the following, against the breaking changes in PhpSpreadsheet 2.0 through 5.0.
- Applying styles with
$event->sheet->getDelegate()inAfterSheetofWithEvents, and similar WithChartsandWithDrawings- Custom type detection that extends
WithCustomValueBinderorDefaultValueBinder - Direct use of
NumberFormat,Style, andCoordinate
It also says type declarations have become stricter, and that redeclaring a property in an export class like private $fileName causes a fatal error.
What to do for each version (editorial summary)
| Current setup | Possible action |
|---|---|
| PhpSpreadsheet 5.x | Upgrade to 5.12.0 |
| PhpSpreadsheet 3.x | Upgrade to 3.10.10 and plan a move to 5.x by December 15 |
| 1.x or 2.x (including via Laravel Excel 3.1) | Move to 5.x. Until then, restrict the reading of files sent by users |
5.x requires PHP 8.2 or later. For systems still running on PHP 7.4 or 8.0, you will need to start by upgrading PHP. What changes when moving to PHP 8.6 was covered in our article on PHP 8.6's session cookie defaults.
What to restrict until you move
All of the fixed places are on the file reading side. If you use PhpSpreadsheet only for output and do not read files received from outside, the impact is likely small. If you have an import feature, review the following points.
- Fix the format you read.
IOFactory::load()detects the format automatically. If you accept only XLSX, read withIOFactory::createReader('Xlsx')so that files do not go through the HTML, XLS, XML, or CSV reading logic - Restrict upload size and accepted extensions. Many of the fixes appear to deal with corrupted files or extreme content, so a size limit is meaningful
- Do not accept file names from users. Limit the paths you read to server-side paths where uploads were saved
However, these are not a substitute for the fixes. XLSX reading also had an advisory in April for not checking the upper limit of row numbers (GHSA-7c6m-4442-2x6m).
A way to export Excel files without adding dependencies was introduced in our article on Excel export without extra dependency packages. If the feature only exports, removing PhpSpreadsheet is also an option.
Steps to check
- Check the installed version. Run
composer show phpoffice/phpspreadsheet maatwebsite/excel. If you are on 1.x or 2.x, no further fixes will be released - Do not rely on
composer auditalone. As of November 30, no advisory for these fixes has been published. If an advisory is published and covers 1.x and 2.x as well, you will get only a warning with no fixed version available - Find the places that use reading.
grep -rnE "IOFactory::(load|identify|createReaderForFile)|createReader\(|ToModel|ToCollection|WithChunkReading" app/ src/ --include=*.php
- Estimate the scope of the move to 5.x. Count direct uses such as
getDelegate()above, and starting with import and export logic that has no tests, add tests with fixed input and output files
Points to watch when updating dependencies with Composer are summarized in our article on Composer 2.11.3.
Scope of verification
On November 28, 2026, we checked the PHPOffice/PhpSpreadsheet repository (the CHANGELOG, composer.json, and diff from the previous version for each of the 1.30.9, 2.1.21, 2.4.10, 3.10.10, and 5.12.0 tags, plus SECURITY.md), the publication dates and advisory API on Packagist, github/advisory-database, and the composer.json, CHANGELOG, UPGRADE-4.x.md, and SECURITY.md of Laravel Excel (SpartnerNL/Laravel-Excel) (document research). On November 30, we rechecked the CHANGELOGs of 1.30.8, 2.1.20, 2.4.9, and 3.10.9 and the README on each branch, the repository advisories on GitHub and the GitHub Advisory Database, new versions and advisories on Packagist, and the Laravel Excel README and pull request #4415. We checked dependency resolution and
composer auditin an empty project with PHP 8.3.6 and Composer 2.8.12 (hands-on testing). We did not reproduce the fixed bugs, check the behavior in a Laravel app, or carry out a migration to Laravel Excel 4.0.
For maintenance of business systems that include Excel import and export, or for planning PHP and Laravel upgrades, please contact us through our consultation on development, AI, and automation.
References
- PHPOffice/PhpSpreadsheet — CHANGELOG.md
- PHPOffice/PhpSpreadsheet — 1.30.8 CHANGELOG (end-of-support notice)
- PHPOffice/PhpSpreadsheet — 1.30.9 CHANGELOG
- PHPOffice/PhpSpreadsheet — 3.10.10 CHANGELOG
- PHPOffice/PhpSpreadsheet — Security Patches(6ea23e11)
- PHPOffice/PhpSpreadsheet — SECURITY.md
- phpoffice/phpspreadsheet(Packagist)
- SpartnerNL/Laravel-Excel — UPGRADE-4.x.md
- SpartnerNL/Laravel-Excel — README(Supported Versions)
- SpartnerNL/Laravel-Excel — PHP 8.5 support via PhpSpreadsheet 2.4(#4415)
- maatwebsite/excel(Packagist)









