Vulnerabilities in pkg:pypi/tablib
PACKAGECVE-2026-9318 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting tablib libraries in the PyPI ecosystem. The issue involves stored xss in the html export via unescaped dataset title. Remediation is available by upgrading affected packages to version 3.10.0.
pkg:pypi/tablib
Vulnerability advisories affecting package pkg:pypi/tablib. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-gqgw-jghv-mxwx | CVE-2026-9318 | MODERATE | tablib: Stored XSS in the HTML export via unescaped dataset title |
| GHSA-gcr6-rf47-jrgf | CVE-2017-2810 | CRITICAL | Loaded Databook of Tablib prone to python insertion resulting in command execution |
CVE-2026-9318 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2026-9318
To remediate this vulnerability, upgrade all affected tablib dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install tablib>=3.10.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show tablib
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-9318, inspect your installed packages using pip:
pip show tablib
Analyze the terminal output to locate any version of tablib in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.10.0), your application is affected.
Note: The pip show tablib command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In tablib, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-9318 Affected tablib Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tablib
|
PyPI |
< 3.10.0
|
3.10.0
|
References
Frequently Asked Questions
What is CVE-2026-9318?
Which tablib versions are affected?
What version fixes CVE-2026-9318?
Is tablib affected?
What is the CVSS score of CVE-2026-9318?
What CWE is associated with CVE-2026-9318?
How can I check PyPI dependencies for CVE-2026-9318?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gqgw-jghv-mxwx",
"modified" : "2026-08-12T19:32:12Z",
"published" : "2026-08-12T03:31:18Z",
"aliases" : [ "CVE-2026-9318" ],
"summary" : "tablib: Stored XSS in the HTML export via unescaped dataset title",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "tablib"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.10.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-9318"
}, {
"type" : "WEB",
"url" : "https://github.com/jazzband/tablib/pull/668"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jazzband/tablib"
}, {
"type" : "WEB",
"url" : "https://github.com/jazzband/tablib/releases/tag/v3.10.0"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/tablib-versions-prior-to-stored-xss-via-html-export-dataset-title"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-12T19:32:12Z",
"nvd_published_at" : "2026-08-12T03:16:43Z"
}
}