VDB
Sign up

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/xuri/excelize/v2
Introduced in: 0

No fixed version published yet for github.com/xuri/excelize/v2 (go modules). Pin to a known-safe version or switch to an alternative.

References