### [CVE-2024-45046](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-45046) ![](https://img.shields.io/static/v1?label=Product&message=PhpSpreadsheet&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=%3D%20%3C%202.1.0%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-79%3A%20Improper%20Neutralization%20of%20Input%20During%20Web%20Page%20Generation%20('Cross-site%20Scripting')&color=brighgreen) ### Description PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. In affected versions `\PhpOffice\PhpSpreadsheet\Writer\Html` doesn't sanitize spreadsheet styling information such as font names, allowing an attacker to inject arbitrary JavaScript on the page. As a result an attacker may used a crafted spreadsheet to fully takeover a session of a user viewing spreadsheet files as HTML. This issue has been addressed in release version 2.1.0. All users are advised to upgrade. There are no known workarounds for this vulnerability. ### POC #### Reference - https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-wgmf-q9vr-vww6 #### Github No PoCs found on GitHub currently.