Cross-Site Scripting Vulnerability in PhpSpreadsheet by PHPOffice
CVE-2025-22131

5.1MEDIUM

Key Information:

Vendor

PHPoffice

Vendor
CVE Published:
20 January 2025

Badges

👾 Exploit Exists🟡 Public PoC

What is CVE-2025-22131?

PhpSpreadsheet, a PHP library designed for reading and writing spreadsheet files, contains a Cross-Site Scripting (XSS) vulnerability. This issue arises in the component responsible for converting XLSX files into HTML format, which can potentially expose users to malicious scripts during file processing and rendering. Attackers may exploit this vulnerability by crafting specially designed XLSX files that, when processed by PhpSpreadsheet, lead to execution of unauthorized scripts in the user's browser, compromising security and user data.

Affected Version(s)

PhpSpreadsheet >= 3.0.0, < 3.8.0 < 3.0.0, 3.8.0

PhpSpreadsheet >= 2.2.0, < 2.3.6 < 2.2.0, 2.3.6

PhpSpreadsheet >= 2.0.0, < 2.1.7 < 2.0.0, 2.1.7

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V4

Score:
5.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • 🟡

    Public PoC available

  • 👾

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

.