{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-56366","id":"CVE-2024-56366","title":"PhpSpreadsheet vulnerable to unauthorized reflected  XSS in the Accounting.php file","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 `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, ","descriptionLong":"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.","published":"2025-01-03T17:01:09.701Z","updated":"2026-10-28T02:30:50.852695669Z","reserved":"2024-12-20T17:34:56.867Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":8.3,"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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":8.3,"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","rating":"high","source":"GitHub_M"},{"version":"4.0","score":8.3,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"high","source":"GitHub"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["PHPOffice PhpSpreadsheet"],"affectedProducts":[{"vendor":"PHPOffice","product":"PhpSpreadsheet","defaultStatus":null,"versions":[{"version":">= 3.0.0, < 3.7.0","status":"affected"},{"version":"< 1.29.7","status":"affected"},{"version":">= 2.0.0, < 2.1.6","status":"affected"},{"version":">= 2.2.0, < 2.3.5","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","ranges":[">=3.0.0 <3.7.0","<1.29.7",">=2.0.0 <2.1.6",">=2.2.0 <2.3.5"],"fixed":["3.7.0","1.29.7","2.1.6","2.3.5"],"advisory":"GHSA-c6fv-7vh8-2rhr"},{"ecosystem":"Packagist","name":"phpoffice/phpexcel","purl":"pkg:composer/phpoffice/phpexcel","ranges":["<=1.8.2"],"fixed":[],"advisory":"GHSA-c6fv-7vh8-2rhr"}],"cwes":["CWE-79"],"aliases":["GHSA-c6fv-7vh8-2rhr"],"references":[{"url":"https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-c6fv-7vh8-2rhr","tags":["x_refsource_CONFIRM","exploit","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/700a80346be269af668914172bc6f4521982d0b4","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56366.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56366","tags":["advisory"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.0034,"epssPercentile":0.28006,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-56366","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56366","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-56366","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-c6fv-7vh8-2rhr","ok":true,"note":"GHSA-c6fv-7vh8-2rhr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-56366","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}