# CVE-2024-56409: PhpSpreadsheet vulnerable to unauthorized reflected XSS in Currency.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.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-01-03T17:05:43.272Z
- Modified: 2026-09-10T03:50:56.526Z
- Also known as: GHSA-j2xg-cjcx-4677
- 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 `Currency.php` file. Using the `/vendor/phpoffice/phpspreadsheet/samples/Wizards/NumberFormat/Currency.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-j2xg-cjcx-4677> (exploit, vendor-advisory, web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/700a80346be269af668914172bc6f4521982d0b4> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-56409> (advisory)
- <https://github.com/PHPOffice/PhpSpreadsheet> (package)

## Sources

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

---

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