PT-2024-31545 · Phpoffice · Phpspreadsheet

Emilvirkki

·

Published

2024-10-07

·

Updated

2025-03-07

·

CVE-2024-45292

CVSS v3.1

5.4

Medium

VectorAV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions PHPSpreadsheet versions prior to 1.29.2 PHPSpreadsheet versions prior to 2.1.1 PHPSpreadsheet versions prior to 2.3.0
Description The PhpOfficePhpSpreadsheetWriterHtml component in PHPSpreadsheet does not sanitize "javascript:" URLs from hyperlink href attributes, resulting in a Cross-Site Scripting issue. This allows for potential exploitation when a user interacts with a crafted spreadsheet file. There are no known workarounds for this issue.
Recommendations For PHPSpreadsheet versions prior to 1.29.2, upgrade to version 1.29.2 or later. For PHPSpreadsheet versions prior to 2.1.1, upgrade to version 2.1.1 or later. For PHPSpreadsheet versions prior to 2.3.0, upgrade to version 2.3.0 or later.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-45292
GHSA-R8W8-74WW-J4WH

Affected Products

Phpspreadsheet