Vulnerability PYSEC-2026-2545

Medium Risk
MEDIUM RISK
CVSS Score: 6.5
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
3 months ago
July 13, 2026 at 02:36 PM UTC
kedro-datasets has a path traversal vulnerability in PartitionedDataset that allows arbitrary file write
0.0.1 - 9.2.0
0.0.1 - 9.2.0

Summary

kedro-datasets has a path traversal vulnerability in PartitionedDataset that allows arbitrary file write

Details

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

Impacted packages

Timeline

Published
3 months ago
July 13, 2026 at 02:36 PM UTC
Fixed (9.3.0)
6 months ago
April 02, 2026 at 03:55 PM UTC
Last Modified
1 hour ago
October 16, 2026 at 10:55 AM UTC