CVE-2025-23210
MEDIUM 4.8CVSS 4.0PhpSpreadsheet allows bypassing of XSS sanitizer using the javascript protocol and special characters
phpoffice/phpspreadsheet is a pure PHP library for reading and writing spreadsheet files. Affected versions have been found to have a Bypass of the Cross-site Scripting (XSS) sanitizer using the javascript protocol and special characters. This issue has been addressed in versions 3.9.0, 2.3.7, 2.1.8, and 1.29.9. Users are advised to upgrade. There are no known workarounds for this vulnerability.
- Published
- 3 Feb 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-r57h-547h-w24f
- Sources
- NVDJSONOSV GHSA-r57h-547h-w24fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 4.8 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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 |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N | |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | phpoffice/phpspreadsheet | >= 3.0.0, < 3.9.0 | 3.9.0 |
| OSV | Packagist | phpoffice/phpspreadsheet | < 1.29.9 | 1.29.9 |
| OSV | Packagist | phpoffice/phpspreadsheet | >= 2.2.0, < 2.3.7 | 2.3.7 |
| OSV | Packagist | phpoffice/phpspreadsheet | >= 2.0.0, < 2.1.8 | 2.1.8 |
| OSV | Packagist | phpoffice/phpexcel | <= 1.8.2 |
References
- https://github.com/PHPOffice/PhpSpreadsheet/commit/cde2926a9e2baf146783f8fd1771bbed7d1dc7b3 · WEB
- https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-r57h-547h-w24f · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-23210 · ADVISORY
- https://github.com/PHPOffice/PhpSpreadsheet · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 3 Feb 2025)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 3 Feb 2025)