Vulnerability · Published Jul 24, 2026 · Assigned by VulnCheck

CVE-2026-66007Datasets Path Traversal via Unsanitized file_name Metadata

Medium 6.5

In plain English

A medium-severity path traversal in datasets from huggingface. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.5%top 53.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIdatasets5.0.1GHSA-379c-qx7v-6h59
PyPIdatasets5.0.1PYSEC-2026-3716

Affected products (as reported)

VendorProductVersions
huggingface datasets 0 – through 5.0.0

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

References