CVE-2025-22131
MEDIUMPhpSpreadsheet <1.29.8 and 3.0.0-3.7.9 - Cross-Site Scripting in XLSX to HTML Translation
Title source: llmExploitation Summary
EIP tracks 2 public exploits for CVE-2025-22131. PoCs published by s0ck37, ZzN1NJ4.
AI-analyzed exploit summary This PoC generates a malicious Excel file (exploit.xlsx) by embedding user-provided HTML/JavaScript into the workbook.xml file of a sample spreadsheet. The exploit leverages CVE-2025-22131, an XSS vulnerability, by replacing a sheet name with the injected payload.
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.
Exploits (2)
This PoC generates a malicious Excel file (exploit.xlsx) by embedding user-provided HTML/JavaScript into the workbook.xml file of a sample spreadsheet. The exploit leverages CVE-2025-22131, an XSS vulnerability, by replacing a sheet name with the injected payload.
This PoC demonstrates an XSS vulnerability in PhpSpreadsheet where unsanitized sheet names in XLSX files can inject malicious HTML. The exploit modifies the workbook.xml file to include an XSS payload that exfiltrates cookies to an attacker-controlled URL.
References (2)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N