CVE-2025-22131 json
Cross-Site Scripting (XSS) vulnerability in generateNavigation() function
published 2025-01-20 21 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-0143 , GHSA-79xx-vf93-p7cx
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 34%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist phpoffice/phpspreadsheet 1.29.8, 2.1.7, 2.3.6, 3.8.0
- phpoffice phpspreadsheet 1.29.8, 2.1.7, 2.3.6, 3.8.0
- phpspreadsheet_project phpspreadsheet 1.29.8, 2.1.7, 2.3.6, 3.8.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 21 mo ago
Exploit prediction
0.40% chance of exploitation in the next 30 days, higher than 34% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-79xx-vf93-p7cx referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| CNA | 4.0 | 5.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | phpoffice/phpspreadsheet | >=3.0.0, <3.8.0 <1.29.8 >=2.0.0, <2.1.7 >=2.2.0, <2.3.6 |
3.8.0 1.29.8 2.1.7 2.3.6 |
| packagist | phpoffice/phpexcel | <=1.8.2 |
no fix listed |
Affected products
- PHPOffice PhpSpreadsheet
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/PHPOffice/PhpSpreadsheet/commit/4088381ccfaf241d7d42c333de0dc8c98e338743
web, patch
-
github.com
/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-79xx-vf93-p7cx
web, exploit, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-22131
advisory
-
github.com
/PHPOffice/PhpSpreadsheet
package
Sources
- CVE List CVE-2025-22131
- GitHub Advisory GHSA-79xx-vf93-p7cx
- NVD CVE-2025-22131
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.