Cross-Site Scripting Vulnerability in PhpSpreadsheet by PHPOffice
CVE-2025-22131
Key Information:
- Vendor
PHPoffice
- Status
- Vendor
- CVE Published:
- 20 January 2025
Badges
What is CVE-2025-22131?
PhpSpreadsheet, a PHP library designed for reading and writing spreadsheet files, contains a Cross-Site Scripting (XSS) vulnerability. This issue arises in the component responsible for converting XLSX files into HTML format, which can potentially expose users to malicious scripts during file processing and rendering. Attackers may exploit this vulnerability by crafting specially designed XLSX files that, when processed by PhpSpreadsheet, lead to execution of unauthorized scripts in the user's browser, compromising security and user data.
Affected Version(s)
PhpSpreadsheet >= 3.0.0, < 3.8.0 < 3.0.0, 3.8.0
PhpSpreadsheet >= 2.2.0, < 2.3.6 < 2.2.0, 2.3.6
PhpSpreadsheet >= 2.0.0, < 2.1.7 < 2.0.0, 2.1.7
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.