CVE-2024-45046CWE-79

PhpSpreadsheet HTML writer is vulnerable to Cross-Site Scripting via style information

Medium · published August 28, 2024

CVSS v3.1
5.4
EPSS
0%
Percentile
35.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.4 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00418 · 35.1th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2024-08-28T20:41Z
EPSS history
Timeline
  • 28 AUG 20:41Z
    PhpSpreadsheet HTML writer is vulnerable to Cross-Site Scripting via style information
    cvelistv5