CVE-2025-22131: Phpoffice Phpspreadsheet

Medium severity, CVSS 6.1. EPSS: 0.4% chance of exploitation in the next 30 days.

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.

Affected products

  • Phpoffice Phpspreadsheet: before 1.29.8 (fixed in 1.29.8); from 2.0.0, before 2.1.7 (fixed in 2.1.7); from 2.2.0, before 2.3.6 (fixed in 2.3.6); from 3.0.0, before 3.8.0 (fixed in 3.8.0)

Published 2025-01-20. Last modified 2026-06-17.