{"id":"CVE-2020-7776","aliases":["GHSA-4mqv-gcr3-pff9","SNYK-PHP-PHPOFFICEPHPSPREADSHEET-1048856"],"url":"https://o3.security/vulnerability/CVE-2020-7776","summary":"Cross-site scripting in phpoffice/phpspreadsheet","details":"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.","published":"2020-12-09T17:15:31.883Z","modified":"2026-08-07T19:48:30.570827Z","cvss":{"score":6.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Packagist","name":"phpoffice/phpspreadsheet","fixedVersion":"1.16.0"},{"ecosystem":"Packagist","name":"phpoffice/phpexcel","fixedVersion":null}],"fix":{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/0ed5b800be2136bcb8fa9c1bdf59abc957a98845","label":"PHPOffice/PhpSpreadsheet@0ed5b80"},"references":[{"type":"WEB","url":"https://github.com/PHPOffice/PhpSpreadsheet/blob/master/src/PhpSpreadsheet/Writer/Html.php%23L1792"},{"type":"FIX","url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/0ed5b800be2136bcb8fa9c1bdf59abc957a98845"},{"type":"EVIDENCE","url":"https://snyk.io/vuln/SNYK-PHP-PHPOFFICEPHPSPREADSHEET-1048856"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T19:48:30.570827Z"}}