GitHub Advisoryadvisory · Packagist
GHSA-4mqv-gcr3-pff9 Cross-site scripting in phpoffice/phpspreadsheet
MEDIUM
Official page ↗
- Aliases
- CVE-2020-7776
- Ecosystem
- Packagist
- Packages
- phpoffice/phpspreadsheet, phpoffice/phpexcel
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2021-04-09
Affected packages
• Packagist phpoffice/phpspreadsheet: < 1.16.0 → fixed in 1.16.0
• Packagist phpoffice/phpexcel: <= 1.8.2 (no fix yet)
Description
This affects the package phpoffice/phpspreadsheet. 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.
Related
Alias · CVE (1)
- CVE-2020-7776 This affects the package phpoffice/phpspreadsheet from 0.0.0. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-7776 advisory
- https://github.com/PHPOffice/PhpSpreadsheet/pull/1719 web
- https://github.com/PHPOffice/PhpSpreadsheet/commit/0ed5b800be2136bcb8fa9c1bdf59abc957a98845 web
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpoffice/phpspreadsheet/CVE-2020-7776.yaml web
- https://github.com/PHPOffice/PhpSpreadsheet/blob/master/src/PhpSpreadsheet/Writer/Html.php%23L1792 web
- https://snyk.io/vuln/SNYK-PHP-PHPOFFICEPHPSPREADSHEET-1048856 web