VDB
Sign up
MEDIUM6.4

GHSA-4mqv-gcr3-pff9

Cross-site scripting in phpoffice/phpspreadsheet

Quick fix

GHSA-4mqv-gcr3-pff9 — phpoffice/phpspreadsheet: upgrade to the fixed version with the command below.

composer require phpoffice/phpspreadsheet:^1.16.0

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/phpoffice/phpspreadsheet
Introduced in: 0Fixed in: 1.16.0
Fixcomposer require phpoffice/phpspreadsheet:^1.16.0
Packagist/phpoffice/phpexcel
Introduced in: 0

No fixed version published yet for phpoffice/phpexcel (composer). Pin to a known-safe version or switch to an alternative.

References