CVE-2026-45034: Vulnerability in phpoffice/phpspreadsheet

Critical. PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to 1.30.5, CVE-2026-34084 was patched by the helper File::prohibitWrappers. The helper calls parse_url($filename, PHP_URL_SCHEME) and then checks is_string($scheme) && strlen($scheme) > 1 to reject stream wrappers such as phar://, php://, data:// or expect://. The check is not equivalent to "does the path contain a wrapper"....

Packagist, CWE-502

Exploitation
None confirmed
Severity
9.2 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-87m4-826x-3crx
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-502
Published
8 Jun 2026
Last change
25 Oct 2026
Ecosystem
Packagist

Affected packages

Vulnerable version ranges and fixed releases

  • phpoffice/phpspreadsheet Packagist, Affected through 1.30.4. Fixed in 1.30.5

Advisories

Vendor and security advisories