CVE-2026-108358: PhpSpreadsheet · XmlScanner Bypass via ISO-2022 Escape Sequences Allows XXE and Denial of Service
Affects phpoffice/phpspreadsheetSource GCVE Database
Not known to be exploited · CVSS 8.8 High : upgrade to 5.10.0 soon.
Data as of 27 Oct 2026, 16:28 UTC
- Patch
- Available – fixed in 5.10.0, 3.10.8, 2.4.8 +2
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:L/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistphpoffice/phpspreadsheet | Affected
| Fixed in
|
| Packagistphpoffice/phpspreadsheet | Affected
| Fixed in
|
| Packagistphpoffice/phpspreadsheet | Affected
| Fixed in
|
| Packagistphpoffice/phpspreadsheet | Affected
| Fixed in
|
| Packagistphpoffice/phpspreadsheet | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and users should upgrade PhpSpreadsheet to versions 5.10.0, 3.10.8, 2.4.8, 2.1.19, or 1.30.7 or later. Applying these official fixes will prevent the bypass of the XmlScanner and mitigate the XXE and DoS vulnerabilities. No other specific mitigations are indicated by the vendor advisory.
Description
PhpSpreadsheet versions prior to 5.10.0, 3.10.8, 2.4.8, 2.1.19, and 1.30.7 contain a vulnerability in the XmlScanner::scan() method. The scanner's regex pattern only accounts for NULL byte interleaving when detecting <!DOCTYPE declarations, but ISO-2022 escape sequences can bypass this detection. This allows malicious XLSX files with crafted XML to include DOCTYPE declarations that enable XML External Entity (XXE) attacks and Denial of Service (DoS) via quadratic entity expansion. The issue affects all PHP versions for DoS and PHP versions below 8.0 or when LIBXML_NOENT is used for XXE/SSRF. A fix is available in the stated versions.
References
- github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-3x94-m842-937c (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-108358 (opens in a new tab)
- github.com/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66 (opens in a new tab)
- github.com/PHPOffice/PhpSpreadsheet/commit/89f455c133e1a7e2d4abfadc43ce29eb7450d781 (opens in a new tab)
- github.com/PHPOffice/PhpSpreadsheet/commit/980b5c294493856f1a25754f1e8a1d2185b93738 (opens in a new tab)
- github.com/PHPOffice/PhpSpreadsheet/commit/9a0b48622ebfe93fa48cb9bc09ce57303bb07af9 (opens in a new tab)
- github.com/PHPOffice/PhpSpreadsheet/commit/da13f40e8760d599b0e8a296017d4b028b20e86c (opens in a new tab)
- github.com/PHPOffice/PhpSpreadsheet (opens in a new tab)
- github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.30.7 (opens in a new tab)
- github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.1.19 (opens in a new tab)
- github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.4.8 (opens in a new tab)
- github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.8 (opens in a new tab)
- github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.10.0 (opens in a new tab)