Cross-site scripting in PhpSpreadsheet - CVE-2025-23210

 

Cross-site scripting in PhpSpreadsheet - CVE-2025-23210

Published: February 1, 2025 / Updated: October 13, 2026


Vulnerability identifier: #VU154201
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2025-23210
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary script in a user's browser.

The vulnerability exists due to improper neutralization of script-capable content in the PhpSpreadsheet XSS sanitizer when sanitizing content containing the javascript protocol and special characters. A remote attacker can use the javascript protocol combined with special characters to bypass sanitization and execute arbitrary script in a user's browser.


Affected software

PhpSpreadsheet

How to mitigate CVE-2025-23210

Install security update from vendor's website.

PhpSpreadsheet - addressed in versions 1.29.9, 2.1.8, 2.3.7, 3.9.0

External References

Related Security Bulletins