# CVE-2026-108357: PhpSpreadsheet: XmlScanner Bypass via Double-Encoded unentity() TOCTOU Allows XXE and Denial of Service

- Severity: High 8.8 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:L/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-10-22T17:38:16.098Z
- Modified: 2026-10-27T15:47:24.893Z
- Also known as: GHSA-rxj4-h86g-25gc
- Weaknesses: CWE-611, CWE-776
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. From 3.3.0 until 3.10.8 and 5.10.0, Reader\Xml passes stored SpreadsheetML XML through XmlScanner::scan in Xml::canRead and Xml::trySimpleXMLLoadStringPrivate, while Xml::unentity decodes numeric entities only after each DOCTYPE pattern check. A double-encoded less-than character is reduced by the first callback to another encoded character and by the second callback to a literal less-than sign, so SimpleXML receives an unchecked DOCTYPE and entity declaration. Processing attacker-controlled SpreadsheetML XML can cause entity-expansion denial of service 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 3.10.8 and 5.10.0.

(As written by CVE List.)

## Affected

- PHPOffice PhpSpreadsheet: >= 3.3.0, < 3.10.8; >= 4.0.0, < 5.10.0
- phpoffice/phpspreadsheet (Packagist): from 4.0.0 before 5.10.0; from 3.3.0 before 3.10.8

## Every score

- GitHub_M: CVSS:4.0 8.8 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:L/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:L/SI:N/SA:N`

## References

- <https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-rxj4-h86g-25gc> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/89f455c133e1a7e2d4abfadc43ce29eb7450d781> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/980b5c294493856f1a25754f1e8a1d2185b93738> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.8> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.10.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-108357> (advisory)
- <https://github.com/PHPOffice/PhpSpreadsheet> (package)

## Sources

- CVE List: [CVE-2026-108357](https://www.cve.org/CVERecord?id=CVE-2026-108357), CVE Terms of Use, modified 2026-10-23
- GitHub Advisory Database: [GHSA-rxj4-h86g-25gc](https://github.com/advisories/GHSA-rxj4-h86g-25gc), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-108357](https://nvd.nist.gov/vuln/detail/CVE-2026-108357), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-108357 · Whole record: https://cve.day/CVE-2026-108357.json · Rebuilt by cve.day 2026-11-25T22:59:46.794Z
