Advisory record · GHSA-wv23-996v-q229

PhpSpreadsheet has a Cross-Site Scripting (XSS) vulnerability in custom properties

CVSS 4.8 MediumEPSS 0.0034 · 27th percentile

Published by the GitHub Advisory Database at 3 Jan 2025, 17:25 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-wv23-996v-q229 · CVE-2024-56410 · PKSA-4ckb-wpj6-c29d · PKSA-996h-kvqc-cdky
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 cross-site scripting through custom document properties when converting a spreadsheet to HTML. An attacker who supplies a crafted Excel file can get a user who views the generated HTML to run arbitrary JavaScript in the browser, which requires user interaction. Upgrade to 1.29.7, 2.1.6, 2.3.5, or 3.7.0 depending on your version. The package phpoffice/phpexcel is also listed as affected at 1.8.2 and earlier, and no fixed version is listed for it.

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
4.8 Medium 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 CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0034, the 27th 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.