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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PHPOffice | PhpSpreadsheet | >= 3.0.0, < 3.8.0, >= 2.2.0, < 2.3.6, >= 2.0.0, < 2.1.7, < 1.29.8 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
s0ck37/CVE-2025-22131-POC ★ 3 · Sep 5, 2025
POC for the vuln CVE-2025-22131
-
ZzN1NJ4/CVE-2025-22131-PoC ★ 1 · Sep 3, 2025
PoC for CVE-2025-22131
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | phpoffice/phpexcel | <= 1.8.2 | — | GHSA-79xx-vf93-p7cx |
| Packagist | phpoffice/phpspreadsheet | >= 3.0.0, < 3.8.0 | 3.8.0 | GHSA-79xx-vf93-p7cx |
| Packagist | phpoffice/phpspreadsheet | < 1.29.8 | 1.29.8 | GHSA-79xx-vf93-p7cx |
| Packagist | phpoffice/phpspreadsheet | >= 2.0.0, < 2.1.7 | 2.1.7 | GHSA-79xx-vf93-p7cx |
| Packagist | phpoffice/phpspreadsheet | >= 2.2.0, < 2.3.6 | 2.3.6 | GHSA-79xx-vf93-p7cx |