Advisory record · GHSA-hwcp-2h35-p66w

PhpSpreadsheet has a Cross-Site Scripting (XSS) vulnerability of the hyperlink base in the HTML page header

CVSS 4.8 MediumEPSS 0.0037 · 31st percentile

Published by the GitHub Advisory Database at 3 Jan 2025, 17:28 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-hwcp-2h35-p66w · CVE-2024-56411 · PKSA-nm34-xhtz-ww9p · PKSA-wd5y-fztj-66t8
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 in the HTML writer's page header, where the hyperlink base property is not sanitized. An attacker can craft a spreadsheet file that runs arbitrary JavaScript in the browser of a user who views the converted HTML. Upgrade to 1.29.7, 2.1.6, 2.3.5, 3.7.0 or later. The package phpoffice/phpexcel is also listed as affected up to 1.8.2, 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
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.0037, the 31st 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.