XML External Entity injection in PhpSpreadsheet - CVE-2026-108357
Published: October 13, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information, perform server-side request forgery, and cause a denial of service.
The vulnerability exists due to improper restriction of XML entity references in the SpreadsheetML XML reader's XmlScanner::scan() processing when decoding numeric character references after security checks during two successive scans. A remote attacker can submit a specially crafted SpreadsheetML XML file containing double-encoded document type and entity declarations to disclose sensitive information, perform server-side request forgery, and cause a denial of service.
External entity exploitation depends on the PHP and libxml configuration, including PHP versions earlier than 8.0 or use of LIBXML_NOENT. Internal entity expansion is exploitable on all PHP versions.