# CVE-2024-56408: PhpSpreadsheet allows unauthorized reflected XSS in `Convert-Online.php` file

- Severity: High 8.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:L/SI:H/SA:L`
- 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.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-01-03T16:05:22.944Z
- Modified: 2026-09-10T03:50:56.511Z
- Also known as: GHSA-x88g-h956-m5xg
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. Versions prior to 3.7.0, 2.3.5, 2.1.6, and 1.29.7 have no sanitization in the `/vendor/phpoffice/phpspreadsheet/samples/Engineering/Convert-Online.php` file, which leads to the possibility of a cross-site scripting attack. Versions 3.7.0, 2.3.5, 2.1.6, and 1.29.7 contain a patch for the issue.

(As written by CVE List.)

## Affected

- PHPOffice PhpSpreadsheet: >= 3.0.0, < 3.7.0; < 1.29.7; >= 2.0.0, < 2.1.6; >= 2.2.0, < 2.3.5; before 1.29.7; from 2.0.0 before 2.1.6; from 2.2.0 before 2.3.5; from 3.3.0 before 3.7.0
- phpoffice/phpspreadsheet (Packagist): from 3.0.0 before 3.7.0; before 1.29.7; from 2.0.0 before 2.1.6; from 2.2.0 before 2.3.5
- phpoffice/phpexcel (Packagist): up to 1.8.2

## Every score

- GitHub_M: CVSS:4.0 8.3 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:L/SI:H/SA:L`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:L/SI:H/SA:L`
- 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-x88g-h956-m5xg> (exploit, vendor-advisory, web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/700a80346be269af668914172bc6f4521982d0b4> (patch, web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/9b9a55c7154daa7cd4095f618933c240508ba3c1> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/a50ebfe118b3ae0ddaea1c48ac19dc38692f4abc> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/b8fac55aa5cb7a3d514c7308378bb37bb711b25e> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-56408> (advisory)
- <https://github.com/PHPOffice/PhpSpreadsheet> (package)

## Sources

- CVE List: [CVE-2024-56408](https://www.cve.org/CVERecord?id=CVE-2024-56408), CVE Terms of Use, modified 2025-05-20
- GitHub Advisory Database: [GHSA-x88g-h956-m5xg](https://github.com/advisories/GHSA-x88g-h956-m5xg), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-56408](https://nvd.nist.gov/vuln/detail/CVE-2024-56408), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56408 · Whole record: https://cve.day/CVE-2024-56408.json · Rebuilt by cve.day 2026-11-25T22:58:50.680Z
