# CVE-2024-56365: PhpSpreadsheet vulnerable to unauthorized reflected XSS in the constructor of the Downloader class

- 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.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-01-03T16:56:35.040Z
- Modified: 2026-06-17T08:12:07.100Z
- Also known as: GHSA-jmpx-686v-c3wx
- 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 are vulnerable to unauthorized reflected cross-site scripting in the constructor of the `Downloader` class. Using the `/vendor/phpoffice/phpspreadsheet/samples/download.php` script, an attacker can perform 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-jmpx-686v-c3wx> (exploit, vendor-advisory, web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/700a80346be269af668914172bc6f4521982d0b4#diff-fbb0f53a5c68eeeffaa9ab35552c0b01740396f1a4045af5d2935ec2a62a7816> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-56365> (advisory)
- <https://github.com/PHPOffice/PhpSpreadsheet> (package)

## Sources

- CVE List: [CVE-2024-56365](https://www.cve.org/CVERecord?id=CVE-2024-56365), CVE Terms of Use, modified 2025-01-03
- GitHub Advisory Database: [GHSA-jmpx-686v-c3wx](https://github.com/advisories/GHSA-jmpx-686v-c3wx), CC-BY-4.0, modified 2025-03-06
- NVD: [CVE-2024-56365](https://nvd.nist.gov/vuln/detail/CVE-2024-56365), Public domain, modified 2026-06-17

---

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