CVE-2026-9318: tablib versions prior to 3.10.0 Stored XSS via HTML Export Dataset 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 unsanitized into HTML output via the exportbook 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
tablibto a version that resolves this vulnerability.Fixed in 3.10.0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-9318?
The severity of CVE-2026-9318 is medium with a score of 5.4.
How do I fix CVE-2026-9318?
To fix CVE-2026-9318, update tablib to version 3.10.0 or later.
What type of vulnerability is CVE-2026-9318?
CVE-2026-9318 is a stored cross-site scripting (XSS) vulnerability.
What can attackers do with CVE-2026-9318?
Attackers can execute arbitrary JavaScript by embedding malicious payloads in dataset titles.
Which tablib versions are affected by CVE-2026-9318?
Tablib versions prior to 3.10.0 are affected by CVE-2026-9318.