Live threats

All CVEs / PHPOffice

CVE-2025-23210PHPOffice PhpSpreadsheet

Medium 4.8

Priority
29
CVSS 4.0
4.8
EPSS
—
Auth required
Yes
Published
Feb 3, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for PhpSpreadsheet.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist phpoffice/phpexcel ≤ 1.8.2 no fixed version —
Packagist phpoffice/phpspreadsheet ≥ 3.0.0 < 3.9.0 3.9.0 composer require "phpoffice/phpspreadsheet:^3.9.0"
Packagist phpoffice/phpspreadsheet < 1.29.9 1.29.9 composer require "phpoffice/phpspreadsheet:^1.29.9"
Packagist phpoffice/phpspreadsheet ≥ 2.2.0 < 2.3.7 2.3.7 composer require "phpoffice/phpspreadsheet:^2.3.7"
Packagist phpoffice/phpspreadsheet ≥ 2.0.0 < 2.1.8 2.1.8 composer require "phpoffice/phpspreadsheet:^2.1.8"

Per OSV / GitHub Advisories (GHSA-r57h-547h-w24f). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.