patchminder
Proof of concept · CISA assessment CVE-2024-56366

Cross-site scriptingin PHPOffice PhpSpreadsheet.

Published 3 Jan 2025 · Updated 3 Jan 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
High 8.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 4.0 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.3% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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 `Accounting.php` file. Using the `/vendor/phpoffice/phpspreadsheet/samples/Wizards/NumberFormat/Accounting.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.

What to do now
  • Upgrade PhpSpreadsheet to 1.29.7, 2.1.6, 2.3.5, 3.7.0 or later, whichever matches your release line.
  • Upgrade phpoffice/phpspreadsheet (Packagist) to 1.29.7, 2.1.6, 2.3.5, 3.7.0 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
PhpSpreadsheet
3.0.0 to before 3.7.0
3.7.0
CVE record
PhpSpreadsheet
before 1.29.7
1.29.7
CVE record
PhpSpreadsheet
2.0.0 to before 2.1.6
2.1.6
CVE record
PhpSpreadsheet
2.2.0 to before 2.3.5
2.3.5
CVE record
phpoffice/phpspreadsheet (Packagist)
3.0.0 to before 3.7.0
3.7.0
GitHub advisory
phpoffice/phpspreadsheet (Packagist)
before 1.29.7
1.29.7
GitHub advisory
phpoffice/phpspreadsheet (Packagist)
2.0.0 to before 2.1.6
2.1.6
GitHub advisory
phpoffice/phpspreadsheet (Packagist)
2.2.0 to before 2.3.5
2.3.5
GitHub advisory
phpoffice/phpexcel (Packagist)
1.8.2 and earlier
Not confirmed
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 20 Dec 2024
    CVE ID reserved by GitHub_M.
  2. 3 Jan 2025
    Published in the CVE List.
  3. 3 Jan 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other PhpSpreadsheet vulnerabilities

Same weakness: Cross-site scripting

All CWE-79 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-56366: Cross-site scripting in PHPOffice PhpSpreadsheet. https://patchminder.com/cve/cve-2024-56366/ (accessed 5 December 2026).