ADVISORIES

Go Vulnerability Database

GO-2026-6452

Panic via negative shared-string index in github.com/xuri/excelize

Details

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 packages

EcosystemPackageAffected versions
Gogithub.com/xuri/excelize/v2
All versions before 2.11.1-0.20260728235842-f98df08a8f6a (fixed in 2.11.1-0.20260728235842-f98df08a8f6a)

References