Closed (fixed)
Project:
Webform XLSX export
Version:
8.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
8 Oct 2024 at 06:09 UTC
Updated:
9 Dec 2024 at 11:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
yanalshoubaki commentedComment #4
yanalshoubaki commentedComment #5
prudloff commentedI suppose you are talking about this vulnerability: https://github.com/advisories/GHSA-6hwr-6v2f-3m88
Websites using webform_xlsx_export should already be able to update to phpspreadsheet 2.3.
Furthermore, the module only writes spreadsheets and the vulnerability seems to only apply to reading them.
However, I agree it would be good practice to require a secure version of phpspreadsheet. I just think we should commit #3479305: Stop versioning composer.lock first.
Upgrading to phpspreadsheet 3 might cause breaking changes and would require some testing, so I think this issue should focus on upgrading to 2.3 and I opened another issue about phpspreadsheet 3: #3479307: Support phpspreadsheet 3
Comment #6
jesss commentedMy export breaks when upgrading to PHPSpreadsheet 2.3.2 but continues to work on version 2.3.0 (the insecure one).
This only appears to happen with larger exports -- this one in particular has 1200+ submissions. The export starts as expected, but mid-batch it crashes with the following error.
PhpOffice\PhpSpreadsheet\Reader\Exception: File "/tmp/classical_countdown_2024.xlsx" does not exist. in PhpOffice\PhpSpreadsheet\Shared\File::assertFile() (line 147 of /code/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/File.php).When I downgraded to 2.3.0, the export completed without errors. (Currently on Webform XSLX Export 1.4 with the patch from #3471813: Typed property must not be accessed before initialization applied.)
Comment #7
prudloff commented@jess thank you for reporting this but I think it would be better handled in a separate issue.
If you are able to provide a full stack trace for the error, it would be easier to see what happens exactly.
Comment #9
prudloff commentedwebform_xlsx_export will now prevent users from using 2.2 (because no 2.2 release is secure).
Note however that it is the responsibility of devs using this module to use secure versions of dependencies.