Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-108358
Published:October 22, 2026
Updated:October 23, 2026
PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0, XmlScanner::scan in src/PhpSpreadsheet/Reader/Security/XmlScanner.php uses a DOCTYPE detection pattern that accounts for NUL-byte interleaving but not ISO-2022 escape sequences in XLSX XML parts. The escape sequences prevent the scanner from matching the declaration, and XML charset normalization then removes the escape bytes before parsing, exposing a valid DOCTYPE and entity definitions. Processing an attacker-controlled XLSX can therefore cause entity-expansion denial of service on supported PHP versions and can permit local file access or SSRF on PHP before 8.0 or when LIBXML_NOENT is enabled. This issue is fixed in versions 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0.
Affected Packages
https://github.com/PHPOffice/PhpSpreadsheet.git (GITHUB):
Affected version(s) >=2.1.3 <2.1.19
Fix Suggestion:
Update to version 2.1.19
https://github.com/PHPOffice/PhpSpreadsheet.git (GITHUB):
Affected version(s) >=1.29.4 <1.30.7
Fix Suggestion:
Update to version 1.30.7
https://github.com/PHPOffice/PhpSpreadsheet.git (GITHUB):
Affected version(s) >=3.4.0 <3.10.8
Fix Suggestion:
Update to version 3.10.8
https://github.com/PHPOffice/PhpSpreadsheet.git (GITHUB):
Affected version(s) >=2.3.2 <2.4.8
Fix Suggestion:
Update to version 2.4.8
https://github.com/PHPOffice/PhpSpreadsheet.git (GITHUB):
Affected version(s) >=5.0.0 <5.10.0
Fix Suggestion:
Update to version 5.10.0
phpoffice/phpspreadsheet (PHP):
Affected version(s) >=1.29.4 <1.30.7
Fix Suggestion:
Update to version 1.30.7
phpoffice/phpspreadsheet (PHP):
Affected version(s) >=5.0.0 <5.10.0
Fix Suggestion:
Update to version 5.10.0
phpoffice/phpspreadsheet (PHP):
Affected version(s) >=2.1.3 <2.1.19
Fix Suggestion:
Update to version 2.1.19
phpoffice/phpspreadsheet (PHP):
Affected version(s) >=3.4.0 <3.10.8
Fix Suggestion:
Update to version 3.10.8
phpoffice/phpspreadsheet (PHP):
Affected version(s) >=2.3.2 <2.4.8
Fix Suggestion:
Update to version 2.4.8
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
LOW
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
LOW
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
Improper Restriction of XML External Entity Reference