# PhpSpreadsheet allows unauthorized Reflected XSS in \`Convert-Online.php\` file

Advisory record · `GHSA-x88g-h956-m5xg`

- **Identifiers:** `GHSA-x88g-h956-m5xg` · `CVE-2024-56408` · `PKSA-79jx-g5m1-5ybs` · `PKSA-bcnb-9tc9-bjb8`
- **State:** Confirmed
- **Severity:** CVSS 8.3 High
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 3 Jan 2025
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

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

## Affected packages

- `phpoffice/phpspreadsheet` (Packagist): affected `>=3.0.0, <3.7.0 || <1.29.7 || >=2.0.0, <2.1.6 || >=2.2.0, <2.3.5`; fixed in `3.7.0`, `1.29.7`, `2.1.6`, `2.3.5`
- `phpoffice/phpexcel` (Packagist): affected `<=1.8.2`; no fixed version yet

## Machine-written summary

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

> The phpoffice/phpspreadsheet package has a reflected cross-site scripting flaw in its Convert-Online.php sample script, affecting 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. An attacker can get a user to visit a page that submits a crafted request, which causes arbitrary JavaScript to run in the victim's browser. Upgrade phpspreadsheet to 1.29.7, 2.1.6, 2.3.5, or 3.7.0 depending on your branch. The separate phpoffice/phpexcel package (up to 1.8.2) has no fixed version listed.

Written 31 Oct 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

- 8.3 High, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:L/SI:H/SA:L`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0041, the 36th percentile, on 22 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 13:59 UTC: First seen by agentprime
- 31 Oct 2026, 13:59 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-x88g-h956-m5xg)

## Sources

- [GitHub Advisory Database: GHSA-x88g-h956-m5xg](https://github.com/advisories/GHSA-x88g-h956-m5xg)
- [OSV: GHSA-x88g-h956-m5xg](https://osv.dev/vulnerability/GHSA-x88g-h956-m5xg)
- <https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-x88g-h956-m5xg>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-56408>
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/700a80346be269af668914172bc6f4521982d0b4>
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/9b9a55c7154daa7cd4095f618933c240508ba3c1>
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/a50ebfe118b3ae0ddaea1c48ac19dc38692f4abc>
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/b8fac55aa5cb7a3d514c7308378bb37bb711b25e>
- <https://github.com/PHPOffice/PhpSpreadsheet>

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.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-x88g-h956-m5xg>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-x88g-h956-m5xg/>. Everything for agents: <https://agentprime.io/llms.txt>.
