Vulnerabilities in pkg:pypi/kedro-datasets

PACKAGE
Advisory Identifier: GHSA-cjg8-h5qc-hrjv
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/kedro-datasets

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/kedro-datasets. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-cjg8-h5qc-hrjv CVE-2026-35492 MODERATE kedro-datasets has a path traversal vulnerability in PartitionedDataset that allows arbitrary file write

CVE-2026-35492 at a Glance

CVE Identifier CVE-2026-35492
GHSA Identifier GHSA-cjg8-h5qc-hrjv
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Kedro datasets
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

kedro-datasets fixed: 9.3.0
pip install kedro-datasets>=9.3.0
Verify Direct and Transitive Dependencies

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

### Impact PartitionedDataset 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. Users of PartitionedDataset with any storage backend (local filesystem, S3, GCS, etc.) are affected. ### Patches Yes. The vulnerability has been patched in kedro-datasets version 9.3.0. Users 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. ### Workarounds Users who cannot upgrade should validate partition IDs before passing them to PartitionedDataset, ensuring they do not contain `..` path components. ### References Fix: https://github.com/kedro-org/kedro-plugins/pull/1346 Report: https://github.com/kedro-org/kedro/issues/5452

CVE-2026-35492 Affected Kedro datasets Versions

1 component(s)
Fixed Versions:
9.3.0
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?
CVE-2026-35492 is a security vulnerability in Kedro datasets involving kedro-datasets has a path traversal vulnerability in PartitionedDataset that allows arbitrary file write under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Kedro datasets versions are affected?
Affected versions include releases prior to 9.3.0 across affected packages: kedro-datasets.
What version fixes CVE-2026-35492?
Upgrading to 9.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is kedro-datasets affected?
Yes, kedro-datasets is affected in releases prior to 9.3.0. Upgrade your dependency to 9.3.0 or later.
What is the CVSS score of CVE-2026-35492?
CVE-2026-35492 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2026-35492?
CVE-2026-35492 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (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.).
How can I check PyPI dependencies for CVE-2026-35492?
Run the dependency tree command: 'pip show kedro-datasets'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}