What’s Vulnerable › Vulnerabilities

CVE-2025-22131: Cross-Site Scripting (XSS) vulnerability in generateNavigation() function

Description

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

How to fix

Upgrade to a fixed version: PHPOffice PhpSpreadsheet 1.29.8, 2.1.7, 2.3.6, 3.8.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-22131 or the next vulnerability affects your stack