Skip to content
OpenAdvisories
Medium · 5.1 Public exploit CVE-2025-22131 EUVD-2025-0143GHSA-79xx-vf93-p7cx

Cross-Site Scripting (XSS) vulnerability in generateNavigation() function

Published Jan 20, 2025 · Updated Jan 21, 2025 · 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.

Affected products

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

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
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

References