CVE-2026-35492: Kedro datasets Path Traversal Vulnerability
MODERATECVE-2026-35492 is a MODERATE (CVSS 6.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Kedro datasets libraries in the PyPI ecosystem. The issue involves kedro-datasets has a path traversal vulnerability in partitioneddataset that allows arbitrary file write. Remediation is available by upgrading affected packages to version 9.3.0.
CVE-2026-35492 at a Glance
Security Impact
CVSS: 6.5
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:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2026-35492
To remediate this vulnerability, upgrade all affected Kedro datasets 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 kedro-datasets>=9.3.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show kedro-datasets
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-35492, inspect your installed packages using pip:
pip show kedro-datasets
Analyze the terminal output to locate any version of Kedro datasets in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.3.0), your application is affected.
Note: The pip show kedro-datasets command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Kedro datasets, 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-35492 Affected Kedro datasets Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
kedro-datasets
|
PyPI |
< 9.3.0
|
9.3.0
|
References
Frequently Asked Questions
What is CVE-2026-35492?
Which Kedro datasets versions are affected?
What version fixes CVE-2026-35492?
Is kedro-datasets affected?
What is the CVSS score of CVE-2026-35492?
What CWE is associated with CVE-2026-35492?
How can I check PyPI dependencies for CVE-2026-35492?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cjg8-h5qc-hrjv",
"modified" : "2026-04-07T22:09:25Z",
"published" : "2026-04-06T17:55:14Z",
"aliases" : [ "CVE-2026-35492" ],
"summary" : "kedro-datasets has a path traversal vulnerability in PartitionedDataset that allows arbitrary file write",
"details" : "### Impact\n\nPartitionedDataset in kedro-datasets was vulnerable to path traversal. Partition IDs were concatenated directly with the dataset base path without validation. An attacker or malicious input containing .. components in a partition ID could cause files to be written outside the configured dataset directory, potentially overwriting arbitrary files on the filesystem.\nUsers of PartitionedDataset with any storage backend (local filesystem, S3, GCS, etc.) are affected.\n\n### Patches\nYes. The vulnerability has been patched in kedro-datasets version 9.3.0.\nUsers should upgrade to kedro-datasets >= 9.3.0. The fix normalizes constructed paths using `posixpath.normpath` and validates that the resolved path remains within the dataset base directory before use, raising a `DatasetError` if the path escapes the base directory.\n\n### Workarounds\nUsers who cannot upgrade should validate partition IDs before passing them to PartitionedDataset, ensuring they do not contain `..` path components.\n\n### References\nFix: https://github.com/kedro-org/kedro-plugins/pull/1346\nReport: https://github.com/kedro-org/kedro/issues/5452",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "kedro-datasets"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/kedro-org/kedro-plugins/security/advisories/GHSA-cjg8-h5qc-hrjv"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-35492"
}, {
"type" : "WEB",
"url" : "https://github.com/kedro-org/kedro/issues/5452"
}, {
"type" : "WEB",
"url" : "https://github.com/kedro-org/kedro-plugins/pull/1346"
}, {
"type" : "WEB",
"url" : "https://github.com/kedro-org/kedro-plugins/commit/65115f76b872217317734b6bde8927170c98fc4b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kedro-org/kedro-plugins"
}, {
"type" : "WEB",
"url" : "https://github.com/kedro-org/kedro-plugins/releases/tag/kedro-datasets-9.3.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-06T17:55:14Z",
"nvd_published_at" : "2026-04-07T16:16:27Z"
}
}