PhpSpreadsheet allows unauthorized reflected XSS in `Convert-Online.php` file
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 no sanitization in the `/vendor/phpoffice/phpspreadsheet/samples/Engineering/Convert-Online.php` file, which leads to the possibility of a cross-site scripting attack. 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
The Convert-Online.php sample in affected PhpSpreadsheet versions does not sanitize input. If the sample is exposed, an attacker may be able to trigger cross-site scripting in a user's browser. The input does not specify whether authentication is required.
Check deployments using affected Packagist phpoffice/phpspreadsheet versions (below 1.29.7, 2.0.0–2.1.5, 2.2.0–2.3.4, or 3.0.0–3.6.x) or phpoffice/phpexcel through 1.8.2.