PhpSpreadsheet vulnerable to unauthorized reflected XSS in the Accounting.php file
Published Jan 3, 2025
8.3
HIGHCVSS 4.0
EPSS 0.33%
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.
Affected products
-
- Version < 1.29.7StatusaffectedConstraints-
- Version >= 2.0.0, < 2.1.6StatusaffectedConstraints-
- Version >= 2.2.0, < 2.3.5StatusaffectedConstraints-
- Version >= 3.0.0, < 3.7.0StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PHPOffice | PhpSpreadsheet | n/a |
|
- < 1.29.7
- ≥ 2.0.0 · < 2.1.6
- ≥ 2.2.0 · < 2.3.5
- ≥ 3.3.0 · < 3.7.0
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
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
1 other source (NVD) ▾
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/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
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
1 other source (GHSA) ▾
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
PoCAutomatable
YesTechnical Impact
PartialDecision
n/aAssessed Jan 3, 2025 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2025–2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (5 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 0.33% (0.00331) | 24.01th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.32% (0.00319) | 23.44th | v5 (v2026.06.15) |
| May 25, 2026 | 1.18% (0.01179) | 78.99th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.07% (0.00068) | 18.20th | v4 (v2025.03.14) |
| Jan 4, 2025 | 0.04% (0.00043) | 11.01th | v3 (v2023.03.01) |
References (4)
- https://github.com/PHPOffice/PhpSpreadsheet/commit/700a80346be269af668914172bc6f4521982d0b4 x_refsource_MISCPatch
- https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-c6fv-7vh8-2rhr exploitx_refsource_CONFIRMVendor Advisory
- https://github.com/advisories/GHSA-c6fv-7vh8-2rhr Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-56366
| Link | Providers | Tags |
|---|---|---|
| https://github.com/PHPOffice/PhpSpreadsheet/commit/700a80346be269af668914172bc6f4521982d0b4 | x_refsource_MISCPatch | |
| https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-c6fv-7vh8-2rhr | exploitx_refsource_CONFIRMVendor Advisory | |
| https://github.com/advisories/GHSA-c6fv-7vh8-2rhr | Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-56366 |
Change history (0)
No recorded changes yet.