CVE-2026-35453
Description
PhpSpreadsheet is a library for reading and writing spreadsheet files. In versions 1.30.3 and earlier, 2.0.0 through 2.1.15, 2.2.0 through 2.4.4, 3.3.0 through 3.10.4, and 4.0.0 through 5.6.0, the HTML Writer skips htmlspecialchars() output escaping when a cell uses a custom number format containing the @ text placeholder with additional literal text (e.g., @ "items"). The escaping is only applied when the formatted output strictly equals the original cell value. When the format code contains @ with quoted literal text, the formatter substitutes the raw cell value into the format string and returns early without invoking the escaping callback. An attacker who can control cell content in a spreadsheet processed by the HTML Writer can inject arbitrary HTML and JavaScript into the generated output. This issue has been fixed in versions 1.30.4, 2.1.16, 2.4.5, 3.10.5, and 5.7.0.
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-05-06 |
Timeline
- 2026-04-28GitHub advisory published (GHSA-6wpp-88cp-7q68)7 days before publication
- 2026-05-05Published by the CNA19:39 UTC
- 2026-05-06CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-6wpp-88cp-7q68, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Packagist phpoffice/phpspreadsheet | before 1.30.4 | 1.30.4 |
| Packagist phpoffice/phpspreadsheet | from 2.0.0 before 2.1.16 | 2.1.16 |
| Packagist phpoffice/phpspreadsheet | from 2.2.0 before 2.4.5 | 2.4.5 |
| Packagist phpoffice/phpspreadsheet | from 3.3.0 before 3.10.5 | 3.10.5 |
| Packagist phpoffice/phpspreadsheet | from 4.0.0 before 5.7.0 | 5.7.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| phpoffice phpspreadsheet | before 1.30.4fixed in 1.30.4from 2.0.0 before 2.1.16fixed in 2.1.16from 2.2.0 before 2.4.5fixed in 2.4.5from 3.3.0 before 3.10.5fixed in 3.10.5from 4.0.0 before 5.7.0fixed in 5.7.0 | 1.30.42.1.162.4.53.10.55.7.0 |
References
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-35453'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-35453'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-35453'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-35453'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).