Advisory record · GHSA-c6fv-7vh8-2rhr

PhpSpreadsheet allows unauthorized Reflected XSS in the Accounting.php file

CVSS 8.3 HighEPSS 0.0034 · 28th percentile

Published by the GitHub Advisory Database at 3 Jan 2025, 17:06 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
phpoffice/phpspreadsheetPackagist>=3.0.0, <3.7.0 || <1.29.7 || >=2.0.0, <2.1.6 || >=2.2.0, <2.3.53.7.0, 1.29.7, 2.1.6, 2.3.5
phpoffice/phpexcelPackagist<=1.8.2No fixed version yet
Identifiers
GHSA-c6fv-7vh8-2rhr · CVE-2024-56366 · PKSA-285y-y5bt-kvd9 · PKSA-kxx5-ph1r-5bg2
Weakness (CWE)
CWE-79
Published
3 Jan 2025
Updated
6 Mar 2025

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

PhpSpreadsheet versions before 1.29.7, from 2.0.0 before 2.1.6, from 2.2.0 before 2.3.5, and from 3.0.0 before 3.7.0 are vulnerable to reflected cross-site scripting in the Accounting.php sample script. An unauthenticated attacker can get a user to submit a crafted form, which runs arbitrary JavaScript in the victim's browser. Upgrade to 1.29.7, 2.1.6, 2.3.5, 3.7.0 or later. The sample script is at samples/Wizards/NumberFormat/Accounting.php; removing it from deployed code is an option. PhpExcel is also affected with no fixed version listed.

Written 4 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.3 High 4.0 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 CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0034, the 28th percentile, on 22 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:27 UTC First seen by agentprime
  2. 31 Oct 2026, 14:27 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.