---
id: CVE-2026-111170
title: >-
  kedro-datasets from 9.3.0 through 9.6.0 contains a path traversal
  vulnerability in MatplotlibDataset.save() that allows attackers to write files
  outside the dataset directory by supplying absolute plot names
summary: >-
  kedro-datasets from 9.3.0 through 9.6.0 contains a path traversal
  vulnerability in MatplotlibDataset.save() that allows attackers to write files
  outside the dataset directory by supplying absolute plot names. Because
  validate_sub_path() …
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'
cwe:
  - CWE-22
vendor: kedro-org
product: kedro-datasets
affected:
  - kedro-datasets >= 9.3.0 <= 9.6.0
published: '2026-10-15'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T19:17:33.153'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-111170'
references:
  - url: 'https://github.com/kedro-org/kedro-plugins'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/kedro-org/kedro-plugins/blob/611ce7a20dcb0be655190afb9064468fa278b08c/kedro-datasets/kedro_datasets/_utils/security.py#L22
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/kedro-org/kedro-plugins/blob/611ce7a20dcb0be655190afb9064468fa278b08c/kedro-datasets/kedro_datasets/matplotlib/matplotlib_dataset.py#L198-L201
    label: disclosure@vulncheck.com
  - url: 'https://github.com/kedro-org/kedro-plugins/pull/1544'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/kedro-org/kedro-plugins/security/advisories/GHSA-cjg8-h5qc-hrjv
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/kedro-datasets-9.3.0-through-9.6.0-path-traversal-via-matplotlibdataset-plot-name
    label: disclosure@vulncheck.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-35492'
  - url: 'https://github.com/kedro-org/kedro/issues/5452'
  - url: 'https://github.com/kedro-org/kedro-plugins/pull/1346'
  - url: >-
      https://github.com/kedro-org/kedro-plugins/commit/65115f76b872217317734b6bde8927170c98fc4b
  - url: >-
      https://github.com/kedro-org/kedro-plugins/releases/tag/kedro-datasets-9.3.0
  - url: 'https://pypi.org/project/kedro-datasets'
  - url: 'https://github.com/advisories/GHSA-cjg8-h5qc-hrjv'
tags:
  - nvd
  - cve.org
  - osv
  - pip
ingestedAt: '2026-10-15T19:25:46.425Z'
aliases:
  - GHSA-cjg8-h5qc-hrjv
  - CVE-2026-35492
  - PYSEC-2026-2545
ecosystem: pip
patched:
  - kedro-datasets 9.3.0
epss: 0.00389
epssPercentile: 0.32853
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-21T01:30:33.205913Z'
---

## Overview

kedro-datasets from 9.3.0 through 9.6.0 contains a path traversal vulnerability in MatplotlibDataset.save() that allows attackers to write files outside the dataset directory by supplying absolute plot names. Because validate_sub_path() strips leading slashes while pathlib's join discards the base path, attackers can create or overwrite files anywhere the process can write.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-111170)

Affected packages:

- `kedro-datasets < 9.3.0`

Patched in:

- `kedro-datasets 9.3.0`

Source: https://osv.dev/vulnerability/GHSA-cjg8-h5qc-hrjv
