CVE-2026-40296: PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files
CVE-2026-40296 is a medium-severity flaw (CVSS 5.4) affecting phpspreadsheet. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. The HTML writer skips htmlspecialchars escaping when a cell's formatted value differs from the original value. When a cell has a custom number format containing the text placeholder @ along with any additional literal characters (for example ". @", "@ ", or "x@"), the formatter replaces @ with the cell value and adds the extra characters, causing the formatted value t
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.4 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | Required |
| EPSS exploit chance | 0.2% (top 87%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2026-05-06 |
| Last modified | 2026-10-26 |
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40296?
phpspreadsheet: upgrade to 1.30.4, 2.1.16, 2.4.5, 3.10.5, 5.7.0. Exact commands for each OS are on this page.
Is CVE-2026-40296 being exploited?
CVE-2026-40296 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40296 affect?
CVE-2026-40296 affects phpspreadsheet. Severity is medium (CVSS 5.4). PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. The HTML writer skips htmlspecialchars escaping when a cell's formatted value differs from the original value. When a cell has a custom number format containing
How urgent is CVE-2026-40296?
Priority 27/100. Public exploit reference
Software pages
Related CVEs
- CVE-2026-40863 HIGH 7.5 UPGRADE PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files
- CVE-2026-40902 HIGH 7.5 UPGRADE PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files