Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-7776

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-7776
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:14 UTC · Revision 1

Source evidence

CVE-2020-7776

core-osv · Original source

Published 9 Dec 2020, 17:15 UTC

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.

osv:CVE-2020-7776
Complete source record
{
  "id": "88f183df801c2ed27c0c874ddb4e0bb2fc3294b98e74d146e461ebc04a285122",
  "url": "https://osv.dev/vulnerability/CVE-2020-7776",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-7776",
    "summary": "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.",
    "evidence": "osv:CVE-2020-7776",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2020-7776",
      "aliases": [
        "CVE-2020-7776",
        "GHSA-4mqv-gcr3-pff9",
        "SNYK-PHP-PHPOFFICEPHPSPREADSHEET-1048856"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/phpoffice/phpspreadsheet",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "76d4323b85129d0c368149c831a07a3e258b2b50"
                },
                {
                  "fixed": "0ed5b800be2136bcb8fa9c1bdf59abc957a98845"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.16.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "0ed5b800be2136bcb8fa9c1bdf59abc957a98845"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.15.0",
            "1.14.1",
            "1.14.0",
            "1.13.0",
            "1.12.0",
            "1.11.0",
            "1.10.1",
            "1.10.0",
            "1.8.2",
            "1.8.1",
            "1.8.0",
            "1.7.0",
            "1.6.0",
            "1.5.0",
            "1.4.1",
            "1.4.0",
            "1.3.1",
            "1.3.0",
            "1.2.1",
            "1.2.0",
            "1.1.0",
            "1.0.0",
            "1.0.0-beta2",
            "phpexcel-last-cherry-picked-commit",
            "phpexcel-last-release-1.8.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7776.json"
          }
        }
      ],
      "modified": "2026-10-20T10:53:30.603978287Z",
      "provider": "osv",
      "references": [
        "https://github.com/PHPOffice/PhpSpreadsheet/blob/master/src/PhpSpreadsheet/Writer/Html.php%23L1792",
        "https://github.com/PHPOffice/PhpSpreadsheet/commit/0ed5b800be2136bcb8fa9c1bdf59abc957a98845",
        "https://snyk.io/vuln/SNYK-PHP-PHPOFFICEPHPSPREADSHEET-1048856"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-7776",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384382,
  "published_at": "2020-12-09T17:15:31.883+00:00"
}