GO-2026-6452: Panic via negative shared-string index in github.com/xuri/excelize
- Source:
- OSV.dev
- Published:
- Fetched:
- Updated:
- Affects:
- github.com/xuri/excelize/v2
https://osv.dev/vulnerability/GO-2026-6452 ↗
Panic via negative shared-string index in github.com/xuri/excelize In github.com/xuri/excelize/v2, parsing a spreadsheet cell with a negative shared-string index causes a runtime panic. The shared-string lookup in xlsxC.getValueFrom checks only the upper bound of the parsed index against the shared-string slice length, causing negative indices (such as -1) to bypass validation and trigger an out-of-bounds slice access when reading cells via APIs such as GetCellValue or GetRows. Affected: Go:github.com/xuri/excelize/v2 Fixed in: 2.11.1-0.20260728235842-f98df08a8f6a References: https://github.com/qax-os/excelize/security/advisories/GHSA-fx5j-qcqg-grpf https://github.com/qax-os/excelize/commit/93f0b3caed37f21ef5079e3259c6c21dcfe68453 https://github.com/qax-os/excelize/commit/f98df08a8f6aed8bc3b193115d1abb5b1ea2e433 https://github.com/qax-os/excelize/pull/2331 https://github.com/qax-os/excelize/releases/tag/v2.11.0