{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.16.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "76d4323b85129d0c368149c831a07a3e258b2b50"
            },
            {
              "fixed": "0ed5b800be2136bcb8fa9c1bdf59abc957a98845"
            }
          ],
          "repo": "https://github.com/phpoffice/phpspreadsheet",
          "type": "GIT"
        }
      ]
    }
  ],
  "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.",
  "id": "CVE-2020-7776",
  "modified": "2026-03-13T21:46:37.921793588Z",
  "published": "2020-12-09T17:15:31.883Z",
  "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"
    }
  ],
  "related": [
    "SNYK-PHP-PHPOFFICEPHPSPREADSHEET-1048856"
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}