CVE-2024-56412

Medium

Description

PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. Versions prior to 3.7.0, 2.3.5, 2.1.6, and 1.29.7 are vulnerable to bypass of the cross-site scripting sanitizer using the javascript protocol and special characters. An attacker can use special characters, so that the library processes the javascript protocol with special characters and generates an HTML link. Versions 3.7.0, 2.3.5, 2.1.6, and 1.29.7 contain a patch for the issue.

SeverityMedium
CVSS5.4
Exploit probability—
ProductPhpoffice Phpspreadsheet
PublishedJan 3, 2025
First seenJan 3, 2025

How to fix

Update
  • phpoffice phpspreadsheet1.29.7, 2.1.6, 2.3.5, 3.7.0 or later
  • phpoffice/phpspreadsheet3.7.0, 1.29.7, 2.1.6, 2.3.5 or later

Affected products

ProductAffected versionsFixed in
phpoffice phpspreadsheetv < 1.29.7, 2.0.0 ≤ v < 2.1.6, 2.2.0 ≤ v < 2.3.5, 3.0.0 ≤ v < 3.7.01.29.7, 2.1.6, 2.3.5, 3.7.0
phpoffice/phpspreadsheetPackagist3.0.0 ≤ v < 3.7.0, v < 1.29.7, 2.0.0 ≤ v < 2.1.6, 2.2.0 ≤ v < 2.3.53.7.0, 1.29.7, 2.1.6, 2.3.5
phpoffice/phpexcelPackagistv ≤ 1.8.2—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.