PhpSpreadsheet vulnerable to unauthorized reflected XSS in Currency.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 `Currency.php` file. Using the `/vendor/phpoffice/phpspreadsheet/samples/Wizards/NumberFormat/Currency.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
PhpSpreadsheet’s Currency.php sample script is vulnerable to reflected cross-site scripting. An unauthenticated attacker can use the script to carry out a cross-site scripting attack when it is accessible.
Check installations of Packagist phpoffice/phpspreadsheet in the affected ranges (<1.29.7, >=2.0.0 <2.1.6, >=2.2.0 <2.3.5, or >=3.0.0 <3.7.0) and phpoffice/phpexcel through 1.8.2.