Skip to main content

CVE-2026-108357: CWE-611: Improper Restriction of XML External Entity Reference in PHPOffice PhpSpreadsheet

0
High
VulnerabilityCVE-2026-108357cvecve-2026-108357cwe-611cwe-776
Published: 10/22/2026 (10/22/2026, 17:38:16 UTC)
Source: CVE Database V5
Vendor/Project: PHPOffice
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
Low
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

PHPOffice

PhpSpreadsheet

Affected versions
>=3.3.0 <3.10.8>=4.0.0 <5.10.0
GitHub Actionsmore threats →ai
phpoffice/PhpSpreadsheet
pkg:github/phpoffice/PhpSpreadsheet
Affected versions
>=3.3.0 <3.10.8>=4.0.0 <5.10.0

Run 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

AILast updated: 10/22/2026, 18:00:40 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses