Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/xuri/excelize/v2
  4. ›
  5. CVE-2026-107225

CVE-2026-107225: Excelize: GetStyle panics on a negative fillId, borderId or fontId in styles.xml

October 7, 2026

File.GetStyle indexes the fill, border and font tables with values taken straight out of xl/styles.xml, and the conditions gating those lookups check only the upper bound. A workbook whose cellXfs entry carries fillId="-1", borderId="-1" or fontId="-1" reaches a negative slice index and panics. excelize has no recover(), so the panic leaves GetStyle and takes the calling process with it.

Same defect class as GHSA-48hm-4h8j-58fg, the negative shared-string index, in a different file. That one was fixed by adding the missing lower bound; these three sites still lack it.

References

  • github.com/advisories/GHSA-5h23-36rv-pm65
  • github.com/qax-os/excelize/commit/ae2113b410e51f6a141c396a59eda8c42b91bc22
  • github.com/qax-os/excelize/pull/2367
  • github.com/qax-os/excelize/security/advisories/GHSA-5h23-36rv-pm65
  • nvd.nist.gov/vuln/detail/CVE-2026-107225

Code Behaviors & Features

Detect and mitigate CVE-2026-107225 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.8.0 before 2.11.1-0.20260731010303-ae2113b410e5

Fixed versions

  • 2.11.1-0.20260731010303-ae2113b410e5

Solution

Upgrade to version 2.11.1-0.20260731010303-ae2113b410e5 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-129: Improper Validation of Array Index
  • CWE-20: Improper Input Validation

Source file

go/github.com/xuri/excelize/v2/CVE-2026-107225.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:23 +0000.