---
id: "CVE-2026-107211"
kind: "vulnerability"
aliases: ["CVE-2026-107211", "GHSA-mx22-3794-2vpv", "GO-2026-6695"]
title: "Panic via unchecked pivot-cache field index in github.com/xuri/excelize/v2"
severity: "high"
cvss: 8.7
epss: 0.00217
exploited: false
status: "open"
category: "package"
products: [{"name": "github.com/xuri/excelize/v2", "fixed": ["2.11.1-0.20261003002531-6258dcebc4e2"], "affected": ">= 2.8.1, < 2.11.1-0.20261003002531-6258dcebc4e2", "ecosystem": "go"}]
ecosystems: ["go"]
tags: ["excelize", "file-upload-services", "go", "package", "self-hosted"]
not_affected_if: ["no-untrusted-xlsx-parsing", "pivot-tables-not-read", "version-outside-2.8.1-to-2.11.0"]
published_at: "2026-10-07T18:17:18+00:00"
first_seen_at: "2026-10-23T19:13:08+00:00"
updated_at: "2026-10-23T19:52:39+00:00"
sources: [{"source": "govuln", "url": "https://pkg.go.dev/vuln/GO-2026-6695", "first_seen_at": "2026-10-23T19:13:08+00:00"}, {"source": "epss", "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-107211", "first_seen_at": "2026-10-23T19:13:43+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-107211", "first_seen_at": "2026-10-23T19:35:23+00:00"}]
---

# Panic via unchecked pivot-cache field index in github.com/xuri/excelize/v2

Excelize, a Go library for reading and writing Excel files, panics on a crafted workbook with a pivot-table field count mismatch or an out-of-range dataField index when GetPivotTables is called. An attacker who can supply a spreadsheet can crash the process or the request worker that parses it.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- go:github.com/xuri/excelize/v2 affected >= 2.8.1, < 2.11.1-0.20261003002531-6258dcebc4e2 fixed 2.11.1-0.20261003002531-6258dcebc4e2

## How to check

Run `go list -m github.com/xuri/excelize/v2` in each service and check whether the version is between 2.8.1 and 2.11.0 inclusive.

## Fix

Move to 2.11.1-0.20261003002531-6258dcebc4e2 as listed by govuln; the description says no fixed version exists yet, so confirm before relying on it. Until then, reject or sandbox untrusted workbooks before calling GetPivotTables.

## Timeline

- 2026-10-23T19:13:08+00:00 govuln https://pkg.go.dev/vuln/GO-2026-6695
- 2026-10-23T19:13:43+00:00 epss https://api.first.org/data/v1/epss?cve=CVE-2026-107211
- 2026-10-23T19:35:23+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-107211

## From the sources

Excelize is a Go language library for reading and writing Microsoft Excel spreadsheets. From 2.8.1 to 2.11.0, separately parsed pivot-table field indices are used to index the pivot-cache field-name slice without bounds checks. extractPivotTableFields uses getPivotCacheFieldsName output while processing GetPivotTables and trusts the dataField fld attribute as an index. When a crafted workbook supplies a pivot-field count mismatch or an out-of-range dataField fld value before GetPivotTables is called, the unchecked index causes a Go slice-bounds panic that escapes the library, allowing an attacker to crash the process or request worker. No fixed version is available as of this review.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
