CVE-2026-40296

medium
Published 2026-04-28 · Modified 2026-05-08
CVSS v3
5.4
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CVSS v2
VIR risk
5.4

Description

PhpSpreadsheet has XSS via number format code with @ text placeholder bypasses htmlspecialchars in HTML writer

Predictions

Exploit likelihood
64%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: security-advisories@github.com — https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-hrmw-qprp-wgmc

Package impact

EcosystemPackageVulnerableFixed
php Packagistphpoffice/phpspreadsheet<=1.30.3|>=2.0.0,<=2.1.15|>=2.2.0,<=2.4.4|>=3.3.0,<=3.10.4|>=4.0.0,<=5.6.0
php Packagistphpoffice/phpspreadsheet>=4.0.0,<5.7.05.7.0
php Packagistphpoffice/phpspreadsheet>=3.3.0,<3.10.53.10.5
php Packagistphpoffice/phpspreadsheet>=2.2.0,<2.4.52.4.5
php Packagistphpoffice/phpspreadsheet>=2.0.0,<2.1.162.1.16
php Packagistphpoffice/phpspreadsheet<1.30.41.30.4
php COMPOSERphpoffice/phpspreadsheet<= 1.30.31.30.4
php COMPOSERphpoffice/phpspreadsheet>= 2.0.0, <= 2.1.152.1.16
php COMPOSERphpoffice/phpspreadsheet>= 2.2.0, <= 2.4.42.4.5
php COMPOSERphpoffice/phpspreadsheet>= 3.3.0, <= 3.10.43.10.5
php COMPOSERphpoffice/phpspreadsheet>= 4.0.0, <= 5.6.05.7.0

Application impact

VendorProductVersionsFixed
phpofficephpspreadsheet{"endExcluding":"1.30.4"}1.30.4

References

CWEs

CWE-79

Verify integrity in audit chain (admin only). AS-IS.