HighGHSA-xcrg-29h7-h4cjCVE-2018-19277

XXE in PHPSpreadsheet due to encoding issue

Published 20 Nov 2019 · Updated 6 Mar 2025

Affected packages

Affected
<1.5.1
Fixed in
1.5.1
Update to the fixed version for your release line, for example:composer require phpoffice/phpspreadsheet:^1.5.1
Affected
<1.8.2
Fixed in
1.8.2
Update to the fixed version for your release line, for example:composer require phpoffice/phpexcel:^1.8.2

Details

securityScan() in PHPOffice PhpSpreadsheet through 1.5.0 allows a bypass of protection mechanisms for XXE via UTF-7 encoding in a .xlsx file

Is GHSA-xcrg-29h7-h4cj in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected phpoffice/phpspreadsheet, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.