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

CVE-2026-107213: Excelize: Nil-pointer dereference in GetSlicers when a worksheet has extLst present but no drawing element

October 8, 2026

GetSlicers guards only if ws.ExtLst == nil { return } (slicer.go:816-818) and then immediately dereferences ws.Drawing.RID with no nil check on ws.Drawing itself. Drawing and ExtLst are two independently optional child elements of in xl/worksheets/sheetN.xml, populated separately by encoding/xml depending on whether each tag is present. I executed a PoC: took a plain NewFile() workbook (no drawing, no slicer), saved it, then injected a bare <extLst></extLst> immediately before </worksheet> in xl/worksheets/sheet1.xml (no other change, no drawing element present) and called GetSlicers. Result: runtime error: invalid memory address or nil pointer dereference, confirmed at the ws.Drawing.RID line via stack trace.

References

  • github.com/advisories/GHSA-r7x5-4969-99p7
  • github.com/qax-os/excelize/commit/8ffeb07ec9a350410f6922313f6b7e4f5cc79241
  • github.com/qax-os/excelize/pull/2434
  • github.com/qax-os/excelize/security/advisories/GHSA-r7x5-4969-99p7
  • nvd.nist.gov/vuln/detail/CVE-2026-107213

Code Behaviors & Features

Detect and mitigate CVE-2026-107213 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.9.0 before 2.11.1-0.20260929015830-8ffeb07ec9a3

Fixed versions

  • 2.11.1-0.20260929015830-8ffeb07ec9a3

Solution

Upgrade to version 2.11.1-0.20260929015830-8ffeb07ec9a3 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-476: NULL Pointer Dereference

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:57 +0000.