Advisory record · GHSA-v66g-p9x6-v98p

PhpSpreadsheet has an Unauthenticated Cross-Site-Scripting (XSS) in sample file

CVSS 7.1 HighEPSS 0.0051 · 44th percentile

Published by the GitHub Advisory Database at 7 Oct 2024, 14:43 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
phpoffice/phpspreadsheetPackagist>=2.2.0, <2.3.0 || <1.29.2 || >=2.0.0, <2.1.12.3.0, 1.29.2, 2.1.1
phpoffice/phpexcelPackagist<=1.8.2No fixed version yet
Identifiers
GHSA-v66g-p9x6-v98p · CVE-2024-45060 · PKSA-1p4c-ysfb-v9ph · PKSA-dvbq-8ft2-ngrw
Weakness (CWE)
CWE-79
Published
7 Oct 2024
Updated
6 Mar 2025

Machine-written summary

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

Affected versions of phpoffice/phpspreadsheet are below 1.29.2, from 2.0.0 up to 2.1.1, and from 2.2.0 up to 2.3.0. The flaw is a cross-site scripting issue in a sample script, 45_Quadratic_equation_solver.php, which places user input directly into formulas. An unauthenticated attacker who can reach that script in a browser can get JavaScript to run by submitting crafted input. Upgrade to 1.29.2, 2.1.1, or 2.3.0; phpoffice/phpexcel is also listed as affected with no fixed version given. Sample files should not be deployed, so removing them is also advisable.

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
7.1 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0051, the 44th percentile, on 23 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.