CVE-2020-7776Phpoffice Phpspreadsheet
Medium 6.4
Follow: this CVE · Phpoffice · Phpoffice Phpspreadsheet We alert you by email or Slack (account required).
- Priority
- 39
- CVSS 3.1
- 6.4
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 71
- Auth required
- Yes
- Published
- Dec 9, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
What happens
This affects the package phpoffice/phpspreadsheet from 0.0.0. The library is vulnerable to XSS when creating an html output from an excel file by adding a comment on any cell. The root cause of this issue is within the HTML writer where user comments are concatenated as part of link and this is returned as HTML. A fix for this issue is available on commit 0ed5b800be2136bcb8fa9c1bdf59abc957a98845/master branch.
What to do
- Apply the vendor's security update for Phpspreadsheet.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | phpoffice/phpexcel |
≤ 1.8.2 |
no fixed version | — |
| Packagist | phpoffice/phpspreadsheet |
< 1.16.0 |
1.16.0 |
composer require "phpoffice/phpspreadsheet:^1.16.0" |
Per OSV / GitHub Advisories (GHSA-4mqv-gcr3-pff9). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| phpoffice | phpspreadsheet | < 1.16.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- github.com Patch Third Party Advisory
- snyk.io Exploit Third Party Advisory