# CVE-2025-22131: Cross-Site Scripting (XSS) vulnerability in generateNavigation() function

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-01-20T15:31:19.693Z
- Modified: 2026-06-17T08:45:13.620Z
- Also known as: GHSA-79xx-vf93-p7cx
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- PHPOffice PhpSpreadsheet: >= 3.0.0, < 3.8.0; >= 2.2.0, < 2.3.6; >= 2.0.0, < 2.1.7; < 1.29.8; before 1.29.8; from 2.0.0 before 2.1.7; from 2.2.0 before 2.3.6; from 3.0.0 before 3.8.0
- phpoffice/phpspreadsheet (Packagist): from 3.0.0 before 3.8.0; before 1.29.8; from 2.0.0 before 2.1.7; from 2.2.0 before 2.3.6
- phpoffice/phpexcel (Packagist): up to 1.8.2

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `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: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-79xx-vf93-p7cx> (exploit, vendor-advisory, web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/4088381ccfaf241d7d42c333de0dc8c98e338743> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-22131> (advisory)
- <https://github.com/PHPOffice/PhpSpreadsheet> (package)

## Sources

- CVE List: [CVE-2025-22131](https://www.cve.org/CVERecord?id=CVE-2025-22131), CVE Terms of Use, modified 2025-01-21
- GitHub Advisory Database: [GHSA-79xx-vf93-p7cx](https://github.com/advisories/GHSA-79xx-vf93-p7cx), CC-BY-4.0, modified 2025-03-06
- NVD: [CVE-2025-22131](https://nvd.nist.gov/vuln/detail/CVE-2025-22131), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-22131 · Whole record: https://cve.day/CVE-2025-22131.json · Rebuilt by cve.day 2026-11-25T22:58:53.444Z
