# CVE-2026-35453: PhpSpreadsheet XSS via number format text substitution in HTML Writer

- Severity: Medium 4.8 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-28T22:50:31.000Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-6wpp-88cp-7q68
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- PHPOffice PhpSpreadsheet: >= 4.0.0, <= 5.6.0; >= 3.3.0, <= 3.10.4; >= 2.2.0, <= 2.4.4; >= 2.0.0, <= 2.1.15; <= 1.30.3; before 1.30.4; from 2.0.0 before 2.1.16; from 2.2.0 before 2.4.5; from 3.3.0 before 3.10.5; from 4.0.0 before 5.7.0
- phpoffice/phpspreadsheet (Packagist): from 4.0.0 before 5.7.0; from 3.3.0 before 3.10.5; from 2.2.0 before 2.4.5; from 2.0.0 before 2.1.16; before 1.30.4

## Every score

- GitHub_M: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-6wpp-88cp-7q68> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35453> (advisory)
- <https://github.com/PHPOffice/PhpSpreadsheet> (package)

## Sources

- CVE List: [CVE-2026-35453](https://www.cve.org/CVERecord?id=CVE-2026-35453), CVE Terms of Use, modified 2026-05-06
- GitHub Advisory Database: [GHSA-6wpp-88cp-7q68](https://github.com/advisories/GHSA-6wpp-88cp-7q68), CC-BY-4.0, modified 2026-05-08
- NVD: [CVE-2026-35453](https://nvd.nist.gov/vuln/detail/CVE-2026-35453), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-35453 · Whole record: https://cve.day/CVE-2026-35453.json · Rebuilt by cve.day 2026-11-25T22:59:20.640Z
