CVE-2026-40296
1 advisory.
Packagist/phpoffice/phpspreadsheet CVE-2026-40296: medium 5.4
PhpSpreadsheet has XSS via number format code with @ text placeholder bypasses htmlspecialchars in HTML writer
Action: Upgrade phpoffice/phpspreadsheet to 1.30.4 or later.
composer require phpoffice/phpspreadsheet:5.7.0composer require phpoffice/phpspreadsheet:3.10.5composer require phpoffice/phpspreadsheet:2.4.5composer require phpoffice/phpspreadsheet:2.1.16composer require phpoffice/phpspreadsheet:1.30.4Affected
| introduced | fixed | last affected |
|---|---|---|
| 4.0.0 | 5.7.0 | - |
| 3.3.0 | 3.10.5 | - |
| 2.2.0 | 2.4.5 | - |
| 2.0.0 | 2.1.16 | - |
| 0 | 1.30.4 | - |
Fixed versions
| 5.7.0 | 3.10.5 | 2.4.5 | 2.1.16 | 1.30.4 |
Sources
- osv: GHSA-hrmw-qprp-wgmc
- https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-hrmw-qprp-wgmc
- https://nvd.nist.gov/vuln/detail/CVE-2026-40296
- https://github.com/PHPOffice/PhpSpreadsheet
CVE-2026-40296 · published · modified · JSON