VYPR
Moderate severityNVD Advisory· Published Aug 28, 2024· Updated Aug 29, 2024

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

CVE-2024-45046

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.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
phpoffice/phpspreadsheetPackagist
>= 2.0.0, < 2.1.02.1.0
phpoffice/phpspreadsheetPackagist
< 1.29.11.29.1
phpoffice/phpexcelPackagist
<= 1.8.2

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

5

News mentions

0

No linked articles in our index yet.