Vulnerability · Published Dec 9, 2020 · Assigned by snyk
CVE-2020-7776Cross-site Scripting (XSS)
High 7.1
In plain English
A high-severity security flaw in phpoffice/phpspreadsheet. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | phpoffice/phpexcel | no fix listed | GHSA-4mqv-gcr3-pff9 |
| Packagist | phpoffice/phpspreadsheet | 1.16.0 | GHSA-4mqv-gcr3-pff9 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | phpoffice/phpspreadsheet | 0.0.0 – before unspecified |
References
- https://snyk.io/vuln/SNYK-PHP-PHPOFFICEPHPSPREADSHEET-1048856 x_refsource_MISC
- https://github.com/PHPOffice/PhpSpreadsheet/commit/0ed5b800be2136bcb8fa9c1bdf59abc957a98845 x_refsource_MISC
- https://github.com/PHPOffice/PhpSpreadsheet/blob/master/src/PhpSpreadsheet/Writer/Html.php%23L1792 x_refsource_MISC