CVE-2024-45046: PhpSpreadsheet HTML writer is vulnerable to Cross-Site Scripting via style information
\PhpOffice\PhpSpreadsheet\Writer\Html
doesn’t sanitize spreadsheet styling information such as font names, allowing an attacker to inject arbitrary JavaScript on the page.
References
- github.com/PHPOffice/PhpSpreadsheet
- github.com/PHPOffice/PhpSpreadsheet/commit/f7cf378faed2e11cf4825bf8bafea4922ae44667
- github.com/PHPOffice/PhpSpreadsheet/pull/3957
- github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-wgmf-q9vr-vww6
- github.com/advisories/GHSA-wgmf-q9vr-vww6
- nvd.nist.gov/vuln/detail/CVE-2024-45046
Detect and mitigate CVE-2024-45046 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →