{"id":"CVE-2024-56410","published":"2025-01-03T17:17:52Z","modified":"2025-01-03T20:11:13Z","title":"PhpSpreadsheet has Cross-Site Scripting (XSS) vulnerability in custom properties","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 have a cross-site scripting (XSS) vulnerability in custom properties. The HTML page is generated without clearing custom properties. 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":4.8,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00491,"percentile":0.35045,"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-wv23-996v-q229","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/45052f88e04c735d56457a8ffcdc40b2635a028e","tags":["x_refsource_MISC"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":7.01},{"name":"CVSS severity","points":3.36}]},"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":"no","technicalImpact":"partial","timestamp":"2025-01-03T18:01:24.888374Z","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-wv23-996v-q229"],"provenance":"source"},{"ecosystem":"Packagist","package":"phpoffice/phpexcel","vulnerableRanges":["<=1.8.2"],"patched":[],"from":["GHSA-wv23-996v-q229"],"provenance":"source"}],"summary":{"text":"PhpSpreadsheet, the PHP library for reading and writing spreadsheet files, contains a cross-site scripting flaw in its handling of custom properties, where the HTML page it generates does not clear those properties. An attacker can exploit this over the network with low complexity, requiring low privileges and user interaction, to inject script that affects the victim's browser session with limited confidentiality and integrity impact.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:41Z"},"euvd":{"id":"EUVD-2025-0050","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-phpoffice-phpspreadsheet-cve-2018-19277","parents":[{"from":"CVE-2024-45292","to":"CVE-2024-56410","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Writer/Html.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/392dd08c5569b623060784e1333454d64df1f03d","https://github.com/PHPOffice/PhpSpreadsheet/commit/8b9b378ecdc603234a34aab3b293d2cdc8e9210e","https://github.com/PHPOffice/PhpSpreadsheet/commit/45052f88e04c735d56457a8ffcdc40b2635a028e"],"basis":"shared function","functions":["generateRow"]}]}],"children":[{"from":"CVE-2024-56410","to":"CVE-2025-23210","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Writer/Html.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/45052f88e04c735d56457a8ffcdc40b2635a028e","https://github.com/PHPOffice/PhpSpreadsheet/commit/cde2926a9e2baf146783f8fd1771bbed7d1dc7b3"],"basis":"shared function","functions":["generateRow"]}]}]}}