CVE-2024-56366
published high CVSS 4.0 · 8.3PhpSpreadsheet vulnerable to unauthorized reflected XSS in the Accounting.php file
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| PHPOffice | — | PhpSpreadsheet>= 3.0.0, < 3.7.0 · < 1.29.7 · >= 2.0.0, < 2.1.6 · >= 2.2.0, < 2.3.5 | Affected | Not stated | GitHub_M |
Description
PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. Versions prior to 3.7.0, 2.3.5, 2.1.6, and 1.29.7 are vulnerable to unauthorized reflected cross-site scripting in the `Accounting.php` file. Using the `/vendor/phpoffice/phpspreadsheet/samples/Wizards/NumberFormat/Accounting.php` script, an attacker can perform a cross-site scripting attack. Versions 3.7.0, 2.3.5, 2.1.6, and 1.29.7 contain a patch for the issue.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.3 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:L/SI:H/SA:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| PHPOffice | PhpSpreadsheet | >= 3.0.0, < 3.7.0 (affected)< 1.29.7 (affected)>= 2.0.0, < 2.1.6 (affected)>= 2.2.0, < 2.3.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2Provider assertions
2GitHub_M · cna
PhpSpreadsheet vulnerable to unauthorized reflected XSS in the Accounting.php file
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 87c3aa379ffaa5538f4687a3560a1fa2aa0e5a6e83223f12ba4e53771891a190
- Ingested
- 23 Sep 2026, 08:31:43 UTC
- Source record
- Official CVE record