Live threats

All CVEs / Phpoffice

CVE-2025-22131Phpoffice Phpspreadsheet

Medium 5.1 No auth needed

Priority
46
CVSS 4.0
5.1
EPSS
0.5%
probability of exploitation in 30 days · percentile 36
Auth required
No
Published
Jan 20, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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

PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. Cross-Site Scripting (XSS) vulnerability in the code which translates the XLSX file into a HTML representation and displays it in the response.

Original NVD text.

What to do

  1. Apply the vendor's security update for Phpspreadsheet.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist phpoffice/phpexcel ≤ 1.8.2 no fixed version —
Packagist phpoffice/phpspreadsheet ≥ 3.0.0 < 3.8.0 3.8.0 composer require "phpoffice/phpspreadsheet:^3.8.0"
Packagist phpoffice/phpspreadsheet < 1.29.8 1.29.8 composer require "phpoffice/phpspreadsheet:^1.29.8"
Packagist phpoffice/phpspreadsheet ≥ 2.0.0 < 2.1.7 2.1.7 composer require "phpoffice/phpspreadsheet:^2.1.7"
Packagist phpoffice/phpspreadsheet ≥ 2.2.0 < 2.3.6 2.3.6 composer require "phpoffice/phpspreadsheet:^2.3.6"

Per OSV / GitHub Advisories (GHSA-79xx-vf93-p7cx). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
phpofficephpspreadsheet< 1.29.8
phpofficephpspreadsheet≥ 2.0.0 < 2.1.7
phpofficephpspreadsheet≥ 2.2.0 < 2.3.6
phpofficephpspreadsheet≥ 3.0.0 < 3.8.0

Official sources

References

Links published by the sources. Open them with care.