{"id":"CVE-2024-45060","published":"2024-10-07T20:15:35Z","modified":"2024-10-08T18:28:48Z","title":"Unauthenticated Cross-Site-Scripting (XSS) in sample file in PHPSpreadsheet","vendor":"PHPOffice","product":"PhpSpreadsheet","tier":"tail","description":{"text":"PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. One of the sample scripts in PhpSpreadsheet is susceptible to a cross-site scripting (XSS) vulnerability due to improper handling of input where a number is expected leading to formula injection. The code in in `45_Quadratic_equation_solver.php` concatenates the user supplied parameters directly into spreadsheet formulas. This allows an attacker to take control over the formula and output unsanitized data into the page, resulting in JavaScript execution. This issue has been addressed in release versions 1.29.2, 2.1.1, and 2.3.0. All users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00774,"percentile":0.52151,"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-v66g-p9x6-v98p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/blob/d50b8b5de7e30439fb57eae7df9ea90e79fa0f2d/samples/Basic/45_Quadratic_equation_solver.php#L56","tags":["x_refsource_MISC"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":10.43},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"phpoffice","affectedVersions":[{"vendor":"PHPOffice","product":"PhpSpreadsheet","versions":["< 1.29.2",">= 2.0.0, < 2.1.1",">= 2.2.0, < 2.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-08T18:27:07.349833Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpoffice/phpspreadsheet","vulnerableRanges":[">=2.2.0, <2.3.0","<1.29.2",">=2.0.0, <2.1.1"],"patched":["2.3.0","1.29.2","2.1.1"],"from":["GHSA-v66g-p9x6-v98p"],"provenance":"source"},{"ecosystem":"Packagist","package":"phpoffice/phpexcel","vulnerableRanges":["<=1.8.2"],"patched":[],"from":["GHSA-v66g-p9x6-v98p"],"provenance":"source"}],"summary":{"text":"A cross-site scripting flaw in the sample script 45_Quadratic_equation_solver.php, shipped with the PhpSpreadsheet PHP spreadsheet library from PHPOffice, arises because user-supplied parameters are concatenated directly into spreadsheet formulas and reflected unsanitized into the page. An unauthenticated attacker who can get a victim to interact with a crafted link or request (user interaction required) can inject and execute JavaScript in the victim's browser.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:37Z"},"euvd":{"id":"EUVD-2024-3140","exploited":false,"provenance":"source"}}