CVE-2024-45046
PHP vulnerability analysis and mitigation

Overview

CVE-2024-45046 affects PHPSpreadsheet, a pure PHP library for reading and writing spreadsheet files. The vulnerability was discovered in the HTML writer component and disclosed on August 28, 2024. The vulnerability affects versions 2.0.0 through 2.1.0 and versions prior to 1.29.1 of PHPSpreadsheet (GitHub Advisory).

Technical details

The vulnerability exists in the \PhpOffice\PhpSpreadsheet\Writer\Html component which fails to properly sanitize spreadsheet styling information, such as font names. This allows an attacker to inject arbitrary JavaScript code into the generated HTML output. The vulnerability has been assigned a CVSS v3.1 score of 5.4 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N. The vulnerability is classified as CWE-79: Improper Neutralization of Input During Web Page Generation (Cross-site Scripting) (GitHub Advisory, NVD).

Impact

A successful exploitation of this vulnerability could allow an attacker to achieve full session takeover of users who are viewing spreadsheet files as HTML. The vulnerability impacts both confidentiality and integrity at a low level, while availability is not affected (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in PHPSpreadsheet versions 2.1.0 and 1.29.1. All users are advised to upgrade to these patched versions. There are no known workarounds for this vulnerability (NVD).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23492HIGH8.8
  • PHPPHP
  • pimcore/pimcore
NoYesJan 14, 2026
CVE-2026-23498HIGH7.2
  • PHPPHP
  • shopware/core
NoYesJan 14, 2026
GHSA-595p-g7xc-c333MEDIUM6.9
  • PHPPHP
  • algolia/algoliasearch-magento-2
NoYesJan 14, 2026
CVE-2022-50807MEDIUM6.9
  • PHPPHP
  • concrete5/concrete5
NoNoJan 13, 2026
CVE-2026-0859MEDIUM5.2
  • PHPPHP
  • typo3/cms-core
NoYesJan 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management