Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-66007 EUVD-2026-48613GHSA-379c-qx7v-6h59PYSEC-2026-3716

Datasets Path Traversal via Unsanitized file_name Metadata

Published Jul 24, 2026 · Updated Oct 1, 2026 · Assigned by VulnCheck

Description

Datasets through 5.0.0, fixed in commit f989ef9, contains a path traversal vulnerability in folder-based dataset builders where the file_name metadata field is not properly validated before being joined to the dataset directory. Attackers can supply crafted file_name values with directory traversal sequences to read arbitrary local files, which are then embedded into output when save_to_disk or push_to_hub is called.

Affected products

VendorProductAffectedFixed
huggingface datasets ≤ 5.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling open-webui 0.11.4-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI datasets < 5.0.1 5.0.1 GHSA-379c-qx7v-6h59

References