Advisory

GHSA-4mqv-gcr3-pff9

Also known as: CVE-2020-7776, SNYK-PHP-PHPOFFICEPHPSPREADSHEET-1048856

Summary

Cross-site scripting in phpoffice/phpspreadsheet

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-05-06 18:53 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

phpoffice/phpspreadsheet

Packagist · All systems

Affected

  • introduced 0, fixed 1.16.0 (ecosystem)

Fixed versions

1.16.0

Fix

The export has no generic command for this ecosystem.

phpoffice/phpexcel

Packagist · All systems

Affected

  • introduced 0, last affected 1.8.2 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences