{"id":"CVE-2024-56366","published":"2025-01-03T17:01:09Z","modified":"2025-01-03T18:15:53Z","title":"PhpSpreadsheet vulnerable to unauthorized reflected XSS in the Accounting.php file","vendor":"PHPOffice","product":"PhpSpreadsheet","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0034,"percentile":0.28253,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-c6fv-7vh8-2rhr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/700a80346be269af668914172bc6f4521982d0b4","tags":["x_refsource_MISC"]}],"priority":{"score":11.5,"factors":[{"name":"EPSS percentile","points":5.65},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"phpoffice","affectedVersions":[{"vendor":"PHPOffice","product":"PhpSpreadsheet","versions":[">= 3.0.0, < 3.7.0","< 1.29.7",">= 2.0.0, < 2.1.6",">= 2.2.0, < 2.3.5"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-01-03T18:15:43.050743Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpoffice/phpspreadsheet","vulnerableRanges":[">=3.0.0, <3.7.0","<1.29.7",">=2.0.0, <2.1.6",">=2.2.0, <2.3.5"],"patched":["3.7.0","1.29.7","2.1.6","2.3.5"],"from":["GHSA-c6fv-7vh8-2rhr"],"provenance":"source"},{"ecosystem":"Packagist","package":"phpoffice/phpexcel","vulnerableRanges":["<=1.8.2"],"patched":[],"from":["GHSA-c6fv-7vh8-2rhr"],"provenance":"source"}],"summary":{"text":"The flaw is a reflected cross-site scripting weakness in the Accounting.php sample script (under the Wizards/NumberFormat samples) of the PhpSpreadsheet PHP library from PHPOffice. An attacker can exploit it by getting a user to interact with a crafted request to that script, so that injected script runs in the victim's browser; the attack requires no authentication and no network access beyond reaching the vulnerable script.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:08Z"},"euvd":{"id":"EUVD-2025-0021","exploited":false,"provenance":"source"}}