---
id: CVE-2026-9318
title: >-
  tablib prior to 3.10.0 contains a stored cross-site scripting vulnerability in
  the HTML export functionality that allows attackers to execute arbitrary
  JavaScript by embedding malicious payloads in dataset titles, which are
  interpolated …
summary: >-
  tablib prior to 3.10.0 contains a stored cross-site scripting vulnerability in
  the HTML export functionality that allows attackers to execute arbitrary
  JavaScript by embedding malicious payloads in dataset titles, which are
  interpolated …
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
vendor: tablib
product: tablib
affected:
  - tablib < 3.10.0
patched:
  - tablib 3.10.0
published: '2026-08-12'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T20:28:01.780'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-9318'
references:
  - url: 'https://github.com/jazzband/tablib'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/jazzband/tablib/pull/668'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/jazzband/tablib/releases/tag/v3.10.0'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/tablib-versions-prior-to-stored-xss-via-html-export-dataset-title
    label: disclosure@vulncheck.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-9318'
  - url: 'https://github.com/advisories/GHSA-gqgw-jghv-mxwx'
tags:
  - nvd
  - osv
  - pip
  - ghsa
epss: 0.00298
epssPercentile: 0.19999
aliases:
  - GHSA-gqgw-jghv-mxwx
  - PYSEC-2026-3702
ecosystem: pip
ingestedAt: '2026-08-12T19:54:27.891Z'
---

## Overview

tablib prior to 3.10.0 contains a stored cross-site scripting vulnerability in the HTML export functionality that allows attackers to execute arbitrary JavaScript by embedding malicious payloads in dataset titles, which are interpolated unsanitized into HTML output via the export_book method in the _html.py format handler. Attackers can rename worksheet sheets in imported files such as XLSX, ODS, XLS, or YAML with script payloads that are assigned to the Dataset title attribute and rendered unescaped inside an HTML h3 tag, leading to session hijacking, unauthorized administrative actions, and sensitive data exposure when the output is rendered in a browser.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-9318)

Affected packages:

- `tablib < 3.10.0`

Patched in:

- `tablib 3.10.0`

Source: https://osv.dev/vulnerability/GHSA-gqgw-jghv-mxwx
