PhpSpreadsheet has Cross-Site Scripting (XSS) vulnerability in custom properties
PHPOffice PhpSpreadsheet
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| phpoffice/phpspreadsheet Packagist |
|
|
PHPOffice PhpSpreadsheet
| Product | Affected | Fixed in |
|---|---|---|
| phpoffice/phpspreadsheet Packagist |
|
|
| phpoffice/phpexcel Packagist |
| No fix yet |
PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. Versions prior to 3.7.0, 2.3.5, 2.1.6, and 1.29.7 have a cross-site scripting (XSS) vulnerability in custom properties. The HTML page is generated without clearing custom properties. Versions 3.7.0, 2.3.5, 2.1.6, and 1.29.7 contain a patch for the issue.
From the CVE record · GitHub_M
PhpSpreadsheet generates HTML pages without clearing spreadsheet custom properties. If an attacker can control those properties, they may inject script that runs when someone views the generated page. The input does not specify whether authentication is required.
Teams using affected phpoffice/phpspreadsheet releases before the applicable fixes (1.29.7, 2.1.6, 2.3.5, or 3.7.0), or phpoffice/phpexcel through 1.8.2, should check their dependencies.