Description
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.
Published: 2026-08-12
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

tablib, a popular Python library for representing tabular data, can store malicious script payloads in dataset titles that are later exported to HTML without escaping. The HTML export handler directly injects the title into an &lt;h3&gt; element, allowing attackers to execute arbitrary JavaScript when the report is viewed in a browser. If the user is logged in to a web application that processes the exported file, this can lead to session hijacking, unauthorized administrative actions, or exposure of sensitive data.

Affected Systems

Any installation of Jazzband tablib earlier than version 3.10.0, regardless of the operating system, that uses the HTML export feature for worksheets imported from XLSX, XLS, ODS or YAML. The problem arises when titles are crafted with script tags; thus systems that generate or serve exported HTML will be vulnerable.

Risk and Exploitability

With a CVSS score of 4.8 the vulnerability is considered moderate, and the EPSS score of less than 1 % indicates a low probability of exploitation. The bug is not in the CISA KEV catalog. An attacker would need to place a malicious title in a worksheet, trigger the HTML export, and then get the resulting file rendered in a browser that the victim visits. Once the payload runs, it can steal the victim’s session cookie or perform other client‑side actions.

Generated by OpenCVE AI on August 12, 2026 at 14:19 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade tablib to version 3.10.0 or later, which removes the unsanitized title interpolation in the HTML export handler.
  • If an upgrade cannot be applied immediately, sanitize or escape dataset titles before export or replace the export logic with a template that performs HTML encoding of titles.
  • Deploy a Content Security Policy that restricts script execution to trusted sources, limiting the impact of any malicious payload that might be injected through the dataset title.

Generated by OpenCVE AI on August 12, 2026 at 14:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 12 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Wed, 12 Aug 2026 02:45:00 +0000

Type Values Removed Values Added
Description 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.
Title tablib versions prior to 3.10.0 Stored XSS via HTML Export Dataset Title
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-12T02:20:44.688Z

Reserved: 2026-05-22T20:10:17.357Z

Link: CVE-2026-9318

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-12T03:16:43.233

Modified: 2026-08-12T03:16:43.233

Link: CVE-2026-9318

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-12T02:20:44Z

Links: CVE-2026-9318 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-12T14:30:03Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')