CVE-2026-108357: CWE-611: Improper Restriction of XML External Entity Reference in PHPOffice PhpSpreadsheet
Description
CVE-2026-108357 is a high-severity vulnerability in PHPOffice PhpSpreadsheet affecting versions from 3.3.0 up to but not including 3.10.8 and from 4.0.0 up to but not including 5.10.0. The issue involves improper restriction of XML External Entity (XXE) references in the library's XML reader, which can allow denial of service via entity expansion, local file access, or server-side request forgery (SSRF) under certain PHP configurations. The vulnerability is fixed in versions 3.10.8 and 5.10.0.
CVSS v4.0
Score 8.8high
Affected software
PHPOffice
PhpSpreadsheet
pkg:github/phpoffice/PhpSpreadsheetRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PhpSpreadsheet versions >=3.3.0 <3.10.8 and >=4.0.0 <5.10.0 improperly handle XML External Entity references due to the way the Reader\Xml component processes SpreadsheetML XML. Specifically, the XmlScanner::scan method in Xml::canRead and Xml::trySimpleXMLLoadStringPrivate allows a double-encoded less-than character to bypass DOCTYPE and entity declaration checks, resulting in SimpleXML receiving unchecked DOCTYPE and entity declarations. This flaw can lead to entity-expansion denial of service and enable local file access or SSRF on PHP versions before 8.0 or when the LIBXML_NOENT option is enabled. The vulnerability is addressed in PhpSpreadsheet versions 3.10.8 and 5.10.0.
Potential Impact
An attacker who can supply malicious SpreadsheetML XML to the vulnerable PhpSpreadsheet versions may cause denial of service through entity expansion or exploit the XXE flaw to access local files or perform SSRF attacks. This risk is present on PHP versions prior to 8.0 or when the LIBXML_NOENT option is enabled. The vulnerability has a high severity rating with a CVSS 4.0 score of 8.8.
Mitigation Recommendations
Upgrade PhpSpreadsheet to version 3.10.8 or later, or 5.10.0 or later, where this vulnerability is fixed. No other mitigations are specified. Patch status is confirmed fixed in these versions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-09T20:32:44.301Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ada4bef4d27ba8daa6ca6f7
Added to database: 10/22/2026, 17:46:23 UTC
Last enriched: 10/22/2026, 18:00:40 UTC
Last updated: 10/22/2026, 18:01:31 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.