CVE-2025-23210
Description
phpoffice/phpspreadsheet is a pure PHP library for reading and writing spreadsheet files. Affected versions have been found to have a Bypass of the Cross-site Scripting (XSS) sanitizer using the javascript protocol and special characters. This issue has been addressed in versions 3.9.0, 2.3.7, 2.1.8, and 1.29.9. Users are advised to upgrade. There are no known workarounds for this vulnerability.
How to fix
- phpoffice/phpspreadsheet3.9.0, 1.29.9, 2.3.7, 2.1.8 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| phpoffice/phpspreadsheetPackagist | 3.0.0 ≤ v < 3.9.0, v < 1.29.9, 2.2.0 ≤ v < 2.3.7, 2.0.0 ≤ v < 2.1.8 | 3.9.0, 1.29.9, 2.3.7, 2.1.8 |
| phpoffice/phpexcelPackagist | v ≤ 1.8.2 | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.