PhpSpreadsheet vulnerable to bypass of the XSS sanitizer using the javascript protocol and special characters
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 bypass of the cross-site scripting sanitizer using the javascript protocol and special characters. An attacker can use special characters, so that the library processes the javascript protocol with special characters and generates an HTML link. 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 cross-site scripting sanitizer can be bypassed with special characters in a javascript-protocol link, causing the library to generate an HTML link. The input does not specify whether exploitation requires authentication or user interaction.
Check installations of phpoffice/phpspreadsheet in the listed affected ranges and phpoffice/phpexcel version 1.8.2 or earlier.