Advisory record · GHSA-wgmf-q9vr-vww6

PhpSpreadsheet HTML writer is vulnerable to Cross-Site Scripting via style information

CVSS 5.4 MediumEPSS 0.0042 · 36th percentile

Published by the GitHub Advisory Database at 29 Aug 2024, 17:56 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
phpoffice/phpspreadsheetPackagist>=2.0.0, <2.1.0 || <1.29.12.1.0, 1.29.1
phpoffice/phpexcelPackagist<=1.8.2No fixed version yet
Identifiers
GHSA-wgmf-q9vr-vww6 · CVE-2024-45046 · PKSA-m4hk-rk8p-4t5p · PKSA-xj88-cdcs-bgkr
Weakness (CWE)
CWE-79
Published
29 Aug 2024
Updated
6 Mar 2025

Machine-written summary

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

PhpSpreadsheet versions below 1.29.1, and 2.0.0 up to but not including 2.1.0, are vulnerable to cross-site scripting in the HTML writer, which does not sanitize styling information such as font names. An attacker who supplies a spreadsheet can inject arbitrary JavaScript that runs when users view it as HTML, potentially taking over their session. Upgrade phpoffice/phpspreadsheet to 1.29.1 or 2.1.0. The package phpoffice/phpexcel is also affected at versions 1.8.2 and below, 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
5.4 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0042, the 36th 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.