PhpSpreadsheet vulnerable to unauthorized reflected XSS in the Accounting.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 are vulnerable to unauthorized reflected cross-site scripting in the `Accounting.php` file. Using the `/vendor/phpoffice/phpspreadsheet/samples/Wizards/NumberFormat/Accounting.php` script, an attacker can perform 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 PhpSpreadsheet Accounting.php sample script is vulnerable to reflected cross-site scripting. An unauthenticated attacker can use the script to perform a cross-site scripting attack. The input does not specify whether user interaction is required.
Check installations of phpoffice/phpspreadsheet in the listed affected ranges and phpoffice/phpexcel version 1.8.2 or earlier.