Advisory record · GHSA-r57h-547h-w24f

PhpSpreadsheet allows bypassing of XSS sanitizer using the javascript protocol and special characters

CVSS 4.8 MediumEPSS 0.0043 · 38th percentile

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

PackageEcosystemAffectedFixed in
phpoffice/phpspreadsheetPackagist>=3.0.0, <3.9.0 || <1.29.9 || >=2.2.0, <2.3.7 || >=2.0.0, <2.1.83.9.0, 1.29.9, 2.3.7, 2.1.8
phpoffice/phpexcelPackagist<=1.8.2No fixed version yet
Identifiers
GHSA-r57h-547h-w24f · CVE-2025-23210 · PKSA-2vt6-y6jz-crs9 · PKSA-8b16-mcgz-h4cz
Weakness (CWE)
CWE-79
Published
3 Feb 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.9, from 2.0.0 before 2.1.8, from 2.2.0 before 2.3.7, and from 3.0.0 before 3.9.0 are affected by an XSS sanitizer bypass in the HTML writer, where a javascript link with special characters in front of the protocol survives sanitization. An attacker who gets a user to view a specially crafted spreadsheet file can run arbitrary JavaScript in the browser when the user clicks the generated link. Upgrade to 1.29.9, 2.1.8, 2.3.7, 3.9.0 or later. No fix is listed for phpoffice/phpexcel, which is affected up to and including 1.8.2.

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.0043, the 38th 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.