PT-2020-19785 · Phpoffice · Phpspreadsheet

Nikkolai Fernandez

·

Published

2020-12-09

·

Updated

2024-09-04

·

CVE-2020-7776

CVSS v3.1

7.1

High

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
Name of the Vulnerable Software and Affected Versions phpoffice/phpspreadsheet versions 0.0.0 and earlier
Description 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 a link and this is returned as HTML.
Recommendations For phpoffice/phpspreadsheet versions 0.0.0 and earlier, update to a version that includes the fix available on commit 0ed5b800be2136bcb8fa9c1bdf59abc957a98845 on the master branch. As a temporary workaround, consider disabling the HTML writer functionality until a patch is available. Restrict access to the HTML output feature to minimize the risk of exploitation. Avoid using user comments in Excel files that will be converted to HTML until the issue is resolved.

Exploit

Fix

XSS

Weakness Enumeration

Related Identifiers

CVE-2020-7776
GHSA-4MQV-GCR3-PFF9
SNYK-PHP-PHPOFFICEPHPSPREADSHEET-1048856

Affected Products

Phpspreadsheet