Skip to content
OpenAdvisories
Medium · 4.8 CVE-2025-23210 EUVD-2025-0222GHSA-r57h-547h-w24f

Bypass XSS sanitizer using the javascript protocol and special characters in phpoffice/phpspreadsheet

Published Feb 3, 2025 · Updated Feb 4, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
PHPOffice PhpSpreadsheet >= 3.0.0, < 3.9.0, >= 2.2.0, < 2.3.7, >= 2.0.0, < 2.1.8, < 1.29.9 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist phpoffice/phpexcel <= 1.8.2 — GHSA-r57h-547h-w24f
Packagist phpoffice/phpspreadsheet >= 3.0.0, < 3.9.0 3.9.0 GHSA-r57h-547h-w24f
Packagist phpoffice/phpspreadsheet < 1.29.9 1.29.9 GHSA-r57h-547h-w24f
Packagist phpoffice/phpspreadsheet >= 2.2.0, < 2.3.7 2.3.7 GHSA-r57h-547h-w24f
Packagist phpoffice/phpspreadsheet >= 2.0.0, < 2.1.8 2.1.8 GHSA-r57h-547h-w24f

References