CVE-2025-22131 Details
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.
A Cross-Site Scripting (XSS) vulnerability has been identified in PhpSpreadsheet versions 3.0.0 prior to 3.8.0, 1.29.8 prior to 2.1.7, and 2.2.0 prior to 2.3.6. The vulnerability arises in the HTML generation process from XLSX files, where sheet titles are not properly sanitized before being displayed. This flaw allows attackers to inject and execute JavaScript code by crafting an XLSX file with a malicious title.
Users can upgrade to PhpSpreadsheet versions 3.8.0, 1.29.8, 2.1.7, or 2.3.6 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| phpoffice phpspreadsheet | < 1.29.8 >= 2.0.0, < 2.1.7 >= 2.2.0, < 2.3.6 >= 3.0.0, < 3.8.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 6, 2025 | Initial Analysis | [email protected] |
| Jan 20, 2025 | New CVE Received | [email protected] |