Vulnerabilities · 2020 · Phpoffice
CVE-2020-7776
Phpoffice Phpspreadsheet vulnerability
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 products
Phpspreadsheet. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Phpoffice Phpspreadsheet runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/PHPOffice/PhpSpreadsheet/commit/0ed5b800be2136bcb8fa9c1bdf59abc957a98845 · Patch
- snyk.io/vuln/SNYK-PHP-PHPOFFICEPHPSPREADSHEET-1048856 · Exploit
- github.com/PHPOffice/PhpSpreadsheet/blob/master/src/PhpSpreadsheet/Writer/Html.php%23L1792
- nvd.nist.gov/vuln/detail/CVE-2020-7776
- github.com/PHPOffice/PhpSpreadsheet/pull/1719
- github.com/FriendsOfPHP/security-advisories/blob/master/phpoffice/phpspreadsheet/CVE-2020-
- github.com/advisories/GHSA-4mqv-gcr3-pff9
- nvd.nist.gov/vuln/detail/CVE-2020-7776
- cve.org/CVERecord?id=CVE-2020-7776
More vulnerabilities in Phpoffice products
CVE-2025-22131CVE-2024-56412CVE-2024-56411CVE-2024-56410CVE-2024-56409CVE-2024-56408CVE-2024-56366CVE-2024-56365All 20
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.